|
FFmpeg
|
OpenEXR decoder. More...
#include <zlib.h>#include "get_bits.h"#include "avcodec.h"#include "bytestream.h"#include "mathops.h"#include "thread.h"#include "libavutil/imgutils.h"#include "libavutil/avassert.h"Go to the source code of this file.
Data Structures | |
| struct | EXRChannel |
| struct | EXRThreadData |
| struct | EXRContext |
| struct | HufDec |
Macros | |
| #define | USHORT_RANGE (1 << 16) |
| #define | BITMAP_SIZE (1 << 13) |
| #define | HUF_ENCBITS 16 |
| #define | HUF_DECBITS 14 |
| #define | HUF_ENCSIZE ((1 << HUF_ENCBITS) + 1) |
| #define | HUF_DECSIZE (1 << HUF_DECBITS) |
| #define | HUF_DECMASK (HUF_DECSIZE - 1) |
| #define | SHORT_ZEROCODE_RUN 59 |
| #define | LONG_ZEROCODE_RUN 63 |
| #define | SHORTEST_LONG_RUN (2 + LONG_ZEROCODE_RUN - SHORT_ZEROCODE_RUN) |
| #define | LONGEST_LONG_RUN (255 + SHORTEST_LONG_RUN) |
| #define | get_char(c, lc, gb) |
| #define | get_code(po, rlc, c, lc, gb, out, oe) |
| #define | NBITS 16 |
| #define | A_OFFSET (1 << (NBITS - 1)) |
| #define | MOD_MASK ((1 << NBITS) - 1) |
Enumerations | |
| enum | ExrCompr { EXR_RAW = 0, EXR_RLE = 1, EXR_ZIP1 = 2, EXR_ZIP16 = 3, EXR_PIZ = 4, EXR_PXR24 = 5, EXR_B44 = 6, EXR_B44A = 7 } |
| enum | ExrPixelType { EXR_UINT, EXR_HALF, EXR_FLOAT } |
Functions | |
| static uint16_t | exr_flt2uint (uint32_t v) |
| Converts from 32-bit float as uint32_t to uint16_t. | |
| static uint16_t | exr_halflt2uint (uint16_t v) |
| Converts from 16-bit float as uint16_t to uint16_t. | |
| static unsigned int | get_header_variable_length (const uint8_t **buf, const uint8_t *buf_end) |
| Gets the size of the header variable. | |
| static int | check_header_variable (AVCodecContext *avctx, const uint8_t **buf, const uint8_t *buf_end, const char *value_name, const char *value_type, unsigned int minimum_length, unsigned int *variable_buffer_data_size) |
| Checks if the variable name corresponds with it's data type. | |
| static void | predictor (uint8_t *src, int size) |
| static void | reorder_pixels (uint8_t *src, uint8_t *dst, int size) |
| static int | zip_uncompress (const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) |
| static int | rle_uncompress (const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) |
| static uint16_t | reverse_lut (const uint8_t *bitmap, uint16_t *lut) |
| static void | apply_lut (const uint16_t *lut, uint16_t *dst, int dsize) |
| static void | huf_canonical_code_table (uint64_t *hcode) |
| static int | huf_unpack_enc_table (GetByteContext *gb, int32_t im, int32_t iM, uint64_t *hcode) |
| static int | huf_build_dec_table (const uint64_t *hcode, int im, int iM, HufDec *hdecod) |
| static int | huf_decode (const uint64_t *hcode, const HufDec *hdecod, GetByteContext *gb, int nbits, int rlc, int no, uint16_t *out) |
| static int | huf_uncompress (GetByteContext *gb, uint16_t *dst, int dst_size) |
| static void | wdec14 (uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) |
| static void | wdec16 (uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) |
| static void | wav_decode (uint16_t *in, int nx, int ox, int ny, int oy, uint16_t mx) |
| static int | piz_uncompress (EXRContext *s, const uint8_t *src, int ssize, int dsize, EXRThreadData *td) |
| static int | pxr24_uncompress (EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) |
| static int | decode_block (AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_exr_decoder |
OpenEXR decoder.
For more information on the OpenEXR format, visit: http://openexr.com/
exr_flt2uint() and exr_halflt2uint() is credited to Reimar Döffinger
Definition in file exr.c.
| #define USHORT_RANGE (1 << 16) |
Definition at line 284 of file exr.c.
Referenced by reverse_lut().
| #define BITMAP_SIZE (1 << 13) |
Definition at line 285 of file exr.c.
Referenced by piz_uncompress().
| #define HUF_DECBITS 14 |
Definition at line 312 of file exr.c.
Referenced by huf_build_dec_table(), and huf_decode().
| #define HUF_ENCSIZE ((1 << HUF_ENCBITS) + 1) |
Definition at line 314 of file exr.c.
Referenced by huf_canonical_code_table(), and huf_uncompress().
| #define HUF_DECSIZE (1 << HUF_DECBITS) |
Definition at line 315 of file exr.c.
Referenced by huf_uncompress().
| #define HUF_DECMASK (HUF_DECSIZE - 1) |
Definition at line 316 of file exr.c.
Referenced by huf_decode().
| #define SHORT_ZEROCODE_RUN 59 |
Definition at line 347 of file exr.c.
Referenced by huf_unpack_enc_table().
| #define LONG_ZEROCODE_RUN 63 |
Definition at line 348 of file exr.c.
Referenced by huf_unpack_enc_table().
| #define SHORTEST_LONG_RUN (2 + LONG_ZEROCODE_RUN - SHORT_ZEROCODE_RUN) |
Definition at line 349 of file exr.c.
Referenced by huf_unpack_enc_table().
| #define LONGEST_LONG_RUN (255 + SHORTEST_LONG_RUN) |
| #define get_char | ( | c, | |
| lc, | |||
| gb | |||
| ) |
Definition at line 428 of file exr.c.
Referenced by huf_decode().
Definition at line 433 of file exr.c.
Referenced by huf_decode().
| enum ExrCompr |
| enum ExrPixelType |
|
inlinestatic |
Converts from 32-bit float as uint32_t to uint16_t.
| v | 32-bit float |
Definition at line 108 of file exr.c.
Referenced by decode_block().
|
inlinestatic |
Converts from 16-bit float as uint16_t to uint16_t.
| v | 16-bit float |
Definition at line 127 of file exr.c.
Referenced by decode_block().
|
static |
Gets the size of the header variable.
| **buf | the current pointer location in the header where the variable data starts |
| *buf_end | pointer location of the end of the buffer |
Definition at line 146 of file exr.c.
Referenced by check_header_variable(), and decode_frame().
|
static |
Checks if the variable name corresponds with it's data type.
| *avctx | the AVCodecContext |
| **buf | the current pointer location in the header where the variable name starts |
| *buf_end | pointer location of the end of the buffer |
| *value_name | name of the varible to check |
| *value_type | type of the varible to check |
| minimum_length | minimum length of the variable data |
| variable_buffer_data_size | variable length read from the header after it's checked |
Definition at line 169 of file exr.c.
Referenced by decode_frame().
Definition at line 192 of file exr.c.
Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_ima_expand_nibble(), adpcm_ima_oki_expand_nibble(), adpcm_ima_qt_expand_nibble(), adpcm_ima_wav_expand_nibble(), adpcm_ms_compress_sample(), adpcm_ms_expand_nibble(), decode_audio_s16(), dpcm_decode_frame(), encode_picture_lossless(), ff_mjpeg_decode_sos(), ljpeg_decode_rgb_scan(), rle_uncompress(), tta_decode_frame(), and zip_uncompress().
Definition at line 204 of file exr.c.
Referenced by rle_uncompress(), and zip_uncompress().
|
static |
Definition at line 224 of file exr.c.
Referenced by decode_block().
|
static |
Definition at line 239 of file exr.c.
Referenced by decode_block().
|
static |
Definition at line 287 of file exr.c.
Referenced by piz_uncompress().
|
static |
Definition at line 303 of file exr.c.
Referenced by piz_uncompress().
|
static |
Definition at line 324 of file exr.c.
Referenced by huf_unpack_enc_table().
|
static |
Definition at line 352 of file exr.c.
Referenced by huf_uncompress().
|
static |
Definition at line 391 of file exr.c.
Referenced by huf_uncompress().
|
static |
Definition at line 455 of file exr.c.
Referenced by huf_uncompress().
|
static |
Definition at line 523 of file exr.c.
Referenced by piz_uncompress().
|
inlinestatic |
Definition at line 575 of file exr.c.
Referenced by wav_decode().
|
inlinestatic |
Definition at line 592 of file exr.c.
Referenced by wav_decode().
|
static |
Definition at line 602 of file exr.c.
Referenced by piz_uncompress().
|
static |
Definition at line 681 of file exr.c.
Referenced by decode_block().
|
static |
Definition at line 739 of file exr.c.
Referenced by decode_block().
|
static |
Definition at line 794 of file exr.c.
Referenced by decode_frame().
|
static |
|
static |
| AVCodec ff_exr_decoder |
1.8.2