FFmpeg
|
TIFF image decoder. More...
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "faxcompr.h"
#include "internal.h"
#include "lzw.h"
#include "mathops.h"
#include "tiff.h"
#include "tiff_data.h"
Go to the source code of this file.
Data Structures | |
struct | TiffContext |
Macros | |
#define | RET_GEOKEY(TYPE, array, element) |
#define | RET_GEOKEY_VAL(TYPE, array) |
#define | ADD_METADATA(count, name, sep) |
Functions | |
static unsigned | tget_short (GetByteContext *gb, int le) |
static unsigned | tget_long (GetByteContext *gb, int le) |
static double | tget_double (GetByteContext *gb, int le) |
static unsigned | tget (GetByteContext *gb, int type, int le) |
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 char * | get_geokey_val (int key, int val) |
static char * | doubles2str (double *dp, int count, const char *sep) |
static char * | shorts2str (int16_t *sp, int count, const char *sep) |
static int | add_doubles_metadata (int count, const char *name, const char *sep, TiffContext *s, AVFrame *frame) |
static int | add_shorts_metadata (int count, const char *name, const char *sep, TiffContext *s, AVFrame *frame) |
static int | add_string_metadata (int count, const char *name, TiffContext *s, AVFrame *frame) |
static int | add_metadata (int count, int type, const char *name, const char *sep, TiffContext *s, AVFrame *frame) |
static void av_always_inline | horizontal_fill (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 int | tiff_unpack_fax (TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int width, int lines) |
static int | tiff_unpack_strip (TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int lines) |
static int | init_image (TiffContext *s, AVFrame *frame) |
static int | tiff_decode_tag (TiffContext *s, AVFrame *frame) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | tiff_init (AVCodecContext *avctx) |
static av_cold int | tiff_end (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_tiff_decoder |
TIFF image decoder.
Definition in file tiff.c.
#define RET_GEOKEY | ( | TYPE, | |
array, | |||
element | |||
) |
Definition at line 115 of file tiff.c.
Referenced by get_geokey_name(), and get_geokey_type().
#define RET_GEOKEY_VAL | ( | TYPE, | |
array | |||
) |
Referenced by get_geokey_val().
Referenced by tiff_decode_tag().
|
static |
Definition at line 73 of file tiff.c.
Referenced by add_shorts_metadata(), decode_frame(), tget(), and tiff_decode_tag().
|
static |
Definition at line 79 of file tiff.c.
Referenced by decode_frame(), tget(), and tiff_decode_tag().
|
static |
Definition at line 85 of file tiff.c.
Referenced by add_doubles_metadata(), and tiff_decode_tag().
|
static |
Definition at line 91 of file tiff.c.
Referenced by decode_frame(), and tiff_decode_tag().
|
static |
Definition at line 105 of file tiff.c.
Referenced by decode_frame(), and tiff_end().
|
static |
Definition at line 120 of file tiff.c.
Referenced by decode_frame().
|
static |
Definition at line 130 of file tiff.c.
Referenced by decode_frame().
Definition at line 140 of file tiff.c.
Referenced by search_keyval().
|
static |
Definition at line 145 of file tiff.c.
Referenced by get_geokey_val().
|
static |
Definition at line 154 of file tiff.c.
Referenced by tiff_decode_tag().
|
static |
Definition at line 222 of file tiff.c.
Referenced by add_doubles_metadata(), and tiff_decode_tag().
|
static |
Definition at line 248 of file tiff.c.
Referenced by add_shorts_metadata().
|
static |
Definition at line 274 of file tiff.c.
Referenced by add_metadata().
|
static |
Definition at line 301 of file tiff.c.
Referenced by add_metadata().
|
static |
Definition at line 327 of file tiff.c.
Referenced by add_metadata().
|
static |
|
static |
Definition at line 357 of file tiff.c.
Referenced by tiff_unpack_fax(), and tiff_unpack_strip().
|
static |
Definition at line 397 of file tiff.c.
Referenced by tiff_unpack_strip().
|
static |
Definition at line 474 of file tiff.c.
Referenced by tiff_unpack_strip().
|
static |
Definition at line 510 of file tiff.c.
Referenced by decode_frame().
|
static |
Definition at line 625 of file tiff.c.
Referenced by decode_frame().
|
static |
Definition at line 697 of file tiff.c.
Referenced by decode_frame().
|
static |
|
static |
|
static |
AVCodec ff_tiff_decoder |