#include "avcodec.h"#include "common.h"#include "bitstream.h"#include "golomb.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, uint8_t *buf, int buf_size, int step) |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | decode_init (AVCodecContext *avctx) |
Variables | |
| AVCodec | loco_decoder |
Definition in file loco.c.
| enum LOCO_MODE |
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 158 of file loco.c.
References av_log(), AV_LOG_ERROR, AVCodecContext::get_buffer, AVCodecContext::height, LOCO_CRGB, LOCO_CYUY2, LOCO_CYV12, loco_decode_plane(), LOCO_RGB, LOCO_RGBA, LOCO_UYVY, LOCO_YUY2, LOCO_YV12, LOCOContext::mode, LOCOContext::pic, AVCodecContext::priv_data, AVCodecContext::release_buffer, and AVCodecContext::width.

| static int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 228 of file loco.c.
References av_log(), AV_LOG_ERROR, AV_LOG_INFO, LOCOContext::avctx, AVCodecContext::debug, AVCodecContext::extradata, AVCodecContext::extradata_size, FF_DEBUG_PICT_INFO, LE_32, LOCO_CRGB, LOCO_CRGBA, LOCO_CYUY2, LOCO_CYV12, LOCO_RGB, LOCO_RGBA, LOCO_UYVY, LOCO_YUY2, LOCO_YV12, LOCOContext::lossy, LOCOContext::mode, AVCodecContext::pix_fmt, PIX_FMT_BGR24, PIX_FMT_RGBA32, PIX_FMT_YUV420P, PIX_FMT_YUV422P, and AVCodecContext::priv_data.

| static int loco_decode_plane | ( | LOCOContext * | l, | |
| uint8_t * | data, | |||
| int | width, | |||
| int | height, | |||
| int | stride, | |||
| uint8_t * | buf, | |||
| int | buf_size, | |||
| int | step | |||
| ) | [static] |
Definition at line 118 of file loco.c.
References RICEContext::count, RICEContext::gb, get_bits_count(), init_get_bits(), loco_get_rice(), loco_predict(), LOCOContext::lossy, RICEContext::lossy, RICEContext::run, RICEContext::run2, RICEContext::save, and RICEContext::sum.
Referenced by decode_frame().

| static int loco_get_rice | ( | RICEContext * | r | ) | [inline, static] |
Definition at line 72 of file loco.c.
References RICEContext::gb, get_ur_golomb_jpegls(), loco_get_rice_param(), loco_update_rice_param(), RICEContext::lossy, RICEContext::run, RICEContext::run2, and RICEContext::save.
Referenced by loco_decode_plane().

| static int loco_get_rice_param | ( | RICEContext * | r | ) | [static] |
Definition at line 48 of file loco.c.
References RICEContext::count, and RICEContext::sum.
Referenced by loco_get_rice().
| static int loco_predict | ( | uint8_t * | data, | |
| int | stride, | |||
| int | step | |||
| ) | [inline, static] |
| static void loco_update_rice_param | ( | RICEContext * | r, | |
| int | val | |||
| ) | [inline, static] |
Definition at line 61 of file loco.c.
References RICEContext::count, and RICEContext::sum.
Referenced by loco_get_rice().
Initial value:
{
"loco",
CODEC_TYPE_VIDEO,
CODEC_ID_LOCO,
sizeof(LOCOContext),
decode_init,
NULL,
NULL,
decode_frame,
CODEC_CAP_DR1,
}
Definition at line 275 of file loco.c.
Referenced by avcodec_register_all().
1.5.5