FFmpeg
Data Structures | Macros | Functions | Variables
tiertexseqv.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SeqVideoContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static const unsigned char * seq_unpack_rle_block (const unsigned char *src, const unsigned char *src_end, unsigned char *dst, int dst_size)
 
static const unsigned char * seq_decode_op1 (SeqVideoContext *seq, const unsigned char *src, const unsigned char *src_end, unsigned char *dst)
 
static const unsigned char * seq_decode_op2 (SeqVideoContext *seq, const unsigned char *src, const unsigned char *src_end, unsigned char *dst)
 
static const unsigned char * seq_decode_op3 (SeqVideoContext *seq, const unsigned char *src, const unsigned char *src_end, unsigned char *dst)
 
static int seqvideo_decode (SeqVideoContext *seq, const unsigned char *data, int data_size)
 
static av_cold int seqvideo_decode_init (AVCodecContext *avctx)
 
static int seqvideo_decode_frame (AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 
static av_cold int seqvideo_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_tiertexseqvideo_decoder
 

Detailed Description

Tiertex Limited SEQ video decoder

Definition in file tiertexseqv.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 27 of file tiertexseqv.c.

Function Documentation

◆ seq_unpack_rle_block()

static const unsigned char* seq_unpack_rle_block ( const unsigned char *  src,
const unsigned char *  src_end,
unsigned char *  dst,
int  dst_size 
)
static

Definition at line 40 of file tiertexseqv.c.

Referenced by seq_decode_op1().

◆ seq_decode_op1()

static const unsigned char* seq_decode_op1 ( SeqVideoContext seq,
const unsigned char *  src,
const unsigned char *  src_end,
unsigned char *  dst 
)
static

Definition at line 78 of file tiertexseqv.c.

Referenced by seqvideo_decode().

◆ seq_decode_op2()

static const unsigned char* seq_decode_op2 ( SeqVideoContext seq,
const unsigned char *  src,
const unsigned char *  src_end,
unsigned char *  dst 
)
static

Definition at line 128 of file tiertexseqv.c.

Referenced by seqvideo_decode().

◆ seq_decode_op3()

static const unsigned char* seq_decode_op3 ( SeqVideoContext seq,
const unsigned char *  src,
const unsigned char *  src_end,
unsigned char *  dst 
)
static

Definition at line 147 of file tiertexseqv.c.

Referenced by seqvideo_decode().

◆ seqvideo_decode()

static int seqvideo_decode ( SeqVideoContext seq,
const unsigned char *  data,
int  data_size 
)
static

Definition at line 165 of file tiertexseqv.c.

Referenced by seqvideo_decode_frame().

◆ seqvideo_decode_init()

static av_cold int seqvideo_decode_init ( AVCodecContext avctx)
static

Definition at line 214 of file tiertexseqv.c.

◆ seqvideo_decode_frame()

static int seqvideo_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 233 of file tiertexseqv.c.

◆ seqvideo_decode_end()

static av_cold int seqvideo_decode_end ( AVCodecContext avctx)
static

Definition at line 255 of file tiertexseqv.c.

Variable Documentation

◆ ff_tiertexseqvideo_decoder

const FFCodec ff_tiertexseqvideo_decoder
Initial value:
= {
.p.name = "tiertexseqvideo",
.p.long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(SeqVideoContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 264 of file tiertexseqv.c.

SeqVideoContext
Definition: tiertexseqv.c:34
seqvideo_decode_end
static av_cold int seqvideo_decode_end(AVCodecContext *avctx)
Definition: tiertexseqv.c:255
init
static int init
Definition: av_tx.c:47
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
AV_CODEC_ID_TIERTEXSEQVIDEO
@ AV_CODEC_ID_TIERTEXSEQVIDEO
Definition: codec_id.h:145
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:116
seqvideo_decode_init
static av_cold int seqvideo_decode_init(AVCodecContext *avctx)
Definition: tiertexseqv.c:214
FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: codec_internal.h:31
seqvideo_decode_frame
static int seqvideo_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: tiertexseqv.c:233
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201