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

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

static av_cold int av1_parser_init ( AVCodecParserContext ctx)
static

Definition at line 194 of file av1_parser.c.

static void av1_parser_close ( AVCodecParserContext ctx)
static

Definition at line 209 of file av1_parser.c.

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

Definition at line 217 of file av1_parser.c.

Variable Documentation

enum AVPixelFormat pix_fmts_8bit[2][2]
static
Initial value:
= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66

Definition at line 35 of file av1_parser.c.

Referenced by av1_parser_parse().

enum AVPixelFormat pix_fmts_10bit[2][2]
static
Initial value:
= {
}
#define AV_PIX_FMT_YUV444P10
Definition: pixfmt.h:400
#define AV_PIX_FMT_YUV420P10
Definition: pixfmt.h:397
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:398

Definition at line 39 of file av1_parser.c.

Referenced by av1_parser_parse().

enum AVPixelFormat pix_fmts_12bit[2][2]
static
Initial value:
= {
}
#define AV_PIX_FMT_YUV420P12
Definition: pixfmt.h:401
#define AV_PIX_FMT_YUV422P12
Definition: pixfmt.h:402
#define AV_PIX_FMT_YUV444P12
Definition: pixfmt.h:404

Definition at line 43 of file av1_parser.c.

Referenced by av1_parser_parse().

const CodedBitstreamUnitType decompose_unit_types[]
static
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,
}
static int av1_parser_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
Definition: av1_parser.c:217
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:48
static av_cold int av1_parser_init(AVCodecParserContext *ctx)
Definition: av1_parser.c:194
static void av1_parser_close(AVCodecParserContext *ctx)
Definition: av1_parser.c:209
static char * split(char *message, char delim)
Definition: af_channelmap.c:81

Definition at line 239 of file av1_parser.c.