libavcodec/cljr.c File Reference

Cirrus Logic AccuPak codec. More...

#include "avcodec.h"
#include "libavutil/opt.h"
#include "get_bits.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  CLJRContext

Defines

#define OFFSET(x)   offsetof(CLJRContext, x)
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM

Typedefs

typedef struct CLJRContext CLJRContext

Functions

static av_cold int common_init (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_init (AVCodecContext *avctx)
static av_cold int decode_end (AVCodecContext *avctx)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)

Variables

AVCodec ff_cljr_decoder
static const AVOption options []
class {
      class_name = "cljr encoder"
      item_name = av_default_item_name
      option = options
      version = LIBAVUTIL_VERSION_INT
}; 
AVCodec ff_cljr_encoder

Detailed Description

Cirrus Logic AccuPak codec.

Definition in file cljr.c.


Define Documentation

#define OFFSET (   x  )     offsetof(CLJRContext, x)

Definition at line 179 of file cljr.c.

#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM

Definition at line 180 of file cljr.c.


Typedef Documentation

typedef struct CLJRContext CLJRContext

Function Documentation

static av_cold int common_init ( AVCodecContext avctx  )  [static]

Definition at line 38 of file cljr.c.

Referenced by decode_init().

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 112 of file cljr.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 49 of file cljr.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 106 of file cljr.c.

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void *  data 
) [static]

Definition at line 135 of file cljr.c.


Variable Documentation

const { ... } [static]
class_name = "cljr encoder"

Definition at line 187 of file cljr.c.

Referenced by av_opt_show2().

Initial value:
 {
    .name           = "cljr",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_CLJR,
    .priv_data_size = sizeof(CLJRContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
}

Definition at line 121 of file cljr.c.

Initial value:
 {
    .name           = "cljr",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_CLJR,
    .priv_data_size = sizeof(CLJRContext),
    .init           = common_init,
    .encode         = encode_frame,
    .pix_fmts       = (const enum PixelFormat[]) { PIX_FMT_YUV411P,
                                                   PIX_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
    .priv_class     = &class,
}

Definition at line 193 of file cljr.c.

item_name = av_default_item_name

Definition at line 188 of file cljr.c.

Definition at line 189 of file cljr.c.

Referenced by ff_rtsp_connect(), and pp_get_mode_by_name_and_quality().

const AVOption options[] [static]
Initial value:
 {
    { "dither_type",   "Dither type",   OFFSET(dither_type),        AV_OPT_TYPE_INT, { .dbl=1 }, 0, 2, VE},
    { NULL },
}

Definition at line 181 of file cljr.c.