FFmpeg
Data Structures | Functions | Variables
av1_parser.c File Reference
#include "av1_parse.h"
#include "cbs.h"
#include "cbs_av1.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  AV1ParseContext
 

Functions

static int av1_parser_parse (AVCodecParserContext *ctx, AVCodecContext *avctx, const uint8_t **out_data, int *out_size, const uint8_t *data, int size)
 
static av_cold int av1_parser_init (AVCodecParserContext *ctx)
 
static void av1_parser_close (AVCodecParserContext *ctx)
 
static int av1_parser_split (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 

Variables

static enum AVPixelFormat pix_fmts_8bit [2][2]
 
static enum AVPixelFormat pix_fmts_10bit [2][2]
 
static enum AVPixelFormat pix_fmts_12bit [2][2]
 
static const CodedBitstreamUnitType decompose_unit_types []
 
AVCodecParser ff_av1_parser
 

Function Documentation

◆ av1_parser_parse()

static int av1_parser_parse ( AVCodecParserContext ctx,
AVCodecContext avctx,
const uint8_t **  out_data,
int out_size,
const uint8_t data,
int  size 
)
static

Definition at line 47 of file av1_parser.c.

◆ av1_parser_init()

static av_cold int av1_parser_init ( AVCodecParserContext ctx)
static

Definition at line 176 of file av1_parser.c.

◆ av1_parser_close()

static void av1_parser_close ( AVCodecParserContext ctx)
static

Definition at line 191 of file av1_parser.c.

◆ av1_parser_split()

static int av1_parser_split ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 199 of file av1_parser.c.

Variable Documentation

◆ pix_fmts_8bit

enum AVPixelFormat pix_fmts_8bit[2][2]
static
Initial value:

Definition at line 34 of file av1_parser.c.

Referenced by av1_parser_parse().

◆ pix_fmts_10bit

enum AVPixelFormat pix_fmts_10bit[2][2]
static
Initial value:

Definition at line 38 of file av1_parser.c.

Referenced by av1_parser_parse().

◆ pix_fmts_12bit

enum AVPixelFormat pix_fmts_12bit[2][2]
static
Initial value:

Definition at line 42 of file av1_parser.c.

Referenced by av1_parser_parse().

◆ decompose_unit_types

const CodedBitstreamUnitType decompose_unit_types[]
static

◆ ff_av1_parser

AVCodecParser ff_av1_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_AV1 },
.priv_data_size = sizeof(AV1ParseContext),
.parser_init = av1_parser_init,
.parser_close = av1_parser_close,
.parser_parse = av1_parser_parse,
}

Definition at line 221 of file av1_parser.c.

AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:387
AV1_OBU_TEMPORAL_DELIMITER
@ AV1_OBU_TEMPORAL_DELIMITER
Definition: av1.h:31
av1_parser_init
static av_cold int av1_parser_init(AVCodecParserContext *ctx)
Definition: av1_parser.c:176
AV1_OBU_FRAME_HEADER
@ AV1_OBU_FRAME_HEADER
Definition: av1.h:32
av1_parser_split
static int av1_parser_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: av1_parser.c:199
AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:390
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: avcodec.h:443
av1_parser_parse
static int av1_parser_parse(AVCodecParserContext *ctx, AVCodecContext *avctx, const uint8_t **out_data, int *out_size, const uint8_t *data, int size)
Definition: av1_parser.c:47
AV1_OBU_TILE_GROUP
@ AV1_OBU_TILE_GROUP
Definition: av1.h:33
AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:388
av1_parser_close
static void av1_parser_close(AVCodecParserContext *ctx)
Definition: av1_parser.c:191
AV1_OBU_FRAME
@ AV1_OBU_FRAME
Definition: av1.h:35
AV1ParseContext
Definition: av1_parser.c:28
AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:392
AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:394
AV1_OBU_SEQUENCE_HEADER
@ AV1_OBU_SEQUENCE_HEADER
Definition: av1.h:30
split
static char * split(char *message, char delim)
Definition: af_channelmap.c:81
AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:391
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_PIX_FMT_YUV444P
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71
AV_PIX_FMT_YUV422P
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70