FFmpeg
Data Structures | Functions | Variables
jpegxs_parser.c File Reference
#include "libavutil/mem.h"
#include "bytestream.h"
#include "get_bits.h"
#include "jpegxs.h"
#include "parser.h"
#include "parser_internal.h"

Go to the source code of this file.

Data Structures

struct  JPEGXSParseContext
 

Functions

static int jpegxs_find_frame_end (JPEGXSParseContext *jpegxs, const uint8_t *buf, int buf_size)
 Find the end of the current frame in the bitstream. More...
 
static int jpegxs_parse_frame (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
 
static int jpegxsvideo_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 
static av_cold void jpegxsparse_close (AVCodecParserContext *s)
 

Variables

const FFCodecParser ff_jpegxs_parser
 

Function Documentation

◆ jpegxs_find_frame_end()

static int jpegxs_find_frame_end ( JPEGXSParseContext jpegxs,
const uint8_t *  buf,
int  buf_size 
)
static

Find the end of the current frame in the bitstream.

Returns
the position of the first byte of the next frame, or -1

Definition at line 37 of file jpegxs_parser.c.

Referenced by jpegxsvideo_parse().

◆ jpegxs_parse_frame()

static int jpegxs_parse_frame ( AVCodecParserContext s,
AVCodecContext avctx,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 102 of file jpegxs_parser.c.

Referenced by jpegxsvideo_parse().

◆ jpegxsvideo_parse()

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

Definition at line 214 of file jpegxs_parser.c.

◆ jpegxsparse_close()

static av_cold void jpegxsparse_close ( AVCodecParserContext s)
static

Definition at line 238 of file jpegxs_parser.c.

Variable Documentation

◆ ff_jpegxs_parser

const FFCodecParser ff_jpegxs_parser
Initial value:

Definition at line 246 of file jpegxs_parser.c.

close
static av_cold void close(AVCodecParserContext *s)
Definition: apv_parser.c:136
jpegxsparse_close
static av_cold void jpegxsparse_close(AVCodecParserContext *s)
Definition: jpegxs_parser.c:238
parse
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:46
AV_CODEC_ID_JPEGXS
@ AV_CODEC_ID_JPEGXS
Definition: codec_id.h:334
PARSER_CODEC_LIST
#define PARSER_CODEC_LIST(...)
Definition: parser_internal.h:76
jpegxsvideo_parse
static int jpegxsvideo_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: jpegxs_parser.c:214
JPEGXSParseContext
Definition: jpegxs_parser.c:27