FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cllc.c File Reference
#include <inttypes.h>
#include "libavutil/intreadwrite.h"
#include "bswapdsp.h"
#include "canopus.h"
#include "get_bits.h"
#include "avcodec.h"
#include "internal.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  CLLCContext
 

Macros

#define VLC_BITS   7
 
#define VLC_DEPTH   2
 

Functions

static int read_code_table (CLLCContext *ctx, GetBitContext *gb, VLC *vlc)
 
static int read_argb_line (CLLCContext *ctx, GetBitContext *gb, int *top_left, VLC *vlc, uint8_t *outbuf)
 
static int read_rgb24_component_line (CLLCContext *ctx, GetBitContext *gb, int *top_left, VLC *vlc, uint8_t *outbuf)
 
static int read_yuv_component_line (CLLCContext *ctx, GetBitContext *gb, int *top_left, VLC *vlc, uint8_t *outbuf, int is_chroma)
 
static int decode_argb_frame (CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
 
static int decode_rgb24_frame (CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
 
static int decode_yuv_frame (CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
 
static int cllc_decode_frame (AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt)
 
static av_cold int cllc_decode_close (AVCodecContext *avctx)
 
static av_cold int cllc_decode_init (AVCodecContext *avctx)
 

Variables

AVCodec ff_cllc_decoder
 

Macro Definition Documentation

#define VLC_BITS   7
#define VLC_DEPTH   2

Function Documentation

static int read_code_table ( CLLCContext ctx,
GetBitContext gb,
VLC vlc 
)
static

Definition at line 45 of file cllc.c.

Referenced by decode_argb_frame(), decode_rgb24_frame(), and decode_yuv_frame().

static int read_argb_line ( CLLCContext ctx,
GetBitContext gb,
int top_left,
VLC vlc,
uint8_t outbuf 
)
static

Definition at line 101 of file cllc.c.

Referenced by decode_argb_frame().

static int read_rgb24_component_line ( CLLCContext ctx,
GetBitContext gb,
int top_left,
VLC vlc,
uint8_t outbuf 
)
static

Definition at line 170 of file cllc.c.

Referenced by decode_rgb24_frame().

static int read_yuv_component_line ( CLLCContext ctx,
GetBitContext gb,
int top_left,
VLC vlc,
uint8_t outbuf,
int  is_chroma 
)
static

Definition at line 200 of file cllc.c.

Referenced by decode_yuv_frame().

static int decode_argb_frame ( CLLCContext ctx,
GetBitContext gb,
AVFrame pic 
)
static

Definition at line 228 of file cllc.c.

Referenced by cllc_decode_frame().

static int decode_rgb24_frame ( CLLCContext ctx,
GetBitContext gb,
AVFrame pic 
)
static

Definition at line 272 of file cllc.c.

Referenced by cllc_decode_frame().

static int decode_yuv_frame ( CLLCContext ctx,
GetBitContext gb,
AVFrame pic 
)
static

Definition at line 316 of file cllc.c.

Referenced by cllc_decode_frame().

static int cllc_decode_frame ( AVCodecContext avctx,
void data,
int got_picture_ptr,
AVPacket avpkt 
)
static

Definition at line 371 of file cllc.c.

static av_cold int cllc_decode_close ( AVCodecContext avctx)
static

Definition at line 499 of file cllc.c.

static av_cold int cllc_decode_init ( AVCodecContext avctx)
static

Definition at line 508 of file cllc.c.

Variable Documentation

AVCodec ff_cllc_decoder
Initial value:
= {
.name = "cllc",
.long_name = NULL_IF_CONFIG_SMALL("Canopus Lossless Codec"),
.priv_data_size = sizeof(CLLCContext),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(cllc_init_thread_copy),
.decode = cllc_decode_frame,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
static int init_thread_copy(AVCodecContext *avctx)
Definition: tta.c:392
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int cllc_decode_frame(AVCodecContext *avctx, void *data, int *got_picture_ptr, AVPacket *avpkt)
Definition: cllc.c:371
#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: internal.h:40
static av_cold int cllc_decode_close(AVCodecContext *avctx)
Definition: cllc.c:499
#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:1015
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: internal.h:225
static av_cold int cllc_decode_init(AVCodecContext *avctx)
Definition: cllc.c:508
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 522 of file cllc.c.