FFmpeg
Data Structures | Functions | Variables
libaomdec.c File Reference
#include <aom/aom_decoder.h>
#include <aom/aomdx.h>
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.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 void image_copy_16_to_8 (AVFrame *pic, struct aom_image *img)
 
static int set_pix_fmt (AVCodecContext *avctx, struct aom_image *img)
 
static int aom_decode (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int aom_free (AVCodecContext *avctx)
 
static av_cold int av1_init (AVCodecContext *avctx)
 

Variables

AVCodec 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 40 of file libaomdec.c.

Referenced by av1_init().

◆ image_copy_16_to_8()

static void image_copy_16_to_8 ( AVFrame pic,
struct aom_image *  img 
)
static

Definition at line 61 of file libaomdec.c.

Referenced by aom_decode().

◆ set_pix_fmt()

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

Definition at line 86 of file libaomdec.c.

Referenced by aom_decode(), and vpx_init().

◆ aom_decode()

static int aom_decode ( AVCodecContext avctx,
void *  data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 157 of file libaomdec.c.

◆ aom_free()

static av_cold int aom_free ( AVCodecContext avctx)
static

Definition at line 218 of file libaomdec.c.

◆ av1_init()

static av_cold int av1_init ( AVCodecContext avctx)
static

Definition at line 225 of file libaomdec.c.

Variable Documentation

◆ ff_libaom_av1_decoder

AVCodec ff_libaom_av1_decoder
Initial value:
= {
.name = "libaom-av1",
.long_name = NULL_IF_CONFIG_SMALL("libaom AV1"),
.priv_data_size = sizeof(AV1DecodeContext),
.close = aom_free,
.caps_internal = FF_CODEC_CAP_AUTO_THREADS,
.wrapper_name = "libaom",
}

Definition at line 230 of file libaomdec.c.

aom_free
static av_cold int aom_free(AVCodecContext *avctx)
Definition: libaomdec.c:218
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
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:122
ff_av1_profiles
const AVProfile ff_av1_profiles[]
Definition: profiles.c:147
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:279
aom_decode
static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: libaomdec.c:157
FF_CODEC_CAP_AUTO_THREADS
#define FF_CODEC_CAP_AUTO_THREADS
Codec handles avctx->thread_count == 0 (auto) internally.
Definition: internal.h:80
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
av1_init
static av_cold int av1_init(AVCodecContext *avctx)
Definition: libaomdec.c:225
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:117
AV1DecodeContext
Definition: libaomdec.c:36
profiles
static const AVProfile profiles[]
Definition: libfdk-aacenc.c:428
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201