#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "scpr.h"
#include "scpr3.h"
#include "scpr3.c"
Go to the source code of this file.
|
#define | TOP 0x01000000 |
|
#define | BOT 0x010000 |
|
|
static void | init_rangecoder (RangeCoder *rc, GetByteContext *gb) |
|
static void | reinit_tables (SCPRContext *s) |
|
static int | decode (GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) |
|
static int | get_freq (RangeCoder *rc, uint32_t total_freq, uint32_t *freq) |
|
static int | decode0 (GetByteContext *gb, RangeCoder *rc, uint32_t cumFreq, uint32_t freq, uint32_t total_freq) |
|
static int | get_freq0 (RangeCoder *rc, uint32_t total_freq, uint32_t *freq) |
|
static int | decode_value (SCPRContext *s, uint32_t *cnt, uint32_t maxc, uint32_t step, uint32_t *rval) |
|
static int | decode_unit (SCPRContext *s, PixelModel *pixel, uint32_t step, uint32_t *rval) |
|
static int | decode_units (SCPRContext *s, uint32_t *r, uint32_t *g, uint32_t *b, int *cx, int *cx1) |
|
static int | decompress_i (AVCodecContext *avctx, uint32_t *dst, int linesize) |
|
static int | decompress_p (AVCodecContext *avctx, uint32_t *dst, int linesize, uint32_t *prev, int plinesize) |
|
static int | decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
|
static av_cold int | decode_init (AVCodecContext *avctx) |
|
static av_cold int | decode_close (AVCodecContext *avctx) |
|
◆ TOP
◆ BOT
◆ init_rangecoder()
◆ reinit_tables()
◆ decode()
◆ get_freq()
static int get_freq |
( |
RangeCoder * |
rc, |
|
|
uint32_t |
total_freq, |
|
|
uint32_t * |
freq |
|
) |
| |
|
static |
◆ decode0()
◆ get_freq0()
static int get_freq0 |
( |
RangeCoder * |
rc, |
|
|
uint32_t |
total_freq, |
|
|
uint32_t * |
freq |
|
) |
| |
|
static |
◆ decode_value()
static int decode_value |
( |
SCPRContext * |
s, |
|
|
uint32_t * |
cnt, |
|
|
uint32_t |
maxc, |
|
|
uint32_t |
step, |
|
|
uint32_t * |
rval |
|
) |
| |
|
static |
◆ decode_unit()
◆ decode_units()
static int decode_units |
( |
SCPRContext * |
s, |
|
|
uint32_t * |
r, |
|
|
uint32_t * |
g, |
|
|
uint32_t * |
b, |
|
|
int * |
cx, |
|
|
int * |
cx1 |
|
) |
| |
|
static |
◆ decompress_i()
◆ decompress_p()
◆ decode_frame()
◆ decode_init()
◆ decode_close()
◆ ff_scpr_decoder
Initial value:
Definition at line 671 of file scpr.c.