#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
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, unsigned cumFreq, unsigned freq, unsigned total_freq) |
|
static int | get_freq (RangeCoder *rc, unsigned total_freq, unsigned *freq) |
|
static int | decode0 (GetByteContext *gb, RangeCoder *rc, unsigned cumFreq, unsigned freq, unsigned total_freq) |
|
static int | get_freq0 (RangeCoder *rc, unsigned total_freq, unsigned *freq) |
|
static int | decode_value (SCPRContext *s, unsigned *cnt, unsigned maxc, unsigned step, unsigned *rval) |
|
static int | decode_unit (SCPRContext *s, PixelModel *pixel, unsigned step, unsigned *rval) |
|
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, void *data, 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, |
|
|
unsigned |
total_freq, |
|
|
unsigned * |
freq |
|
) |
| |
|
static |
◆ decode0()
◆ get_freq0()
static int get_freq0 |
( |
RangeCoder * |
rc, |
|
|
unsigned |
total_freq, |
|
|
unsigned * |
freq |
|
) |
| |
|
static |
◆ decode_value()
static int decode_value |
( |
SCPRContext * |
s, |
|
|
unsigned * |
cnt, |
|
|
unsigned |
maxc, |
|
|
unsigned |
step, |
|
|
unsigned * |
rval |
|
) |
| |
|
static |
◆ decode_unit()
◆ decompress_i()
◆ decompress_p()
◆ decode_frame()
◆ decode_init()
◆ decode_close()
◆ ff_scpr_decoder
Initial value:= {
.name = "scpr",
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static av_cold int decode_init(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int decode_close(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int decode(GetByteContext *gb, RangeCoder *rc, unsigned cumFreq, unsigned freq, unsigned total_freq)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition at line 912 of file scpr.c.