19#ifndef AVCODEC_AMFENC_H
20#define AVCODEC_AMFENC_H
22#include <AMF/core/Factory.h>
24#include <AMF/components/ColorSpace.h>
25#include <AMF/components/VideoEncoderVCE.h>
26#include <AMF/components/VideoEncoderHEVC.h>
27#include <AMF/components/VideoEncoderAV1.h>
34#define AMF_VERSION_ATLEAST(major, minor, release) \
35 (AMF_VERSION_MAJOR > (major) || (AMF_VERSION_MAJOR == (major) && AMF_VERSION_MINOR > (minor)) || (AMF_VERSION_MAJOR == (major) && AMF_VERSION_MINOR == (minor) && AMF_VERSION_RELEASE >= (release)))
37#define MAX_LOOKAHEAD_DEPTH 41
195#define AMF_RETURN_IF_FALSE(avctx, exp, ret_value, ...) \
197 av_log(avctx, AV_LOG_ERROR, __VA_ARGS__); \
const AVCodecHWConfigInternal *const ff_amfenc_hw_configs[]
enum AVPixelFormat ff_amf_pix_fmts[]
Supported formats.
int ff_amf_encode_init(AVCodecContext *avctx)
Common encoder initization function.
void ff_amf_clamp_lookahead_depth(AVCodecContext *avctx, AMFEncoderContext *ctx)
Clamp pa_lookahead_buffer_depth to the AMF-reported maximum and assign it to the encoder.
void ff_amf_fit_async_depth(AVCodecContext *avctx, AMFEncoderContext *ctx)
Size async_depth (hwsurfaces_in_queue_max) around the lookahead window: widen it to hold the lookahea...
int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
Ecoding one frame - common function for all AMF encoders.
int ff_amf_get_lookahead_depth_max(AVCodecContext *avctx, AMFComponent *encoder, amf_uint64 runtime_version, amf_int64 *out_max)
Query the maximum PA lookahead buffer depth (AMF_PA_LOOKAHEAD_BUFFER_DEPTH).
int ff_amf_encode_close(AVCodecContext *avctx)
Common encoder termination function.
static AVFormatContext * ctx
Libavcodec external API header.
AVPixelFormat
Pixel format.
AMF_SURFACE_FORMAT format
AMF surface format.
int pa_scene_change_detection_sensitivity
int pa_high_motion_quality_boost_mode
int header_insertion_mode
int pa_static_scene_detection_sensitivity
wchar_t * av_frame_property_name
AMFComponent * encoder
AMF encoder object.
int query_timeout_supported
int hwsurfaces_in_queue_max
AVBufferRef * device_ctx_ref
int max_consecutive_b_frames
int pa_static_scene_detection
int pa_lookahead_buffer_depth
int pa_scene_change_detection
amf_bool eof
flag indicating EOF happened
wchar_t * pts_property_name
int hw_high_motion_quality_boost
A reference to a data buffer.
Describe the class of an AVClass context structure.
main external API structure.
This structure stores compressed data.