CompressionFactory.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "ICompression.h"
7 #define IS_COMPRESSION_ENABLED 1 // enabled by default
8 
9 typedef enum ZipMethod
10 {
12  rvl,
14  lz,
15 } ZipMethod;
16 
18 {
19 public:
20  static std::shared_ptr<ICompression> getObject(int t_width, int t_height, rs2_format t_format, rs2_stream t_streamType, int t_bpp);
21  static bool isCompressionSupported(rs2_format t_format, rs2_stream t_streamType);
22  static bool& getIsEnabled();
23 };
rs2_format
A stream&#39;s format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:59
static bool isCompressionSupported(rs2_format t_format, rs2_stream t_streamType)
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:42
static std::shared_ptr< ICompression > getObject(int t_width, int t_height, rs2_format t_format, rs2_stream t_streamType, int t_bpp)
static bool & getIsEnabled()
ZipMethod


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