|
void | apply_colorspace () override |
|
VAProfile | get_va_profile (AVCodecContext *ctx) |
| Determines the matching VA profile for the codec configuration.
|
|
int | init (int in_width, int in_height, file_t &&render_device) |
|
void | init_codec_options (AVCodecContext *ctx, AVDictionary **options) override |
| Provides a hook for allow platform-specific code to adjust codec options.
|
|
bool | is_va_profile_supported (VAProfile profile) |
| Determines if a given VA profile is supported.
|
|
VAEntrypoint | select_va_entrypoint (VAProfile profile) |
| Finds a supported VA entrypoint for the given VA profile.
|
|
int | set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx_buf) override |
| Set the frame to be encoded.
|
|
int | convert (platf::img_t &img) override |
|
virtual void | init_hwframes (AVHWFramesContext *frames) |
| Initialize the hwframes context.
|
|
virtual int | prepare_to_derive_context (int hw_device_type) |
| Prepare to derive a context.
|
|
◆ apply_colorspace()
void va::va_t::apply_colorspace |
( |
| ) |
|
|
inlineoverridevirtual |
◆ get_va_profile()
VAProfile va::va_t::get_va_profile |
( |
AVCodecContext * | ctx | ) |
|
|
inline |
Determines the matching VA profile for the codec configuration.
- Parameters
-
ctx | The FFmpeg codec context. |
- Returns
- The matching VA profile or
VAProfileNone
on failure.
◆ init_codec_options()
void va::va_t::init_codec_options |
( |
AVCodecContext * | ctx, |
|
|
AVDictionary ** | options ) |
|
inlineoverridevirtual |
Provides a hook for allow platform-specific code to adjust codec options.
- Note
- Implementations may set or modify codec options prior to codec initialization.
Reimplemented from platf::avcodec_encode_device_t.
◆ is_va_profile_supported()
bool va::va_t::is_va_profile_supported |
( |
VAProfile | profile | ) |
|
|
inline |
Determines if a given VA profile is supported.
- Parameters
-
profile | The profile to match. |
- Returns
- Boolean value indicating if the profile is supported.
◆ select_va_entrypoint()
VAEntrypoint va::va_t::select_va_entrypoint |
( |
VAProfile | profile | ) |
|
|
inline |
Finds a supported VA entrypoint for the given VA profile.
- Parameters
-
profile | The profile to match. |
- Returns
- A valid encoding entrypoint or 0 on failure.
◆ set_frame()
int va::va_t::set_frame |
( |
AVFrame * | frame, |
|
|
AVBufferRef * | hw_frames_ctx ) |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: