#include <stdlib.h>
#include <string.h>
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "lossless_videodsp.h"
#include "thread.h"
Go to the source code of this file.
|
static int | huff_build (AVCodecContext *avctx, const uint8_t len[], uint16_t codes_pos[33], VLC *vlc, VLC_MULTI *multi, int nb_elems, void *logctx) |
|
static void | magicyuv_median_pred16 (uint16_t *dst, const uint16_t *src1, const uint16_t *diff, intptr_t w, int *left, int *left_top, int max) |
|
static int | magy_decode_slice10 (AVCodecContext *avctx, void *tdata, int j, int threadnr) |
|
static int | magy_decode_slice (AVCodecContext *avctx, void *tdata, int j, int threadnr) |
|
static int | build_huffman (AVCodecContext *avctx, const uint8_t *table, int table_size, int max) |
|
static int | magy_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) |
|
static av_cold int | magy_decode_init (AVCodecContext *avctx) |
|
static av_cold int | magy_decode_end (AVCodecContext *avctx) |
|
◆ CACHED_BITSTREAM_READER
#define CACHED_BITSTREAM_READER !ARCH_X86_32 |
◆ VLC_BITS
◆ READ_PLANE
#define READ_PLANE |
( |
|
dst, |
|
|
|
plane, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value:{ \
x = 0; \
} \
dst[x] =
get_vlc2(&gb, vlc, vlc_bits, 3); \
}
Definition at line 122 of file magicyuv.c.
◆ Prediction
Enumerator |
---|
LEFT | |
GRADIENT | |
MEDIAN | |
LEFT | |
GRADIENT | |
MEDIAN | |
Definition at line 44 of file magicyuv.c.
◆ huff_build()
◆ magicyuv_median_pred16()
static void magicyuv_median_pred16 |
( |
uint16_t * |
dst, |
|
|
const uint16_t * |
src1, |
|
|
const uint16_t * |
diff, |
|
|
intptr_t |
w, |
|
|
int * |
left, |
|
|
int * |
left_top, |
|
|
int |
max |
|
) |
| |
|
static |
◆ magy_decode_slice10()
◆ magy_decode_slice()
◆ build_huffman()
◆ magy_decode_frame()
◆ magy_decode_init()
◆ magy_decode_end()
◆ ff_magicyuv_decoder
Initial value:= {
.p.name = "magicyuv",
}
Definition at line 713 of file magicyuv.c.
static int get_vlc_multi(GetBitContext *s, uint8_t *dst, const VLC_MULTI_ELEM *const Jtable, const VLCElem *const table, const int bits, const int max_depth, const int symbols_size)