FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 62 of file libaomdec.c.

Referenced by aom_decode().

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

Definition at line 87 of file libaomdec.c.

Referenced by aom_decode(), and vpx_init().

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

Definition at line 158 of file libaomdec.c.

static av_cold int aom_free ( AVCodecContext avctx)
static

Definition at line 211 of file libaomdec.c.

static av_cold int av1_init ( AVCodecContext avctx)
static

Definition at line 218 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:211
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:158
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
Definition: avcodec.h:1027
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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:143
static const AVProfile profiles[]
static av_cold int av1_init(AVCodecContext *avctx)
Definition: libaomdec.c:218
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 223 of file libaomdec.c.