Go to the source code of this file.
|
static av_cold void | decode_init_static (void) |
|
static av_cold int | decode_init (AVCodecContext *avctx) |
|
static int | zero (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | bad (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | linear (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k13 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k12 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k24 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k23 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k35 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k34 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k45 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | k44 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | t15 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | t27 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | t37 (InterplayACMContext *s, unsigned ind, unsigned col) |
|
static int | fill_block (InterplayACMContext *s) |
|
static void | juggle (int *wrap_p, int *block_p, unsigned sub_len, unsigned sub_count) |
|
static void | juggle_block (InterplayACMContext *s) |
|
static int | decode_block (InterplayACMContext *s) |
|
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt) |
|
static av_cold int | decode_close (AVCodecContext *avctx) |
|
|
static const int8_t | map_1bit [] = { -1, +1 } |
|
static const int8_t | map_2bit_near [] = { -2, -1, +1, +2 } |
|
static const int8_t | map_2bit_far [] = { -3, -2, +2, +3 } |
|
static const int8_t | map_3bit [] = { -4, -3, -2, -1, +1, +2, +3, +4 } |
|
static int | mul_3x3 [3 *3 *3] |
|
static int | mul_3x5 [5 *5 *5] |
|
static int | mul_2x11 [11 *11] |
|
static const filler | filler_list [] |
|
const AVCodec | ff_interplay_acm_decoder |
|
◆ BITSTREAM_READER_LE
#define BITSTREAM_READER_LE |
◆ set_pos
#define set_pos |
( |
|
s, |
|
|
|
r, |
|
|
|
c, |
|
|
|
idx |
|
) |
| |
Value: do { \
unsigned
pos = ((
r) <<
s->level) + (
c); \
s->block[
pos] =
s->midbuf[(idx)]; \
} while (0)
Definition at line 112 of file interplayacm.c.
◆ filler
◆ decode_init_static()
static av_cold void decode_init_static |
( |
void |
| ) |
|
|
static |
◆ decode_init()
◆ zero()
◆ bad()
◆ linear()
◆ k13()
◆ k12()
◆ k24()
◆ k23()
◆ k35()
◆ k34()
◆ k45()
◆ k44()
◆ t15()
◆ t27()
◆ t37()
◆ fill_block()
◆ juggle()
static void juggle |
( |
int * |
wrap_p, |
|
|
int * |
block_p, |
|
|
unsigned |
sub_len, |
|
|
unsigned |
sub_count |
|
) |
| |
|
static |
◆ juggle_block()
◆ decode_block()
◆ decode_frame()
◆ decode_close()
◆ map_1bit
const int8_t map_1bit[] = { -1, +1 } |
|
static |
◆ map_2bit_near
const int8_t map_2bit_near[] = { -2, -1, +1, +2 } |
|
static |
◆ map_2bit_far
const int8_t map_2bit_far[] = { -3, -2, +2, +3 } |
|
static |
◆ map_3bit
const int8_t map_3bit[] = { -4, -3, -2, -1, +1, +2, +3, +4 } |
|
static |
◆ mul_3x3
◆ mul_3x5
◆ mul_2x11
◆ filler_list
◆ ff_interplay_acm_decoder
const AVCodec ff_interplay_acm_decoder |
Initial value:= {
.name = "interplayacm",
}
Definition at line 635 of file interplayacm.c.
#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 k45(InterplayACMContext *s, unsigned ind, unsigned col)
@ AV_CODEC_ID_INTERPLAY_ACM
static int linear(InterplayACMContext *s, unsigned ind, unsigned col)
static int k44(InterplayACMContext *s, unsigned ind, unsigned col)
static int t15(InterplayACMContext *s, unsigned ind, unsigned col)
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
static int k35(InterplayACMContext *s, unsigned ind, unsigned col)
static int k34(InterplayACMContext *s, unsigned ind, unsigned col)
static av_cold int decode_init(AVCodecContext *avctx)
static int k12(InterplayACMContext *s, unsigned ind, unsigned col)
static av_cold int decode_close(AVCodecContext *avctx)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int t27(InterplayACMContext *s, unsigned ind, unsigned col)
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
static int k23(InterplayACMContext *s, unsigned ind, unsigned col)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static int t37(InterplayACMContext *s, unsigned ind, unsigned col)
static int k13(InterplayACMContext *s, unsigned ind, unsigned col)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
static int bad(InterplayACMContext *s, unsigned ind, unsigned col)
static int k24(InterplayACMContext *s, unsigned ind, unsigned col)