FFmpeg
Loading...
Searching...
No Matches
xbm_parser.c File Reference

XBM parser. More...

#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "parser.h"
#include "parser_internal.h"

Go to the source code of this file.

Data Structures

struct  XBMParseContext
 

Macros

#define KEY
 
#define END   ((';' << 8) | ('\n' << 0))
 

Functions

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

Variables

const FFCodecParser ff_xbm_parser
 

Detailed Description

XBM parser.

Definition in file xbm_parser.c.

Macro Definition Documentation

◆ KEY

#define KEY
Value:
(((uint64_t)'\n' << 56) | ((uint64_t)'#' << 48) | \
((uint64_t)'d' << 40) | ((uint64_t)'e' << 32) | \
((uint64_t)'f' << 24) | ('i' << 16) | ('n' << 8) | \
('e' << 0))

Definition at line 41 of file xbm_parser.c.

◆ END

#define END   ((';' << 8) | ('\n' << 0))

Definition at line 46 of file xbm_parser.c.

Referenced by xbm_parse().

Function Documentation

◆ xbm_init()

static av_cold int xbm_init ( AVCodecParserContext * s)
static

Definition at line 48 of file xbm_parser.c.

◆ xbm_parse()

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

Definition at line 57 of file xbm_parser.c.

Variable Documentation

◆ ff_xbm_parser

const FFCodecParser ff_xbm_parser
Initial value:
= {
.priv_data_size = sizeof(XBMParseContext),
}
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition apv_parser.c:92
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
@ AV_CODEC_ID_XBM
Definition codec_id.h:209
av_cold void ff_parse_close(AVCodecParserContext *s)
Definition parser.c:300
#define PARSER_CODEC_LIST(...)
static av_cold int xbm_init(AVCodecParserContext *s)
Definition xbm_parser.c:48
static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition xbm_parser.c:57

Definition at line 104 of file xbm_parser.c.