Logo Search packages:      
Sourcecode: blender version File versions

huffyuv.c File Reference

Detailed Description

huffyuv codec for libavcodec.

Definition in file huffyuv.c.

#include "common.h"
#include "bitstream.h"
#include "avcodec.h"
#include "dsputil.h"

Go to the source code of this file.


struct  HYuvContext


#define B   0
#define G   1
#define R   2
#define VLC_BITS   11


enum  Predictor { LEFT = 0, PLANE, MEDIAN }


static int add_left_prediction (uint8_t *dst, uint8_t *src, int w, int acc)
static void add_left_prediction_bgr32 (uint8_t *dst, uint8_t *src, int w, int *red, int *green, int *blue)
static void add_median_prediction (uint8_t *dst, uint8_t *src1, uint8_t *diff, int w, int *left, int *left_top)
static void alloc_temp (HYuvContext *s)
static int common_end (HYuvContext *s)
static int common_init (AVCodecContext *avctx)
static void decode_422_bitstream (HYuvContext *s, int count)
static void decode_bgr_bitstream (HYuvContext *s, int count)
static int decode_end (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static void decode_gray_bitstream (HYuvContext *s, int count)
static int decode_init (AVCodecContext *avctx)
static void draw_slice (HYuvContext *s, int y)
static int encode_422_bitstream (HYuvContext *s, int count)
static int encode_end (AVCodecContext *avctx)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
static int encode_gray_bitstream (HYuvContext *s, int count)
static int encode_init (AVCodecContext *avctx)
static int generate_bits_table (uint32_t *dst, uint8_t *len_table)
static void generate_len_table (uint8_t *dst, uint64_t *stats, int size)
static int read_huffman_tables (HYuvContext *s, uint8_t *src, int length)
static void read_len_table (uint8_t *dst, GetBitContext *gb)
static int read_old_huffman_tables (HYuvContext *s)
static int store_table (HYuvContext *s, uint8_t *len, uint8_t *buf)
static int sub_left_prediction (HYuvContext *s, uint8_t *dst, uint8_t *src, int w, int left)


static const unsigned char classic_add_chroma [256]
static const unsigned char classic_add_luma [256]
static const unsigned char classic_shift_chroma []
static const unsigned char classic_shift_luma []
AVCodec ffvhuff_decoder
AVCodec huffyuv_decoder

Generated by  Doxygen 1.6.0   Back to index