IDS peak IPL v1.12.1
Loading...
Searching...
No Matches
peak::ipl::encoder::IEncoder Class Referenceabstract

Encoder Interface Class. More...

#include <peak_ipl/io/peak_ipl_video_writer.hpp>

Inheritance diagram for peak::ipl::encoder::IEncoder:
peak::ipl::encoder::MJPEGEncoder

Public Member Functions

 IEncoder ()=default
 
virtual ~IEncoder ()=default
 
virtual PEAK_IPL_VIDEO_ENCODER Id ()=0
 
void SetOption (PEAK_IPL_VIDEO_ENCODER_OPTION option, const void *value, size_t count)
 Sets an option on the encoder.
 
void GetOption (PEAK_IPL_VIDEO_ENCODER_OPTION option, void *value, size_t count, size_t *outCount)
 Gets an option of the encoder.
 
void OptionRange (PEAK_IPL_VIDEO_ENCODER_OPTION option, void *min, void *max, void *inc)
 Receive the range for an option of the encoder.
 

Protected Member Functions

void SetHandle (PEAK_IPL_VIDEO_HANDLE handle)
 

Protected Attributes

PEAK_IPL_VIDEO_HANDLE m_handle {nullptr}
 

Friends

class peak::ipl::VideoWriter
 

Detailed Description

Encoder Interface Class.

Constructor & Destructor Documentation

◆ IEncoder()

peak::ipl::encoder::IEncoder::IEncoder ( )
default

◆ ~IEncoder()

virtual peak::ipl::encoder::IEncoder::~IEncoder ( )
virtualdefault

Member Function Documentation

◆ GetOption()

void peak::ipl::encoder::IEncoder::GetOption ( PEAK_IPL_VIDEO_ENCODER_OPTION  option,
void *  value,
size_t  count,
size_t *  outCount 
)
inline

Gets an option of the encoder.

Parameters
[in]optionThe encoder option to get.
[out]valueThe value for the encoder option.
[in]countThe size of the value.
[out]outCountThe resulting size of the value.
Exceptions
InvalidArgumentExceptionArguments passed are invalid
ExceptionAn internal error has occurred
Since
1.5

◆ Id()

virtual PEAK_IPL_VIDEO_ENCODER peak::ipl::encoder::IEncoder::Id ( )
pure virtual

◆ OptionRange()

void peak::ipl::encoder::IEncoder::OptionRange ( PEAK_IPL_VIDEO_ENCODER_OPTION  option,
void *  min,
void *  max,
void *  inc 
)
inline

Receive the range for an option of the encoder.

Parameters
[in]optionThe encoder option to receive the range from.
[out]minThe minimum value for the encoder option.
[out]maxThe maximum value for the encoder option.
[out]incThe increment value for the encoder option.
Exceptions
InvalidArgumentExceptionArguments passed are invalid
ExceptionAn internal error has occurred
Since
1.5

◆ SetHandle()

void peak::ipl::encoder::IEncoder::SetHandle ( PEAK_IPL_VIDEO_HANDLE  handle)
inlineprotected

◆ SetOption()

void peak::ipl::encoder::IEncoder::SetOption ( PEAK_IPL_VIDEO_ENCODER_OPTION  option,
const void *  value,
size_t  count 
)
inline

Sets an option on the encoder.

Parameters
[in]optionThe encoder option to set.
[in]valueThe value for the encoder option.
[in]countThe size of the value.
Exceptions
InvalidArgumentExceptionArguments passed are invalid
ExceptionAn internal error has occurred
Since
1.5

Friends And Related Symbol Documentation

◆ peak::ipl::VideoWriter

friend class peak::ipl::VideoWriter
friend

Field Documentation

◆ m_handle

PEAK_IPL_VIDEO_HANDLE peak::ipl::encoder::IEncoder::m_handle {nullptr}
protected

The documentation for this class was generated from the following file: