FFmpeg
|
WebP image decoder. More...
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "exif.h"
#include "get_bits.h"
#include "internal.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 56 of file webp.c.
Referenced by webp_decode_frame().
#define VP8X_FLAG_ALPHA 0x10 |
Definition at line 57 of file webp.c.
Referenced by webp_decode_frame().
#define VP8X_FLAG_ICC 0x20 |
Definition at line 58 of file webp.c.
Referenced by webp_decode_frame().
#define NUM_CODE_LENGTH_CODES 19 |
Definition at line 62 of file webp.c.
Referenced by read_huffman_code_normal().
#define HUFFMAN_CODES_PER_META_CODE 5 |
Definition at line 63 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 64 of file webp.c.
Referenced by decode_entropy_coded_image().
#define NUM_LENGTH_CODES 24 |
Definition at line 65 of file webp.c.
Referenced by decode_entropy_coded_image().
#define NUM_SHORT_DISTANCES 120 |
Definition at line 67 of file webp.c.
Referenced by decode_entropy_coded_image().
#define MAX_HUFFMAN_CODE_LENGTH 15 |
Definition at line 68 of file webp.c.
Referenced by huff_reader_build_canonical().
Definition at line 212 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 215 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 457 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 218 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 241 of file webp.c.
Referenced by huff_reader_get_symbol().
|
static |
Definition at line 273 of file webp.c.
Referenced by decode_entropy_coded_image(), and read_huffman_code_normal().
|
static |
Definition at line 284 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 346 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 361 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 587 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 463 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 497 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 513 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 529 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 564 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 581 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 907 of file webp.c.
Referenced by inv_predict_13().
|
static |
Definition at line 934 of file webp.c.
Referenced by apply_predictor_transform().
|
static |
Definition at line 956 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 987 of file webp.c.
Referenced by apply_color_transform().
|
static |
Definition at line 993 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1017 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1032 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1103 of file webp.c.
Referenced by vp8_lossless_decode_frame(), and vp8_lossy_decode_frame().
|
static |
Definition at line 1118 of file webp.c.
Referenced by vp8_lossy_decode_alpha(), and webp_decode_frame().
|
static |
Definition at line 1231 of file webp.c.
Referenced by vp8_lossy_decode_alpha().
|
static |
Definition at line 1274 of file webp.c.
Referenced by vp8_lossy_decode_frame().
|
static |
Definition at line 1327 of file webp.c.
Referenced by webp_decode_frame().
|
static |
|
static |
|
static |
Definition at line 70 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 76 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 80 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
AVCodec ff_webp_decoder |