5 #ifndef LIBREALSENSE_IMAGE_H 6 #define LIBREALSENSE_IMAGE_H 15 template<
class SOURCE,
class SPLIT_A,
class SPLIT_B>
void split_frame(
byte *
const dest[],
int count,
const SOURCE *
source, SPLIT_A split_a, SPLIT_B split_b)
17 auto a =
reinterpret_cast<decltype(split_a(SOURCE())) *
>(dest[0]);
18 auto b =
reinterpret_cast<decltype(split_b(SOURCE())) *
>(dest[1]);
21 *
a++ = split_a(*source);
22 *
b++ = split_b(*source++);
GLboolean GLboolean GLboolean b
size_t get_image_size(int width, int height, rs2_format format)
resolution l500_confidence_resolution(resolution res)
GLboolean GLboolean GLboolean GLboolean a
GLint GLsizei GLsizei height
GLint GLint GLsizei GLint GLenum format
rs2_format
A stream's format identifies how binary data is encoded within a frame.
resolution rotate_resolution(resolution res)
GLsizei GLsizei GLchar * source
void split_frame(byte *const dest[], int count, const SOURCE *source, SPLIT_A split_a, SPLIT_B split_b)
int get_image_bpp(rs2_format format)