FFmpeg
Data Structures | Functions | Variables
av1_parser.c File Reference
#include "libavutil/avassert.h"
#include "cbs.h"
#include "cbs_av1.h"
#include "internal.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 52 of file av1_parser.c.

◆ av1_parser_init()

static av_cold int av1_parser_init ( AVCodecParserContext ctx)
static

Definition at line 185 of file av1_parser.c.

◆ av1_parser_close()

static void av1_parser_close ( AVCodecParserContext ctx)
static

Definition at line 200 of file av1_parser.c.

Variable Documentation

◆ pix_fmts_8bit

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

Definition at line 35 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 39 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 43 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 48 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 208 of file av1_parser.c.

AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:404
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:185
AV1_OBU_FRAME_HEADER
@ AV1_OBU_FRAME_HEADER
Definition: av1.h:32
AV_PIX_FMT_GBRP10
#define AV_PIX_FMT_GBRP10
Definition: pixfmt.h:420
AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:407
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:52
AV1_OBU_TILE_GROUP
@ AV1_OBU_TILE_GROUP
Definition: av1.h:33
AV_PIX_FMT_YUV422P10
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:405
av1_parser_close
static void av1_parser_close(AVCodecParserContext *ctx)
Definition: av1_parser.c:200
AV1_OBU_FRAME
@ AV1_OBU_FRAME
Definition: av1.h:35
AV1ParseContext
Definition: av1_parser.c:29
AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:409
AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:411
AV1_OBU_SEQUENCE_HEADER
@ AV1_OBU_SEQUENCE_HEADER
Definition: av1.h:30
AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_GBRP12
Definition: pixfmt.h:421
AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:408
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