FFmpeg
Data Structures | Macros | Functions | Variables
cri_parser.c File Reference
#include "libavutil/bswap.h"
#include "libavutil/common.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  CRIParser
 

Macros

#define KEY
 

Functions

static int cri_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const AVCodecParser ff_cri_parser
 

Detailed Description

CRI parser

Definition in file cri_parser.c.

Macro Definition Documentation

◆ KEY

#define KEY
Value:
(((uint64_t)'\1' << 56) | ((uint64_t)'\0' << 48) | \
((uint64_t)'\0' << 40) | ((uint64_t)'\0' << 32) | \
((uint64_t)'\4' << 24) | ((uint64_t)'\0' << 16) | \
((uint64_t)'\0' << 8) | ((uint64_t)'\0' << 0))

Definition at line 40 of file cri_parser.c.

Function Documentation

◆ cri_parse()

static int cri_parse ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int poutbuf_size,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 45 of file cri_parser.c.

Variable Documentation

◆ ff_cri_parser

const AVCodecParser ff_cri_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_CRI },
.priv_data_size = sizeof(CRIParser),
.parser_parse = cri_parse,
.parser_close = ff_parse_close,
}

Definition at line 100 of file cri_parser.c.

cri_parse
static int cri_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: cri_parser.c:45
ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:286
CRIParser
Definition: cri_parser.c:32
AV_CODEC_ID_CRI
@ AV_CODEC_ID_CRI
Definition: codec_id.h:307