decimation-filter.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "../include/librealsense2/hpp/rs_frame.hpp"
7 #include "../include/librealsense2/hpp/rs_processing.hpp"
9 
10 namespace librealsense
11 {
12 
14  {
15  public:
17 
18  protected:
20 
21  void decimate_depth(const uint16_t * frame_data_in, uint16_t * frame_data_out,
22  size_t width_in, size_t height_in, size_t scale);
23 
24  void decimate_others(rs2_format format, const void * frame_data_in, void * frame_data_out,
25  size_t width_in, size_t height_in, size_t scale);
26  rs2::frame process_frame(const rs2::frame_source& source, const rs2::frame& f) override;
27 
28  private:
29  void update_output_profile(const rs2::frame& f);
30 
37  std::map<std::tuple<const rs2_stream_profile*, uint8_t>, rs2::stream_profile> _registered_profiles;
38  uint16_t _real_width; // Number of rows/columns with real datain the decimated image
39  uint16_t _real_height; // Correspond to w,h in the reference code
40  uint16_t _padded_width; // Corresponds to w4/h4 in the reference code
43  bool _options_changed; // Tracking changes imposed by user
44  };
46 }
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:10806
rs2::frame prepare_target_frame(const rs2::frame &f, const rs2::frame_source &source, rs2_extension tgt_type)
unsigned short uint16_t
Definition: stdint.h:79
unsigned char uint8_t
Definition: stdint.h:78
rs2::stream_profile _target_stream_profile
GLdouble f
void decimate_depth(const uint16_t *frame_data_in, uint16_t *frame_data_out, size_t width_in, size_t height_in, size_t scale)
GLint GLint GLsizei GLint GLenum format
rs2_format
A stream&#39;s format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:59
void decimate_others(rs2_format format, const void *frame_data_in, void *frame_data_out, size_t width_in, size_t height_in, size_t scale)
void update_output_profile(const rs2::frame &f)
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: rs_types.h:166
rs2::stream_profile _source_stream_profile
std::map< std::tuple< const rs2_stream_profile *, uint8_t >, rs2::stream_profile > _registered_profiles
GLsizei GLsizei GLchar * source
rs2::frame process_frame(const rs2::frame_source &source, const rs2::frame &f) override
MAP_EXTENSION(RS2_EXTENSION_POINTS, librealsense::points)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:12