FFmpeg
Data Structures | Macros | Functions | Variables
amfenc.h File Reference
#include <AMF/core/Factory.h>
#include <AMF/components/ColorSpace.h>
#include <AMF/components/VideoEncoderVCE.h>
#include <AMF/components/VideoEncoderHEVC.h>
#include <AMF/components/VideoEncoderAV1.h>
#include "libavutil/fifo.h"
#include "avcodec.h"
#include "hwconfig.h"

Go to the source code of this file.

Data Structures

struct  AMFEncoderContext
 AMF encoder context. More...
 

Macros

#define MAX_LOOKAHEAD_DEPTH   41
 
#define AMF_RETURN_IF_FALSE(avctx, exp, ret_value, ...)
 Error handling helper. More...
 

Functions

int ff_amf_encode_init (AVCodecContext *avctx)
 Common encoder initization function. More...
 
int ff_amf_encode_close (AVCodecContext *avctx)
 Common encoder termination function. More...
 
int ff_amf_receive_packet (AVCodecContext *avctx, AVPacket *avpkt)
 Ecoding one frame - common function for all AMF encoders. More...
 
int ff_amf_get_color_profile (AVCodecContext *avctx)
 

Variables

const AVCodecHWConfigInternal *const ff_amfenc_hw_configs []
 
enum AVPixelFormat ff_amf_pix_fmts []
 Supported formats. More...
 

Macro Definition Documentation

◆ MAX_LOOKAHEAD_DEPTH

#define MAX_LOOKAHEAD_DEPTH   41

Definition at line 34 of file amfenc.h.

◆ AMF_RETURN_IF_FALSE

#define AMF_RETURN_IF_FALSE (   avctx,
  exp,
  ret_value,
  ... 
)
Value:
if (!(exp)) { \
av_log(avctx, AV_LOG_ERROR, __VA_ARGS__); \
return ret_value; \
}

Error handling helper.

Definition at line 162 of file amfenc.h.

Function Documentation

◆ ff_amf_encode_init()

int ff_amf_encode_init ( AVCodecContext avctx)

Common encoder initization function.

Definition at line 270 of file amfenc.c.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), and amf_encode_init_hevc().

◆ ff_amf_encode_close()

int ff_amf_encode_close ( AVCodecContext avctx)

Common encoder termination function.

Definition at line 170 of file amfenc.c.

Referenced by ff_amf_encode_init().

◆ ff_amf_receive_packet()

int ff_amf_receive_packet ( AVCodecContext avctx,
AVPacket avpkt 
)

Ecoding one frame - common function for all AMF encoders.

Definition at line 367 of file amfenc.c.

◆ ff_amf_get_color_profile()

int ff_amf_get_color_profile ( AVCodecContext avctx)

Color Space for Full (JPEG) Range

Color Space for Limited (MPEG) range

Definition at line 637 of file amfenc.c.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), and amf_encode_init_hevc().

Variable Documentation

◆ ff_amfenc_hw_configs

const AVCodecHWConfigInternal* const ff_amfenc_hw_configs[]

Definition at line 672 of file amfenc.c.

◆ ff_amf_pix_fmts

enum AVPixelFormat ff_amf_pix_fmts[]

Supported formats.

Definition at line 109 of file amfenc.c.

AV_LOG_ERROR
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:209
exp
int8_t exp
Definition: eval.c:73