FFmpeg
|
#include "config_components.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "huffyuv.h"
#include "huffyuvdsp.h"
#include "lossless_videodsp.h"
#include "thread.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
Go to the source code of this file.
Data Structures | |
struct | HYuvDecContext |
Macros | |
#define | UNCHECKED_BITSTREAM_READER 1 |
#define | VLC_BITS 12 |
#define | VLC_INTERN(dst, table, gb, name, bits, max_depth) |
Subset of GET_VLC for use in hand-roller VLC code. More... | |
#define | GET_VLC_DUAL(dst0, dst1, name, gb, dtable, table1, table2, bits, max_depth, OP) |
#define | OP8bits(dst0, dst1, code) dst0 = code>>8; dst1 = code |
#define | READ_2PIX(dst0, dst1, plane1) |
#define | READ_2PIX_PLANE(dst0, dst1, plane, OP) |
#define | OP14bits(dst0, dst1, code) dst0 = code>>8; dst1 = sign_extend(code, 8) |
#define | READ_2PIX_PLANE16(dst0, dst1, plane) |
Functions | |
static int | read_len_table (uint8_t *dst, GetByteContext *gb, int n) |
static int | generate_joint_tables (HYuvDecContext *s) |
static int | read_huffman_tables (HYuvDecContext *s, const uint8_t *src, int length) |
static int | read_old_huffman_tables (HYuvDecContext *s) |
static av_cold int | decode_end (AVCodecContext *avctx) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static void | decode_422_bitstream (HYuvDecContext *s, int count) |
static void | decode_plane_bitstream (HYuvDecContext *s, int width, int plane) |
static void | decode_gray_bitstream (HYuvDecContext *s, int count) |
static av_always_inline void | decode_bgr_1 (HYuvDecContext *s, int count, int decorrelate, int alpha) |
static void | decode_bgr_bitstream (HYuvDecContext *s, int count) |
static void | draw_slice (HYuvDecContext *s, AVCodecContext *avctx, AVFrame *frame, int y) |
static int | left_prediction (HYuvDecContext *s, uint8_t *dst, const uint8_t *src, int w, int acc) |
static void | add_bytes (HYuvDecContext *s, uint8_t *dst, uint8_t *src, int w) |
static void | add_median_prediction (HYuvDecContext *s, uint8_t *dst, const uint8_t *src, const uint8_t *diff, int w, int *left, int *left_top) |
static int | decode_slice (AVCodecContext *avctx, AVFrame *p, int height, int buf_size, int y_offset, int table_size) |
static int | decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) |
Variables | |
static const uint8_t | classic_shift_luma [] |
static const uint8_t | classic_shift_chroma [] |
static const unsigned char | classic_add_luma [256] |
static const unsigned char | classic_add_chroma [256] |
const FFCodec | ff_huffyuv_decoder |
huffyuv decoder
Definition in file huffyuvdec.c.
#define UNCHECKED_BITSTREAM_READER 1 |
Definition at line 33 of file huffyuvdec.c.
#define VLC_BITS 12 |
Definition at line 51 of file huffyuvdec.c.
Subset of GET_VLC for use in hand-roller VLC code.
Definition at line 619 of file huffyuvdec.c.
Definition at line 644 of file huffyuvdec.c.
Definition at line 664 of file huffyuvdec.c.
#define READ_2PIX | ( | dst0, | |
dst1, | |||
plane1 | |||
) |
Definition at line 666 of file huffyuvdec.c.
#define READ_2PIX_PLANE | ( | dst0, | |
dst1, | |||
plane, | |||
OP | |||
) |
Definition at line 700 of file huffyuvdec.c.
#define OP14bits | ( | dst0, | |
dst1, | |||
code | |||
) | dst0 = code>>8; dst1 = sign_extend(code, 8) |
Definition at line 705 of file huffyuvdec.c.
#define READ_2PIX_PLANE16 | ( | dst0, | |
dst1, | |||
plane | |||
) |
|
static |
Definition at line 141 of file huffyuvdec.c.
Referenced by read_huffman_tables(), and read_old_huffman_tables().
|
static |
Definition at line 167 of file huffyuvdec.c.
Referenced by read_huffman_tables(), and read_old_huffman_tables().
|
static |
Definition at line 258 of file huffyuvdec.c.
Referenced by decode_frame(), and decode_init().
|
static |
Definition at line 286 of file huffyuvdec.c.
Referenced by decode_init().
|
static |
Definition at line 326 of file huffyuvdec.c.
|
static |
Definition at line 342 of file huffyuvdec.c.
|
static |
Definition at line 671 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 715 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 776 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 794 of file huffyuvdec.c.
Referenced by decode_bgr_bitstream().
|
static |
Definition at line 852 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 867 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 895 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 904 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 913 of file huffyuvdec.c.
Referenced by decode_slice().
|
static |
Definition at line 922 of file huffyuvdec.c.
Referenced by decode_frame().
|
static |
Definition at line 1233 of file huffyuvdec.c.
|
static |
Definition at line 90 of file huffyuvdec.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 96 of file huffyuvdec.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 103 of file huffyuvdec.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 122 of file huffyuvdec.c.
Referenced by read_old_huffman_tables().
const FFCodec ff_huffyuv_decoder |
Definition at line 1316 of file huffyuvdec.c.