|
FFmpeg
4.4.6
|
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) |
Enumerations | |
| enum | AlphaCompression { ALPHA_COMPRESSION_NONE , ALPHA_COMPRESSION_VP8L } |
| enum | AlphaFilter { ALPHA_FILTER_NONE , ALPHA_FILTER_HORIZONTAL , ALPHA_FILTER_VERTICAL , ALPHA_FILTER_GRADIENT } |
| enum | TransformType { PREDICTOR_TRANSFORM = 0 , COLOR_TRANSFORM = 1 , SUBTRACT_GREEN = 2 , COLOR_INDEXING_TRANSFORM = 3 , DI , DII , TDII , LATT , NB_TTYPE } |
| enum | PredictionMode { PRED_MODE_BLACK , PRED_MODE_L , PRED_MODE_T , PRED_MODE_TR , PRED_MODE_TL , PRED_MODE_AVG_T_AVG_L_TR , PRED_MODE_AVG_L_TL , PRED_MODE_AVG_L_T , PRED_MODE_AVG_TL_T , PRED_MODE_AVG_T_TR , PRED_MODE_AVG_AVG_L_TL_AVG_T_TR , PRED_MODE_SELECT , PRED_MODE_ADD_SUBTRACT_FULL , PRED_MODE_ADD_SUBTRACT_HALF } |
| enum | HuffmanIndex { HUFF_IDX_GREEN = 0 , HUFF_IDX_RED = 1 , HUFF_IDX_BLUE = 2 , HUFF_IDX_ALPHA = 3 , HUFF_IDX_DIST = 4 } |
| enum | ImageRole { IMAGE_ROLE_ARGB , IMAGE_ROLE_ENTROPY , IMAGE_ROLE_PREDICTOR , IMAGE_ROLE_COLOR_TRANSFORM , IMAGE_ROLE_COLOR_INDEXING , IMAGE_ROLE_NB } |
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 |
| enum AlphaCompression |
| enum AlphaFilter |
| enum TransformType |
| enum PredictionMode |
| enum HuffmanIndex |
| enum ImageRole |
|
static |
Definition at line 219 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 236 of file webp.c.
Referenced by decode_entropy_coded_image(), and read_huffman_code_normal().
|
static |
Definition at line 247 of file webp.c.
Referenced by read_huffman_code_normal().
|
static |
Definition at line 309 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 324 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 549 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 425 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 459 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 475 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 491 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 526 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 543 of file webp.c.
Referenced by decode_entropy_coded_image().
|
static |
Definition at line 875 of file webp.c.
Referenced by inv_predict_13().
|
static |
Definition at line 902 of file webp.c.
Referenced by apply_predictor_transform().
|
static |
Definition at line 924 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 955 of file webp.c.
Referenced by apply_color_transform().
|
static |
Definition at line 961 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 985 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1000 of file webp.c.
Referenced by vp8_lossless_decode_frame().
|
static |
Definition at line 1071 of file webp.c.
Referenced by vp8_lossless_decode_frame(), and vp8_lossy_decode_frame().
|
static |
Definition at line 1086 of file webp.c.
Referenced by vp8_lossy_decode_alpha(), and webp_decode_frame().
|
static |
Definition at line 1199 of file webp.c.
Referenced by vp8_lossy_decode_alpha().
|
static |
Definition at line 1242 of file webp.c.
Referenced by vp8_lossy_decode_frame().
|
static |
Definition at line 1295 of file webp.c.
Referenced by webp_decode_frame().
|
static |
|
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 |
Definition at line 895 of file webp.c.
Referenced by inverse_prediction().
| AVCodec ff_webp_decoder |