depth-decompress.cpp
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 #include <fstream>
5 #include "../common/decompress-huffman.h"
7 #include "environment.h"
8 
9 namespace librealsense
10 {
13  {
16  }
17 
18  void depth_decompression_huffman::process_function(byte* const dest[], const byte* source, int width, int height, int actual_size, int input_size)
19  {
20  if (!unhuffimage4(reinterpret_cast<uint32_t*>(const_cast<byte*>(source)), uint32_t(input_size >> 2), width << 1, height, const_cast<byte*>(*dest)))
21  {
22  LOG_INFO("Depth decompression failed, ts: " << static_cast<uint64_t>(environment::get_instance().get_time_service()->get_time())
23  << " , compressed size: " << input_size);
24  }
25  }
26 }
bool unhuffimage4(uint32_t *compressed_image, uint32_t compressed_length_u32s, uint32_t stride_bytes, uint32_t height, unsigned char *image)
virtual void set(float value)=0
option & get_option(rs2_option id) override
Definition: options.h:58
unsigned int uint32_t
Definition: stdint.h:80
GLint GLsizei GLsizei height
void process_function(byte *const dest[], const byte *source, int width, int height, int actual_size, int input_size) override
static environment & get_instance()
LOG_INFO("Log message using LOG_INFO()")
unsigned char byte
Definition: src/types.h:52
GLsizei GLsizei GLchar * source
LZ4LIB_API char * dest
Definition: lz4.h:438
double get_time()
Definition: rs_internal.hpp:62
GLint GLsizei width


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