FFmpeg
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 "codec_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, AVFrame *pic, 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

const FFCodec ff_cllc_decoder
 

Macro Definition Documentation

◆ VLC_BITS

#define VLC_BITS   7

Definition at line 33 of file cllc.c.

◆ VLC_DEPTH

#define VLC_DEPTH   2

Definition at line 34 of file cllc.c.

Function Documentation

◆ read_code_table()

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().

◆ read_argb_line()

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

Definition at line 88 of file cllc.c.

Referenced by decode_argb_frame().

◆ read_rgb24_component_line()

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

Definition at line 157 of file cllc.c.

Referenced by decode_rgb24_frame().

◆ read_yuv_component_line()

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 187 of file cllc.c.

Referenced by decode_yuv_frame().

◆ decode_argb_frame()

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

Definition at line 215 of file cllc.c.

Referenced by cllc_decode_frame().

◆ decode_rgb24_frame()

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

Definition at line 259 of file cllc.c.

Referenced by cllc_decode_frame().

◆ decode_yuv_frame()

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

Definition at line 303 of file cllc.c.

Referenced by cllc_decode_frame().

◆ cllc_decode_frame()

static int cllc_decode_frame ( AVCodecContext avctx,
AVFrame pic,
int got_picture_ptr,
AVPacket avpkt 
)
static

Definition at line 358 of file cllc.c.

◆ cllc_decode_close()

static av_cold int cllc_decode_close ( AVCodecContext avctx)
static

Definition at line 471 of file cllc.c.

◆ cllc_decode_init()

static av_cold int cllc_decode_init ( AVCodecContext avctx)
static

Definition at line 480 of file cllc.c.

Variable Documentation

◆ ff_cllc_decoder

const FFCodec ff_cllc_decoder
Initial value:
= {
.p.name = "cllc",
.p.long_name = NULL_IF_CONFIG_SMALL("Canopus Lossless Codec"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(CLLCContext),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 494 of file cllc.c.

init
static int init
Definition: av_tx.c:47
cllc_decode_frame
static int cllc_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_picture_ptr, AVPacket *avpkt)
Definition: cllc.c:358
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
cllc_decode_close
static av_cold int cllc_decode_close(AVCodecContext *avctx)
Definition: cllc.c:471
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:113
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:117
cllc_decode_init
static av_cold int cllc_decode_init(AVCodecContext *avctx)
Definition: cllc.c:480
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
AV_CODEC_ID_CLLC
@ AV_CODEC_ID_CLLC
Definition: codec_id.h:216
CLLCContext
Definition: cllc.c:37
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201