| FFmpeg
    | 
#include "config.h"#include <float.h>#include "libavutil/attributes.h"#include "libavutil/attributes_internal.h"#include "libavutil/avstring.h"#include "libavutil/error.h"#include "libavutil/intreadwrite.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/reverse.h"#include "avcodec.h"#include "bytestream.h"#include "codec_internal.h"#include "decode.h"#include "faxcompr.h"#include "lzw.h"#include "tiff.h"#include "tiff_common.h"#include "tiff_data.h"#include "mjpegdec.h"#include "thread.h"#include "get_bits.h"Go to the source code of this file.
| Data Structures | |
| struct | TiffContext | 
| Macros | |
| #define | RET_GEOKEY_STR(TYPE, array) | 
| #define | RET_GEOKEY_TYPE(TYPE, array) | 
| #define | RET_GEOKEY_VAL(TYPE, array) | 
| #define | ADD_METADATA(count, name, sep) | 
| #define | OFFSET(x) offsetof(TiffContext, x) | 
| Functions | |
| static void | tiff_set_type (TiffContext *s, enum TiffType tiff_type) | 
| static void | free_geotags (TiffContext *const s) | 
| static const char * | get_geokey_name (int key) | 
| static int | get_geokey_type (int key) | 
| static int | cmp_id_key (const void *id, const void *k) | 
| static const char * | search_keyval (const TiffGeoTagKeyName *keys, int n, int id) | 
| static const char * | get_geokey_val (int key, uint16_t val) | 
| static char * | doubles2str (double *dp, int count, const char *sep) | 
| static int | add_metadata (int count, int type, const char *name, const char *sep, TiffContext *s, AVFrame *frame) | 
| static uint16_t av_always_inline | dng_process_color16 (uint16_t value, const uint16_t *lut, float black_level, float scale_factor) | 
| Map stored raw sensor values into linear reference values (see: DNG Specification - Chapter 5)  More... | |
| static uint16_t av_always_inline | dng_process_color8 (uint16_t value, const uint16_t *lut, float black_level, float scale_factor) | 
| static void av_always_inline | dng_blit (TiffContext *s, uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height, int is_single_comp, int is_u16, int odd_line) | 
| static void av_always_inline | horizontal_fill (TiffContext *s, unsigned int bpp, uint8_t *dst, int usePtr, const uint8_t *src, uint8_t c, int width, int offset) | 
| static int | deinvert_buffer (TiffContext *s, const uint8_t *src, int size) | 
| static void | unpack_gray (TiffContext *s, AVFrame *p, const uint8_t *src, int lnum, int width, int bpp) | 
| static void | unpack_yuv (TiffContext *s, AVFrame *p, const uint8_t *src, int lnum) | 
| static int | tiff_unpack_fax (TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int width, int lines) | 
| static int | dng_decode_jpeg (AVCodecContext *avctx, AVFrame *frame, int tile_byte_count, int dst_x, int dst_y, int w, int h) | 
| static int | tiff_unpack_strip (TiffContext *s, AVFrame *p, uint8_t *dst, int stride, const uint8_t *src, int size, int strip_start, int lines) | 
| static int | dng_decode_tiles (AVCodecContext *avctx, AVFrame *frame, const AVPacket *avpkt) | 
| static int | init_image (TiffContext *s, AVFrame *frame) | 
| static void | set_sar (TiffContext *s, unsigned tag, unsigned num, unsigned den) | 
| static int | tiff_decode_tag (TiffContext *s, AVFrame *frame) | 
| static void | camera_xyz_coeff (TiffContext *s, float rgb2cam[3][4], double cam2xyz[4][3]) | 
| static int | decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) | 
| static av_cold int | tiff_init (AVCodecContext *avctx) | 
| static av_cold int | tiff_end (AVCodecContext *avctx) | 
| Variables | |
| static const float | d65_white [3] = { 0.950456f, 1.f, 1.088754f } | 
| static const float | xyz2rgb [3][3] | 
| static const AVOption | tiff_options [] | 
| static const AVClass | tiff_decoder_class | 
| const FFCodec | ff_tiff_decoder | 
TIFF image decoder
Definition in file tiff.c.
| #define ADD_METADATA | ( | count, | |
| name, | |||
| sep | |||
| ) | 
| #define OFFSET | ( | x | ) | offsetof(TiffContext, x) | 
| 
 | static | 
Definition at line 131 of file tiff.c.
Referenced by tiff_decode_tag().
| 
 | static | 
Definition at line 136 of file tiff.c.
Referenced by decode_frame(), and tiff_end().
| 
 | static | 
Definition at line 144 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
Definition at line 159 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
Definition at line 173 of file tiff.c.
Referenced by search_keyval().
| 
 | static | 
Definition at line 178 of file tiff.c.
Referenced by get_geokey_val().
| 
 | static | 
Definition at line 187 of file tiff.c.
Referenced by tiff_decode_tag().
| 
 | static | 
Definition at line 246 of file tiff.c.
Referenced by tiff_decode_tag().
| 
 | static | 
| 
 | static | 
Map stored raw sensor values into linear reference values (see: DNG Specification - Chapter 5)
Definition at line 286 of file tiff.c.
Referenced by dng_blit(), and dng_process_color8().
| 
 | static | 
Definition at line 305 of file tiff.c.
Referenced by dng_blit().
| 
 | static | 
Definition at line 313 of file tiff.c.
Referenced by dng_decode_jpeg(), and tiff_unpack_strip().
| 
 | static | 
Definition at line 386 of file tiff.c.
Referenced by tiff_unpack_fax(), and tiff_unpack_strip().
| 
 | static | 
Definition at line 442 of file tiff.c.
Referenced by tiff_unpack_fax(), and tiff_unpack_strip().
| 
 | static | 
Definition at line 455 of file tiff.c.
Referenced by tiff_unpack_strip().
| 
 | static | 
Definition at line 469 of file tiff.c.
Referenced by tiff_unpack_strip().
| 
 | static | 
Definition at line 629 of file tiff.c.
Referenced by tiff_unpack_strip().
| 
 | static | 
Definition at line 650 of file tiff.c.
Referenced by dng_decode_tiles(), and tiff_unpack_strip().
| 
 | static | 
Definition at line 740 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
Definition at line 969 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
Definition at line 1042 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
Definition at line 1231 of file tiff.c.
Referenced by tiff_decode_tag().
| 
 | static | 
| 
 | static | 
Definition at line 1899 of file tiff.c.
Referenced by decode_frame().
| 
 | static | 
| 
 | static | 
| 
 | static | 
Definition at line 129 of file tiff.c.
Referenced by tiff_decode_tag().
| 
 | static | 
Definition at line 1893 of file tiff.c.
Referenced by camera_xyz_coeff(), create_filtergraph(), ff_sws_get_adaptation(), and get_rgb2rgb_matrix().
| 
 | static | 
| 
 | static | 
| const FFCodec ff_tiff_decoder | 
 1.8.17
 1.8.17