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

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

◆ av1_parser_init()

static av_cold int av1_parser_init ( AVCodecParserContext ctx)
static

Definition at line 188 of file av1_parser.c.

◆ av1_parser_close()

static void av1_parser_close ( AVCodecParserContext ctx)
static

Definition at line 203 of file av1_parser.c.

Variable Documentation

◆ pix_fmts_8bit

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

Definition at line 36 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 40 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 44 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 49 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 211 of file av1_parser.c.

AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:496
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:188
AV1_OBU_FRAME_HEADER
@ AV1_OBU_FRAME_HEADER
Definition: av1.h:32
AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:512
AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:499
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:73
AV_CODEC_ID_AV1
@ AV_CODEC_ID_AV1
Definition: codec_id.h:284
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:53
AV1_OBU_TILE_GROUP
@ AV1_OBU_TILE_GROUP
Definition: av1.h:33
AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:497
av1_parser_close
static void av1_parser_close(AVCodecParserContext *ctx)
Definition: av1_parser.c:203
AV1_OBU_FRAME
@ AV1_OBU_FRAME
Definition: av1.h:35
AV1ParseContext
Definition: av1_parser.c:30
AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:501
AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:503
AV1_OBU_SEQUENCE_HEADER
@ AV1_OBU_SEQUENCE_HEADER
Definition: av1.h:30
AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:513
AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:500
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
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:78
AV_PIX_FMT_GBRP
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition: pixfmt.h:165
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:77