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 };
rvl
@ rvl
Definition: CompressionFactory.h:12
jpeg
@ jpeg
Definition: CompressionFactory.h:13
gzip
@ gzip
Definition: CompressionFactory.h:11
ICompression.h
CompressionFactory::getIsEnabled
static bool & getIsEnabled()
Definition: CompressionFactory.cpp:42
rs2_format
rs2_format
A stream's format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:59
ZipMethod
ZipMethod
Definition: CompressionFactory.h:9
CompressionFactory::getObject
static std::shared_ptr< ICompression > getObject(int t_width, int t_height, rs2_format t_format, rs2_stream t_streamType, int t_bpp)
Definition: CompressionFactory.cpp:9
CompressionFactory::isCompressionSupported
static bool isCompressionSupported(rs2_format t_format, rs2_stream t_streamType)
Definition: CompressionFactory.cpp:48
lz
@ lz
Definition: CompressionFactory.h:14
CompressionFactory
Definition: CompressionFactory.h:17
rs2_stream
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:42


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:13:15