FFmpeg
Data Structures | Functions | Variables
av1_parser.c File Reference
#include "libavutil/avassert.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)
 

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 enum AVPixelFormat pix_fmts_rgb [3]
 
static const CodedBitstreamUnitType decompose_unit_types []
 
const 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 51 of file av1_parser.c.

◆ av1_parser_init()

static av_cold int av1_parser_init ( AVCodecParserContext ctx)
static

Definition at line 184 of file av1_parser.c.

◆ av1_parser_close()

static void av1_parser_close ( AVCodecParserContext ctx)
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().

◆ pix_fmts_rgb

enum AVPixelFormat pix_fmts_rgb[3]
static
Initial value:

Definition at line 47 of file av1_parser.c.

Referenced by av1_parser_parse(), and query_formats().

◆ decompose_unit_types

const CodedBitstreamUnitType decompose_unit_types[]
static

◆ ff_av1_parser

const 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 207 of file av1_parser.c.

AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:406
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:184
AV1_OBU_FRAME_HEADER
@ AV1_OBU_FRAME_HEADER
Definition: av1.h:32
AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:422
AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:409
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: codec_id.h:279
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:51
AV1_OBU_TILE_GROUP
@ AV1_OBU_TILE_GROUP
Definition: av1.h:33
AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:407
av1_parser_close
static void av1_parser_close(AVCodecParserContext *ctx)
Definition: av1_parser.c:199
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:411
AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:413
AV1_OBU_SEQUENCE_HEADER
@ AV1_OBU_SEQUENCE_HEADER
Definition: av1.h:30
AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:423
AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:410
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_GBRP
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:158
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