FFmpeg
|
WebP image decoder. More...
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "exif.h"
#include "internal.h"
#include "get_bits.h"
#include "thread.h"
#include "vp8.h"
Go to the source code of this file.
Data Structures | |
struct | HuffReader |
struct | ImageContext |
struct | WebPContext |
Macros | |
#define | BITSTREAM_READER_LE |
#define | VP8X_FLAG_ANIMATION 0x02 |
#define | VP8X_FLAG_XMP_METADATA 0x04 |
#define | VP8X_FLAG_EXIF_METADATA 0x08 |
#define | VP8X_FLAG_ALPHA 0x10 |
#define | VP8X_FLAG_ICC 0x20 |
#define | MAX_PALETTE_SIZE 256 |
#define | MAX_CACHE_BITS 11 |
#define | NUM_CODE_LENGTH_CODES 19 |
#define | HUFFMAN_CODES_PER_META_CODE 5 |
#define | NUM_LITERAL_CODES 256 |
#define | NUM_LENGTH_CODES 24 |
#define | NUM_DISTANCE_CODES 40 |
#define | NUM_SHORT_DISTANCES 120 |
#define | MAX_HUFFMAN_CODE_LENGTH 15 |
#define | GET_PIXEL(frame, x, y) ((frame)->data[0] + (y) * frame->linesize[0] + 4 * (x)) |
#define | GET_PIXEL_COMP(frame, x, y, c) (*((frame)->data[0] + (y) * frame->linesize[0] + 4 * (x) + c)) |
#define | PARSE_BLOCK_SIZE(w, h) |
Typedefs | |
typedef void(* | inv_predict_func )(uint8_t *p, const uint8_t *p_l, const uint8_t *p_tl, const uint8_t *p_t, const uint8_t *p_tr) |
Variables | |
static const uint16_t | alphabet_sizes [HUFFMAN_CODES_PER_META_CODE] |
static const uint8_t | code_length_code_order [NUM_CODE_LENGTH_CODES] |
static const int8_t | lz77_distance_offsets [NUM_SHORT_DISTANCES][2] |
static const inv_predict_func | inverse_predict [14] |
AVCodec | ff_webp_decoder |
#define VP8X_FLAG_EXIF_METADATA 0x08 |
Definition at line 55 of file webp.c.
Referenced by webp_decode_frame().
#define VP8X_FLAG_ALPHA 0x10 |
Definition at line 56 of file webp.c.
Referenced by webp_decode_frame().
#define NUM_CODE_LENGTH_CODES 19 |
Definition at line 61 of file webp.c.
Referenced by read_huffman_code_normal().
#define HUFFMAN_CODES_PER_META_CODE 5 |
Definition at line 62 of file webp.c.
Referenced by decode_entropy_coded_image(), get_huffman_group(), and image_ctx_free().
#define NUM_LITERAL_CODES 256 |
Definition at line 63 of file webp.c.
Referenced by decode_entropy_coded_image().
#define NUM_LENGTH_CODES 24 |
Definition at line 64 of file webp.c.
Referenced by decode_entropy_coded_image().
#define NUM_SHORT_DISTANCES 120 |
Definition at line 66 of file webp.c.
Referenced by decode_entropy_coded_image().
#define MAX_HUFFMAN_CODE_LENGTH 15 |
Definition at line 67 of file webp.c.
Referenced by huff_reader_build_canonical().
Definition at line 210 of file webp.c.
Referenced by apply_color_indexing_transform(), apply_color_transform(), apply_subtract_green_transform(), decode_entropy_coded_image(), inverse_prediction(), and vp8_lossy_decode_alpha().
#define GET_PIXEL_COMP | ( | frame, | |
x, | |||
y, | |||
c | |||
) | (*((frame)->data[0] + (y) * frame->linesize[0] + 4 * (x) + c)) |
Definition at line 213 of file webp.c.
Referenced by apply_predictor_transform(), decode_entropy_image(), and get_huffman_group().
#define PARSE_BLOCK_SIZE | ( | w, | |
h | |||
) |
Definition at line 455 of file webp.c.
Referenced by decode_entropy_image(), parse_transform_color(), and parse_transform_predictor().
enum AlphaCompression |
enum AlphaFilter |
enum TransformType |
enum PredictionMode |
enum HuffmanIndex |
enum ImageRole |
|
static |
Definition at line 216 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 239 of file webp.c.
Referenced by huff_reader_get_symbol().
|
static |
Definition at line 271 of file webp.c.
Referenced by decode_entropy_coded_image(), and read_huffman_code_normal().
|
static |
Definition at line 282 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 344 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 359 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 585 of file webp.c.
Referenced by decode_entropy_image(), parse_transform_color(), parse_transform_color_indexing(), parse_transform_predictor(), and vp8_lossless_decode_frame().
|
static |
Definition at line 461 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 495 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 511 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 527 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 562 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 579 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 905 of file webp.c.
Referenced by inv_predict_13().
|
static |
Definition at line 932 of file webp.c.
Referenced by apply_predictor_transform().
|
static |
Definition at line 954 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 985 of file webp.c.
Referenced by apply_color_transform().
|
static |
Definition at line 991 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1015 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1030 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1101 of file webp.c.
Referenced by vp8_lossy_decode_alpha(), and webp_decode_frame().
|
static |
Definition at line 1222 of file webp.c.
Referenced by vp8_lossy_decode_alpha().
|
static |
Definition at line 1265 of file webp.c.
Referenced by vp8_lossy_decode_frame().
|
static |
Definition at line 1318 of file webp.c.
Referenced by webp_decode_frame().
|
static |
|
static |
|
static |
Definition at line 69 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 75 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 79 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
AVCodec ff_webp_decoder |