HWEncoder.hh
Go to the documentation of this file.
Set of flags defined by a C++11 enum class.
Definition: gz/common/FlagSet.hh:62
Representation of a GPU video encoder and its configuration.
Definition: HWEncoder.hh:41
void ConfigHWAccel(AVCodecContext *_encoderContext)
Configure hardware acceleration. Should be called after the codec context parameters have been set,...
HWEncoderType GetEncoderType() const
Returns the type of encoder that is currently being used. The value will be NONE until ConfigHWAccel(...
HWEncoder(FlagSet< HWEncoderType > _allowedHwEncoders, const std::string &_hwAccelDevice, std::optional< bool > _useHwSurface)
Set up the HW encoder configurator.
AVFrame * GetFrameForEncoder(AVFrame *_inFrame)
Get a pointer to the frame that contains the encoder input. This mainly serves for uploading the fram...
virtual ~HWEncoder()
AVCodec * FindEncoder(AVCodecID _codecId)
Definition: gz/common/Base64.hh:28