libavcodec/loco.c File Reference

LOCO codec. More...

#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  LOCOContext
struct  RICEContext

Enumerations

enum  LOCO_MODE {
  LOCO_UNKN = 0, LOCO_CYUY2 = -1, LOCO_CRGB = -2, LOCO_CRGBA = -3,
  LOCO_CYV12 = -4, LOCO_YUY2 = 1, LOCO_UYVY = 2, LOCO_RGB = 3,
  LOCO_RGBA = 4, LOCO_YV12 = 5
}

Functions

static int loco_get_rice_param (RICEContext *r)
static void loco_update_rice_param (RICEContext *r, int val)
static int loco_get_rice (RICEContext *r)
static int loco_predict (uint8_t *data, int stride, int step)
static int loco_decode_plane (LOCOContext *l, uint8_t *data, int width, int height, int stride, const uint8_t *buf, int buf_size, int step)
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)

Variables

AVCodec ff_loco_decoder


Detailed Description

LOCO codec.

Definition in file loco.c.


Enumeration Type Documentation

enum LOCO_MODE

Enumerator:
LOCO_UNKN 
LOCO_CYUY2 
LOCO_CRGB 
LOCO_CRGBA 
LOCO_CYV12 
LOCO_YUY2 
LOCO_UYVY 
LOCO_RGB 
LOCO_RGBA 
LOCO_YV12 

Definition at line 32 of file loco.c.


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 283 of file loco.c.

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

Definition at line 162 of file loco.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 234 of file loco.c.

static int loco_decode_plane ( LOCOContext l,
uint8_t *  data,
int  width,
int  height,
int  stride,
const uint8_t *  buf,
int  buf_size,
int  step 
) [static]

Definition at line 119 of file loco.c.

Referenced by decode_frame().

static int loco_get_rice ( RICEContext r  )  [inline, static]

Definition at line 73 of file loco.c.

Referenced by loco_decode_plane().

static int loco_get_rice_param ( RICEContext r  )  [static]

Definition at line 49 of file loco.c.

Referenced by loco_get_rice().

static int loco_predict ( uint8_t *  data,
int  stride,
int  step 
) [inline, static]

Definition at line 108 of file loco.c.

Referenced by loco_decode_plane().

static void loco_update_rice_param ( RICEContext r,
int  val 
) [inline, static]

Definition at line 62 of file loco.c.

Referenced by loco_get_rice().


Variable Documentation

Initial value:

 {
    .name           = "loco",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_LOCO,
    .priv_data_size = sizeof(LOCOContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("LOCO"),
}

Definition at line 293 of file loco.c.


Generated on Fri Oct 26 02:46:09 2012 for FFmpeg by  doxygen 1.5.8