Go to the source code of this file.
|
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 char * | get_geokey_val (int key, int 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 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 | 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 | init_image (TiffContext *s, ThreadFrame *frame) |
|
static void | set_sar (TiffContext *s, unsigned tag, unsigned num, unsigned den) |
|
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) |
|
TIFF image decoder
- Author
- Konstantin Shishkov
Definition in file tiff.c.
◆ RET_GEOKEY
Value: if (
key >= TIFF_##
TYPE##_KEY_ID_OFFSET &&\
return ff_tiff_##
array##_name_type_map[
key - TIFF_##
TYPE##_KEY_ID_OFFSET].element;
Definition at line 117 of file tiff.c.
◆ RET_GEOKEY_VAL
Value: if (
val >= TIFF_##
TYPE##_OFFSET &&\
◆ ADD_METADATA
Value:
av_log(
s->avctx,
AV_LOG_ERROR,
"Error allocating temporary buffer\n");\
}
◆ OFFSET
◆ tiff_set_type()
◆ free_geotags()
◆ get_geokey_name()
static const char* get_geokey_name |
( |
int |
key | ) |
|
|
static |
◆ get_geokey_type()
static int get_geokey_type |
( |
int |
key | ) |
|
|
static |
◆ cmp_id_key()
static int cmp_id_key |
( |
const void * |
id, |
|
|
const void * |
k |
|
) |
| |
|
static |
◆ search_keyval()
◆ get_geokey_val()
static char* get_geokey_val |
( |
int |
key, |
|
|
int |
val |
|
) |
| |
|
static |
◆ doubles2str()
static char* doubles2str |
( |
double * |
dp, |
|
|
int |
count, |
|
|
const char * |
sep |
|
) |
| |
|
static |
◆ add_metadata()
◆ horizontal_fill()
◆ deinvert_buffer()
◆ unpack_gray()
◆ unpack_yuv()
◆ tiff_unpack_fax()
◆ tiff_unpack_strip()
◆ init_image()
◆ set_sar()
static void set_sar |
( |
TiffContext * |
s, |
|
|
unsigned |
tag, |
|
|
unsigned |
num, |
|
|
unsigned |
den |
|
) |
| |
|
static |
◆ tiff_decode_tag()
◆ decode_frame()
whether we should process this IFD's SubIFD
whether we should process this multi-page IFD's next page
Definition at line 1403 of file tiff.c.
◆ tiff_init()
◆ tiff_end()
◆ tiff_options
Initial value:
Definition at line 1729 of file tiff.c.
◆ tiff_decoder_class
Initial value:= {
.class_name = "TIFF decoder",
}
Definition at line 1736 of file tiff.c.
◆ ff_tiff_decoder
Initial value:
Definition at line 1743 of file tiff.c.
static av_cold int init(AVCodecContext *avctx)
#define AV_OPT_FLAG_VIDEO_PARAM
static av_cold int end(AVCodecContext *avctx)
static av_cold int tiff_end(AVCodecContext *avctx)
static const AVOption tiff_options[]
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
static av_cold int tiff_init(AVCodecContext *avctx)
#define LIBAVUTIL_VERSION_INT
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
const char * av_default_item_name(void *ptr)
Return the context name.
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
the pkt_dts and pkt_pts fields in AVFrame will work as usual Restrictions on codec whose streams don t reset across will not work because their bitstreams cannot be decoded in parallel *The contents of buffers must not be read before as well as code calling up to before the decode process starts Call have add an init_thread_copy() which re-allocates them for other threads. Add AV_CODEC_CAP_FRAME_THREADS to the codec capabilities. There will be very little speed gain at this point but it should work. If there are inter-frame dependencies
const char const char void * val
static const AVClass tiff_decoder_class
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
static int array[MAX_W *MAX_W]
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
#define FF_ARRAY_ELEMS(a)
char * av_strdup(const char *s)
Duplicate a string.
static int add_metadata(int count, int type, const char *name, const char *sep, TiffContext *s, AVFrame *frame)