FFmpeg
Data Structures | Macros | Functions | Variables
cllc.c File Reference
#include <inttypes.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.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 34 of file cllc.c.

◆ VLC_DEPTH

#define VLC_DEPTH   2

Definition at line 35 of file cllc.c.

Function Documentation

◆ read_code_table()

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

Definition at line 46 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 89 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 158 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 188 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 216 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 260 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 304 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 359 of file cllc.c.

◆ cllc_decode_close()

static av_cold int cllc_decode_close ( AVCodecContext avctx)
static

Definition at line 469 of file cllc.c.

◆ cllc_decode_init()

static av_cold int cllc_decode_init ( AVCodecContext avctx)
static

Definition at line 478 of file cllc.c.

Variable Documentation

◆ ff_cllc_decoder

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

Definition at line 492 of file cllc.c.

cllc_decode_frame
static int cllc_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_picture_ptr, AVPacket *avpkt)
Definition: cllc.c:359
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
cllc_decode_close
static av_cold int cllc_decode_close(AVCodecContext *avctx)
Definition: cllc.c:469
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
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
cllc_decode_init
static av_cold int cllc_decode_init(AVCodecContext *avctx)
Definition: cllc.c:478
AV_CODEC_ID_CLLC
@ AV_CODEC_ID_CLLC
Definition: codec_id.h:220
CLLCContext
Definition: cllc.c:38
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201