FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
sheervideo.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "thread.h"
#include "sheervideodata.h"

Go to the source code of this file.

Data Structures

struct  SheerVideoContext
 

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 int build_vlc (VLC *vlc, const uint8_t *len, int count)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_sheervideo_decoder
 

Function Documentation

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

Definition at line 40 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 84 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 172 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 211 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 287 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 329 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 412 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 462 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 564 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 614 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 716 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 799 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 873 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 956 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1024 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1100 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1178 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1266 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1310 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1398 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1437 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1513 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1579 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1655 of file sheervideo.c.

Referenced by decode_frame().

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

Definition at line 1714 of file sheervideo.c.

Referenced by decode_frame().

static int build_vlc ( VLC vlc,
const uint8_t len,
int  count 
)
static

Definition at line 1781 of file sheervideo.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 1804 of file sheervideo.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 2079 of file sheervideo.c.

Variable Documentation

AVCodec ff_sheervideo_decoder
Initial value:
= {
.name = "sheervideo",
.long_name = NULL_IF_CONFIG_SMALL("BitJazz SheerVideo"),
.priv_data_size = sizeof(SheerVideoContext),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy),
.close = decode_end,
.decode = decode_frame,
}
static av_cold int decode_end(AVCodecContext *avctx)
Definition: sheervideo.c:2079
static int init_thread_copy(AVCodecContext *avctx)
Definition: tta.c:392
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: sheervideo.c:1804
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: avcodec.h:1023
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: internal.h:225
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:967

Definition at line 2089 of file sheervideo.c.