FFmpeg
Data Structures | Functions | Variables
libaomdec.c File Reference
#include <aom/aom_decoder.h>
#include <aom/aomdx.h>
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "libaom.h"
#include "profiles.h"

Go to the source code of this file.

Data Structures

struct  AV1DecodeContext
 

Functions

static av_cold int aom_init (AVCodecContext *avctx, const struct aom_codec_iface *iface)
 
static int set_pix_fmt (AVCodecContext *avctx, struct aom_image *img)
 
static int aom_decode (AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
 
static av_cold int aom_free (AVCodecContext *avctx)
 
static av_cold int av1_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_libaom_av1_decoder
 

Detailed Description

AV1 decoder support via libaom

Definition in file libaomdec.c.

Function Documentation

◆ aom_init()

static av_cold int aom_init ( AVCodecContext avctx,
const struct aom_codec_iface *  iface 
)
static

Definition at line 43 of file libaomdec.c.

Referenced by av1_init().

◆ set_pix_fmt()

static int set_pix_fmt ( AVCodecContext avctx,
struct aom_image *  img 
)
static

Definition at line 65 of file libaomdec.c.

Referenced by aom_decode(), and vpx_init().

◆ aom_decode()

static int aom_decode ( AVCodecContext avctx,
AVFrame picture,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 140 of file libaomdec.c.

◆ aom_free()

static av_cold int aom_free ( AVCodecContext avctx)
static

Definition at line 220 of file libaomdec.c.

◆ av1_init()

static av_cold int av1_init ( AVCodecContext avctx)
static

Definition at line 227 of file libaomdec.c.

Variable Documentation

◆ ff_libaom_av1_decoder

const FFCodec ff_libaom_av1_decoder
Initial value:
= {
.p.name = "libaom-av1",
CODEC_LONG_NAME("libaom AV1"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_AV1,
.priv_data_size = sizeof(AV1DecodeContext),
.close = aom_free,
.p.wrapper_name = "libaom",
}

Definition at line 232 of file libaomdec.c.

aom_free
static av_cold int aom_free(AVCodecContext *avctx)
Definition: libaomdec.c:220
FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:34
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:298
AV_CODEC_CAP_OTHER_THREADS
#define AV_CODEC_CAP_OTHER_THREADS
Codec supports multithreading through a method other than slice- or frame-level multithreading.
Definition: codec.h:127
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:363
ff_av1_profiles
const AVProfile ff_av1_profiles[]
Definition: profiles.c:147
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:264
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:283
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:115
av1_init
static av_cold int av1_init(AVCodecContext *avctx)
Definition: libaomdec.c:227
aom_decode
static int aom_decode(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition: libaomdec.c:140
AV1DecodeContext
Definition: libaomdec.c:39
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FF_CODEC_CAP_AUTO_THREADS
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
Definition: codec_internal.h:73