FFmpeg
Data Structures | Functions | Variables
libaomdec.c File Reference

AV1 decoder support via libaom. More...

#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

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().

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().

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

Definition at line 86 of file libaomdec.c.

Referenced by aom_decode(), vp8_ts_param_parse(), and vpx_init().

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

Definition at line 157 of file libaomdec.c.

static av_cold int aom_free ( AVCodecContext avctx)
static

Definition at line 210 of file libaomdec.c.

static av_cold int av1_init ( AVCodecContext avctx)
static

Definition at line 217 of file libaomdec.c.

Variable Documentation

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",
}
static av_cold int aom_free(AVCodecContext *avctx)
Definition: libaomdec.c:210
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int aom_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: libaomdec.c:157
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
Definition: avcodec.h:1050
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
const AVProfile ff_av1_profiles[]
Definition: profiles.c:142
static const AVProfile profiles[]
static av_cold int av1_init(AVCodecContext *avctx)
Definition: libaomdec.c:217
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:982

Definition at line 222 of file libaomdec.c.