FFmpeg
Data Structures | Macros | Functions | Variables
sheervideo.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "thread.h"
#include "sheervideodata.h"

Go to the source code of this file.

Data Structures

struct  SheerVideoContext
 

Macros

#define CACHED_BITSTREAM_READER   !ARCH_X86_32
 
#define SHEER_VLC_BITS   12
 

Functions

static void decode_ca4i (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ca4p (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ybr10i (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ybr10 (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_yry10i (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_yry10 (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ca2i (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ca2p (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_c82i (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_c82p (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ybyr (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_byryi (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_byry (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ybri (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_ybr (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_aybri (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_aybr (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_argxi (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_argx (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_rgbxi (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_rgbx (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_argbi (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_argb (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_rgbi (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static void decode_rgb (AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
 
static av_cold int build_vlc (VLC *vlc, const SheerTable *table)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_sheervideo_decoder
 

Macro Definition Documentation

◆ CACHED_BITSTREAM_READER

#define CACHED_BITSTREAM_READER   !ARCH_X86_32

Definition at line 22 of file sheervideo.c.

◆ SHEER_VLC_BITS

#define SHEER_VLC_BITS   12

Definition at line 23 of file sheervideo.c.

Function Documentation

◆ decode_ca4i()

static void decode_ca4i ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 39 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ca4p()

static void decode_ca4p ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 83 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ybr10i()

static void decode_ybr10i ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 171 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ybr10()

static void decode_ybr10 ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 210 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_yry10i()

static void decode_yry10i ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 286 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_yry10()

static void decode_yry10 ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 328 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ca2i()

static void decode_ca2i ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 411 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ca2p()

static void decode_ca2p ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 461 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_c82i()

static void decode_c82i ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 563 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_c82p()

static void decode_c82p ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 613 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ybyr()

static void decode_ybyr ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 715 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_byryi()

static void decode_byryi ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 798 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_byry()

static void decode_byry ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 872 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ybri()

static void decode_ybri ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 955 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_ybr()

static void decode_ybr ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1023 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_aybri()

static void decode_aybri ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1099 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_aybr()

static void decode_aybr ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1177 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_argxi()

static void decode_argxi ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1265 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_argx()

static void decode_argx ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1309 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_rgbxi()

static void decode_rgbxi ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1397 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_rgbx()

static void decode_rgbx ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1436 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_argbi()

static void decode_argbi ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1512 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_argb()

static void decode_argb ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1578 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_rgbi()

static void decode_rgbi ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1654 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_rgb()

static void decode_rgb ( AVCodecContext avctx,
AVFrame p,
GetBitContext gb 
)
static

Definition at line 1713 of file sheervideo.c.

Referenced by decode_frame().

◆ build_vlc()

static av_cold int build_vlc ( VLC vlc,
const SheerTable table 
)
static

Definition at line 1780 of file sheervideo.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 1804 of file sheervideo.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 1988 of file sheervideo.c.

Variable Documentation

◆ ff_sheervideo_decoder

const FFCodec ff_sheervideo_decoder
Initial value:
= {
.p.name = "sheervideo",
CODEC_LONG_NAME("BitJazz SheerVideo"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(SheerVideoContext),
.close = decode_end,
}

Definition at line 1998 of file sheervideo.c.

SheerVideoContext
Definition: sheervideo.c:32
AV_CODEC_ID_SHEERVIDEO
@ AV_CODEC_ID_SHEERVIDEO
Definition: codec_id.h:275
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: sheervideo.c:1988
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: sheervideo.c:1804
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
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201