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

◆ av1_init()

static av_cold int av1_init ( AVCodecContext avctx)
static

Definition at line 217 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,
.wrapper_name = "libaom",
}

Definition at line 222 of file libaomdec.c.

aom_free
static av_cold int aom_free(AVCodecContext *avctx)
Definition: libaomdec.c:210
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
ff_av1_profiles
const AVProfile ff_av1_profiles[]
Definition: profiles.c:142
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: avcodec.h:443
aom_decode
static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: libaomdec.c:157
AV_CODEC_CAP_AUTO_THREADS
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
Definition: avcodec.h:1049
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
av1_init
static av_cold int av1_init(AVCodecContext *avctx)
Definition: libaomdec.c:217
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:188
AV1DecodeContext
Definition: libaomdec.c:36
profiles
static const AVProfile profiles[]
Definition: libfdk-aacenc.c:426
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201