9 #include "cuda/cuda-conversion.cuh" 18 auto out_ir =
reinterpret_cast<uint8_t *
>(dest[1]);
20 rscuda::unpack_z16_y8_from_sr300_inzi_cuda(out_ir,
in,
count);
22 for (
int i = 0; i < count; ++i) *out_ir++ = *in++ >> 2;
31 auto out_ir =
reinterpret_cast<uint16_t*
>(dest[1]);
33 rscuda::unpack_z16_y16_from_sr300_inzi_cuda(out_ir,
in,
count);
35 for (
int i = 0;
i <
count; ++
i) *out_ir++ = *
in++ << 6;
42 switch (dst_ir_format)
51 LOG_ERROR(
"Unsupported format for INZI conversion.");
58 auto out =
reinterpret_cast<decltype(unpack(SOURCE())) *
>(dest[0]);
59 for (
int i = 0;
i <
count; ++
i) *
out++ = unpack(*source++);
76 LOG_ERROR(
"Unsupported format for INVI conversion.");
89 auto count = width * height / 4;
94 for (
int i = 0;
i <
count;
i++, from += 5)
96 *to++ = ((from[0] << 2) | (from[4] & 3)) << 6;
97 *to++ = ((from[1] << 2) | ((from[4] >> 2) & 3)) << 6;
98 *to++ = ((from[2] << 2) | ((from[4] >> 4) & 3)) << 6;
99 *to++ = ((from[3] << 2) | ((from[4] >> 6) & 3)) << 6;
115 LOG_ERROR(
"Unsupported format for W10 unpacking.");
134 unpack_invi(_target_format, dest, source, width, height, actual_size);
GLuint const GLchar * name
void unpack_y8_from_y16_10(byte *const d[], const byte *s, int width, int height, int actual_size)
void unpack_inzi(rs2_format dst_ir_format, byte *const d[], const byte *s, int width, int height, int actual_size)
void unpack_w10(rs2_format dst_format, byte *const d[], const byte *s, int width, int height, int actual_size)
rs2_format _target_format
rs2_format _right_target_format
void unpack_pixels(byte *const dest[], int count, const SOURCE *source, UNPACK unpack, int actual_size)
void unpack_z16_y8_from_sr300_inzi(byte *const dest[], const byte *source, int width, int height, int actual_size)
inzi_converter(rs2_format target_ir_format)
GLint GLsizei GLsizei height
rs2_format
A stream's format identifies how binary data is encoded within a frame.
w10_converter(const rs2_format &target_format)
void unpack_y10bpack(byte *const dest[], const byte *source, int width, int height, int actual_size)
void process_function(byte *const dest[], const byte *source, int width, int height, int actual_size, int input_size) override
GLsizei GLsizei GLchar * source
void process_function(byte *const dest[], const byte *source, int width, int height, int actual_size, int input_size) override
void process_function(byte *const dest[], const byte *source, int width, int height, int actual_size, int input_size) override
void unpack_z16_y16_from_sr300_inzi(byte *const dest[], const byte *source, int width, int height, int actual_size)
void unpack_y16_from_y16_10(byte *const d[], const byte *s, int width, int height, int actual_size)
void unpack_invi(rs2_format dst_format, byte *const d[], const byte *s, int width, int height, int actual_size)
void copy_raw10(byte *const dest[], const byte *source, int width, int height, int actual_size)
void copy(void *dst, void const *src, size_t size)