huffyuv codec for libavcodec. More...
#include "avcodec.h"
#include "get_bits.h"
#include "put_bits.h"
#include "dsputil.h"
#include "thread.h"
Go to the source code of this file.
Data Structures | |
struct | HYuvContext |
Macros | |
#define | VLC_BITS 11 |
#define | B 0 |
#define | G 1 |
#define | R 2 |
#define | A 3 |
#define | classic_shift_luma_table_size 42 |
#define | classic_shift_chroma_table_size 59 |
#define | READ_2PIX(dst0, dst1, plane1) |
#define | LOAD3 |
#define | STAT3 |
#define | WRITE3 |
Typedefs | |
typedef enum Predictor | Predictor |
typedef struct HYuvContext | HYuvContext |
Enumerations | |
enum | Predictor { LEFT = 0, PLANE, MEDIAN } |
Functions | |
static int | sub_left_prediction (HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int left) |
static void | sub_left_prediction_bgr32 (HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int *red, int *green, int *blue) |
static int | read_len_table (uint8_t *dst, GetBitContext *gb) |
static int | generate_bits_table (uint32_t *dst, const uint8_t *len_table) |
static int | generate_joint_tables (HYuvContext *s) |
static int | read_huffman_tables (HYuvContext *s, const uint8_t *src, int length) |
static int | read_old_huffman_tables (HYuvContext *s) |
static av_cold void | alloc_temp (HYuvContext *s) |
static av_cold int | common_init (AVCodecContext *avctx) |
static void | decode_422_bitstream (HYuvContext *s, int count) |
static void | decode_gray_bitstream (HYuvContext *s, int count) |
static av_always_inline void | decode_bgr_1 (HYuvContext *s, int count, int decorrelate, int alpha) |
static void | decode_bgr_bitstream (HYuvContext *s, int count) |
static int | encode_bgr_bitstream (HYuvContext *s, int count) |
static int | common_end (HYuvContext *s) |
Variables | |
static const unsigned char | classic_shift_luma [classic_shift_luma_table_size+FF_INPUT_BUFFER_PADDING_SIZE] |
static const unsigned char | classic_shift_chroma [classic_shift_chroma_table_size+FF_INPUT_BUFFER_PADDING_SIZE] |
static const unsigned char | classic_add_luma [256] |
static const unsigned char | classic_add_chroma [256] |
huffyuv codec for libavcodec.
Definition in file huffyuv.c.
#define B 0 |
Definition at line 45 of file huffyuv.c.
Referenced by decode_bgr_1(), generate_joint_tables(), and sub_left_prediction_bgr32().
#define classic_shift_chroma_table_size 59 |
Definition at line 92 of file huffyuv.c.
Referenced by read_old_huffman_tables().
#define classic_shift_luma_table_size 42 |
Definition at line 85 of file huffyuv.c.
Referenced by read_old_huffman_tables().
#define G 1 |
Definition at line 46 of file huffyuv.c.
Referenced by decode_bgr_1(), generate_joint_tables(), and sub_left_prediction_bgr32().
#define LOAD3 |
#define R 2 |
Definition at line 47 of file huffyuv.c.
Referenced by decode_bgr_1(), generate_joint_tables(), and sub_left_prediction_bgr32().
#define READ_2PIX | ( | dst0, | |
dst1, | |||
plane1 | |||
) |
Definition at line 733 of file huffyuv.c.
Referenced by decode_422_bitstream(), and decode_gray_bitstream().
#define STAT3 |
Referenced by encode_bgr_bitstream().
#define VLC_BITS 11 |
Definition at line 37 of file huffyuv.c.
Referenced by decode_bgr_1(), generate_joint_tables(), read_huffman_tables(), and read_old_huffman_tables().
#define WRITE3 |
typedef struct HYuvContext HYuvContext |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 876 of file huffyuv.c.
Referenced by decode_bgr_bitstream().
|
static |
|
static |
|
static |
|
static |
Definition at line 199 of file huffyuv.c.
Referenced by read_huffman_tables().
|
static |
Definition at line 276 of file huffyuv.c.
Referenced by read_huffman_tables(), and read_old_huffman_tables().
|
static |
|
static |
Definition at line 180 of file huffyuv.c.
Referenced by read_huffman_tables(), and read_old_huffman_tables().
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 118 of file huffyuv.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 99 of file huffyuv.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 93 of file huffyuv.c.
Referenced by read_old_huffman_tables().
|
static |
Definition at line 86 of file huffyuv.c.
Referenced by read_old_huffman_tables().