#include "image.h"
#include "../include/librealsense/rsutil.h"
#include <cstring>
#include <cmath>
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | rsimpl::bytes< N > |
struct | rsimpl::f200_inzi_pixel |
struct | rsimpl::y12i_pixel |
struct | rsimpl::y8i_pixel |
Namespaces | |
namespace | rsimpl |
Defines | |
#define | clamp(x) ((t=(x)) > 255 ? 255 : t < 0 ? 0 : t) |
Functions | |
void | rsimpl::align_disparity_to_other (byte *disparity_aligned_to_other, const uint16_t *disparity_pixels, float disparity_scale, const rs_intrinsics &disparity_intrin, const rs_extrinsics &disparity_to_other, const rs_intrinsics &other_intrin) |
template<class GET_DEPTH , class TRANSFER_PIXEL > | |
void | rsimpl::align_images (const rs_intrinsics &depth_intrin, const rs_extrinsics &depth_to_other, const rs_intrinsics &other_intrin, GET_DEPTH get_depth, TRANSFER_PIXEL transfer_pixel) |
template<class GET_DEPTH > | |
void | rsimpl::align_other_to_depth (byte *other_aligned_to_depth, GET_DEPTH get_depth, const rs_intrinsics &depth_intrin, const rs_extrinsics &depth_to_other, const rs_intrinsics &other_intrin, const byte *other_pixels, rs_format other_format) |
template<int N, class GET_DEPTH > | |
void | rsimpl::align_other_to_depth_bytes (byte *other_aligned_to_depth, GET_DEPTH get_depth, const rs_intrinsics &depth_intrin, const rs_extrinsics &depth_to_other, const rs_intrinsics &other_intrin, const byte *other_pixels) |
void | rsimpl::align_other_to_disparity (byte *other_aligned_to_disparity, const uint16_t *disparity_pixels, float disparity_scale, const rs_intrinsics &disparity_intrin, const rs_extrinsics &disparity_to_other, const rs_intrinsics &other_intrin, const byte *other_pixels, rs_format other_format) |
void | rsimpl::align_other_to_z (byte *other_aligned_to_z, const uint16_t *z_pixels, float z_scale, const rs_intrinsics &z_intrin, const rs_extrinsics &z_to_other, const rs_intrinsics &other_intrin, const byte *other_pixels, rs_format other_format) |
void | rsimpl::align_z_to_other (byte *z_aligned_to_other, const uint16_t *z_pixels, float z_scale, const rs_intrinsics &z_intrin, const rs_extrinsics &z_to_other, const rs_intrinsics &other_intrin) |
std::vector< int > | rsimpl::compute_rectification_table (const rs_intrinsics &rect_intrin, const rs_extrinsics &rect_to_unrect, const rs_intrinsics &unrect_intrin) |
template<size_t SIZE> | |
void | rsimpl::copy_pixels (byte *const dest[], const byte *source, int count) |
void | rsimpl::copy_raw10 (byte *const dest[], const byte *source, int count) |
template<class MAP_DEPTH > | |
void | rsimpl::deproject_depth (float *points, const rs_intrinsics &intrin, const uint16_t *depth, MAP_DEPTH map_depth) |
void | rsimpl::deproject_disparity (float *points, const rs_intrinsics &disparity_intrin, const uint16_t *disparity_pixels, float disparity_scale) |
void | rsimpl::deproject_z (float *points, const rs_intrinsics &z_intrin, const uint16_t *z_pixels, float z_scale) |
int | rsimpl::get_image_bpp (rs_format format) |
size_t | rsimpl::get_image_size (int width, int height, rs_format format) |
void | rsimpl::rectify_image (uint8_t *rect_pixels, const std::vector< int > &rectification_table, const uint8_t *unrect_pixels, rs_format format) |
template<class T > | |
void | rsimpl::rectify_image_pixels (T *rect_pixels, const std::vector< int > &rectification_table, const T *unrect_pixels) |
template<class SOURCE , class SPLIT_A , class SPLIT_B > | |
void | rsimpl::split_frame (byte *const dest[], int count, const SOURCE *source, SPLIT_A split_a, SPLIT_B split_b) |
template<class SOURCE , class UNPACK > | |
void | rsimpl::unpack_pixels (byte *const dest[], int count, const SOURCE *source, UNPACK unpack) |
void | rsimpl::unpack_rw10_from_rw8 (byte *const d[], const byte *s, int n) |
void | rsimpl::unpack_y16_from_y16_10 (byte *const d[], const byte *s, int n) |
void | rsimpl::unpack_y16_from_y8 (byte *const d[], const byte *s, int n) |
void | rsimpl::unpack_y16_y16_from_y12i_10 (byte *const dest[], const byte *source, int count) |
void | rsimpl::unpack_y8_from_y16_10 (byte *const d[], const byte *s, int n) |
void | rsimpl::unpack_y8_y8_from_y8i (byte *const dest[], const byte *source, int count) |
template<rs_format FORMAT> | |
void | rsimpl::unpack_yuy2 (byte *const d[], const byte *s, int n) |
void | rsimpl::unpack_z16_y16_from_f200_inzi (byte *const dest[], const byte *source, int count) |
void | rsimpl::unpack_z16_y16_from_sr300_inzi (byte *const dest[], const byte *source, int count) |
void | rsimpl::unpack_z16_y8_from_f200_inzi (byte *const dest[], const byte *source, int count) |
void | rsimpl::unpack_z16_y8_from_sr300_inzi (byte *const dest[], const byte *source, int count) |
Variables | |
const native_pixel_format | rsimpl::pf_f200_invi |
const native_pixel_format | rsimpl::pf_f200_inzi |
const native_pixel_format | rsimpl::pf_invz = { 'Z16 ', 1, 2, { { false, ©_pixels<2>, { { RS_STREAM_DEPTH, RS_FORMAT_Z16 } } } } } |
const native_pixel_format | rsimpl::pf_raw8 = { 'RAW8', 1, 1,{ { false, ©_pixels<1>, { { RS_STREAM_FISHEYE, RS_FORMAT_RAW8 } } } } } |
const native_pixel_format | rsimpl::pf_rw10 = { 'pRAA', 1, 1,{ { false, ©_raw10, { { RS_STREAM_COLOR, RS_FORMAT_RAW10 } } } } } |
const native_pixel_format | rsimpl::pf_rw16 = { 'RW16', 1, 2,{ { false, ©_pixels<2>, { { RS_STREAM_COLOR, RS_FORMAT_RAW16 } } } } } |
const native_pixel_format | rsimpl::pf_sr300_invi |
const native_pixel_format | rsimpl::pf_sr300_inzi |
const native_pixel_format | rsimpl::pf_y12i = { 'Y12I', 1, 3,{ { true, &unpack_y16_y16_from_y12i_10, { { RS_STREAM_INFRARED, RS_FORMAT_Y16 },{ RS_STREAM_INFRARED2, RS_FORMAT_Y16 } } } } } |
const native_pixel_format | rsimpl::pf_y16 = { 'Y16 ', 1, 2,{ { true, &unpack_y16_from_y16_10, { { RS_STREAM_INFRARED, RS_FORMAT_Y16 } } } } } |
const native_pixel_format | rsimpl::pf_y8 = { 'GREY', 1, 1,{ { false, ©_pixels<1>, { { RS_STREAM_INFRARED, RS_FORMAT_Y8 } } } } } |
const native_pixel_format | rsimpl::pf_y8i = { 'Y8I ', 1, 2,{ { true, &unpack_y8_y8_from_y8i, { { RS_STREAM_INFRARED, RS_FORMAT_Y8 },{ RS_STREAM_INFRARED2, RS_FORMAT_Y8 } } } } } |
const native_pixel_format | rsimpl::pf_yuy2 |
const native_pixel_format | rsimpl::pf_z16 |