![]() |
ImFusion C++ SDK 4.5.0
|
#include <RGBD/Include/ImFusion/RGBD/Hardware/KinectAzureStreamRecordingAlgorithm.h>
Encoder for video frames in Kinect Azure recordings. More...
Encoder for video frames in Kinect Azure recordings.
This class wraps FFMPEG-based encoding and supports on-the-fly compression of image frames.
Typical usage:
Public Member Functions | |
| FrameEncoder (const ImageDescriptor &desc, int fps, const std::vector< std::pair< std::string, std::string > > &encoderParams) | |
| Constructs a frame encoder for the given image descriptor, frame rate, and encoder parameters. | |
| bool | encodeFrame (std::ostream &file, unsigned char *imagePointer, int imageWidth, int imageHeight) |
| Encodes a single image frame and writes it to the output stream. | |
Public Attributes | |
| std::unique_ptr< Impl > | m_pimpl |
| Pointer to internal implementation. | |
| Image | m_desc |
| Image descriptor. | |
| ImFusion::KinectAzureStreamRecordingAlgorithm::FrameEncoder::FrameEncoder | ( | const ImageDescriptor & | desc, |
| int | fps, | ||
| const std::vector< std::pair< std::string, std::string > > & | encoderParams ) |
Constructs a frame encoder for the given image descriptor, frame rate, and encoder parameters.
| desc | Image descriptor specifying format and properties. |
| fps | Target frame rate. |
| encoderParams | List of encoder parameter key-value pairs. |
| bool ImFusion::KinectAzureStreamRecordingAlgorithm::FrameEncoder::encodeFrame | ( | std::ostream & | file, |
| unsigned char * | imagePointer, | ||
| int | imageWidth, | ||
| int | imageHeight ) |