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 211 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 214 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 456 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 217 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 240 of file webp.c.
Referenced by huff_reader_get_symbol().
|
static |
Definition at line 272 of file webp.c.
Referenced by decode_entropy_coded_image(), and read_huffman_code_normal().
|
static |
Definition at line 283 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 345 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 360 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 586 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 462 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 496 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 512 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 528 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 563 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 580 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 901 of file webp.c.
Referenced by inv_predict_13().
|
static |
Definition at line 928 of file webp.c.
Referenced by apply_predictor_transform().
|
static |
Definition at line 950 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 981 of file webp.c.
Referenced by apply_color_transform().
|
static |
Definition at line 987 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1011 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1026 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1097 of file webp.c.
Referenced by vp8_lossy_decode_alpha(), and webp_decode_frame().
|
static |
Definition at line 1210 of file webp.c.
Referenced by vp8_lossy_decode_alpha().
|
static |
Definition at line 1253 of file webp.c.
Referenced by vp8_lossy_decode_frame().
|
static |
Definition at line 1306 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 |