color-formats-converter.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "synthetic-stream.h"
7 
8 namespace librealsense
9 {
11  {
12  protected:
13  color_converter(const char* name, rs2_format target_format, rs2_stream target_stream = RS2_STREAM_COLOR) :
14  functional_processing_block(name, target_format, target_stream, RS2_EXTENSION_VIDEO_FRAME) {};
15  };
16 
18  {
19  public:
20  yuy2_converter(rs2_format target_format) :
21  yuy2_converter("YUY Converter", target_format) {};
22 
23  protected:
24  yuy2_converter(const char* name, rs2_format target_format) :
25  color_converter(name, target_format) {};
26  void process_function(byte * const dest[], const byte * source, int width, int height, int actual_size, int input_size) override;
27  };
28 
30  {
31  public:
32  uyvy_converter(rs2_format target_format, rs2_stream target_stream = RS2_STREAM_COLOR) :
33  uyvy_converter("UYVY Converter", target_format, target_stream) {};
34 
35  protected:
36  uyvy_converter(const char* name, rs2_format target_format, rs2_stream target_stream) :
37  color_converter(name, target_format, target_stream) {};
38  void process_function(byte * const dest[], const byte * source, int width, int height, int actual_size, int input_size) override;
39  };
40 
42  {
43  public:
44  mjpeg_converter(rs2_format target_format) :
45  mjpeg_converter("MJPEG Converter", target_format) {};
46 
47  protected:
48  mjpeg_converter(const char* name, rs2_format target_format) :
49  color_converter(name, target_format) {};
50  void process_function(byte * const dest[], const byte * source, int width, int height, int actual_size, int input_size) override;
51  };
52 
54  {
55  public:
57  bgr_to_rgb("BGR to RGB Converter") {};
58 
59  protected:
60  bgr_to_rgb(const char* name) :
62  void process_function(byte * const dest[], const byte * source, int width, int height, int actual_size, int input_size) override;
63  };
64 }
yuy2_converter(const char *name, rs2_format target_format)
GLuint const GLchar * name
uyvy_converter(const char *name, rs2_format target_format, rs2_stream target_stream)
mjpeg_converter(const char *name, rs2_format target_format)
#define LRS_EXTENSION_API
Definition: src/types.h:20
yuy2_converter(rs2_format target_format)
color_converter(const char *name, rs2_format target_format, rs2_stream target_stream=RS2_STREAM_COLOR)
GLint GLsizei GLsizei height
rs2_format
A stream's format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:59
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:42
mjpeg_converter(rs2_format target_format)
unsigned char byte
Definition: src/types.h:52
uyvy_converter(rs2_format target_format, rs2_stream target_stream=RS2_STREAM_COLOR)
GLsizei GLsizei GLchar * source
LZ4LIB_API char * dest
Definition: lz4.h:438
GLint GLsizei width


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