Libav
Data Structures | Functions | Variables
tiff.c File Reference

TIFF image decoder. More...

#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "faxcompr.h"
#include "internal.h"
#include "lzw.h"
#include "mathops.h"
#include "tiff.h"

Go to the source code of this file.

Data Structures

struct  TiffContext
 

Functions

static unsigned tget_short (const uint8_t **p, int le)
 
static unsigned tget_long (const uint8_t **p, int le)
 
static unsigned tget (const uint8_t **p, int type, int le)
 
static int tiff_unpack_fax (TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, 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, const uint8_t *start, const uint8_t *buf, const uint8_t *end_buf)
 
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
 

Detailed Description

TIFF image decoder.

Author
Konstantin Shishkov

Definition in file tiff.c.

Function Documentation

static unsigned tget_short ( const uint8_t **  p,
int  le 
)
static

Definition at line 65 of file tiff.c.

Referenced by decode_frame(), tget(), and tiff_decode_tag().

static unsigned tget_long ( const uint8_t **  p,
int  le 
)
static

Definition at line 72 of file tiff.c.

Referenced by decode_frame(), tget(), and tiff_decode_tag().

static unsigned tget ( const uint8_t **  p,
int  type,
int  le 
)
static

Definition at line 79 of file tiff.c.

Referenced by decode_frame(), and tiff_decode_tag().

static int tiff_unpack_fax ( TiffContext s,
uint8_t dst,
int  stride,
const uint8_t src,
int  size,
int  lines 
)
static

Definition at line 146 of file tiff.c.

Referenced by tiff_unpack_strip().

static int tiff_unpack_strip ( TiffContext s,
uint8_t dst,
int  stride,
const uint8_t src,
int  size,
int  lines 
)
static

Definition at line 176 of file tiff.c.

Referenced by decode_frame().

static int init_image ( TiffContext s,
AVFrame frame 
)
static

Definition at line 268 of file tiff.c.

Referenced by decode_frame().

static int tiff_decode_tag ( TiffContext s,
const uint8_t start,
const uint8_t buf,
const uint8_t end_buf 
)
static

Definition at line 328 of file tiff.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 570 of file tiff.c.

static av_cold int tiff_init ( AVCodecContext avctx)
static

Definition at line 691 of file tiff.c.

static av_cold int tiff_end ( AVCodecContext avctx)
static

Definition at line 704 of file tiff.c.

Variable Documentation

AVCodec ff_tiff_decoder
Initial value:
= {
.name = "tiff",
.long_name = NULL_IF_CONFIG_SMALL("TIFF image"),
.priv_data_size = sizeof(TiffContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: tiff.c:570
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:269
static av_cold int tiff_init(AVCodecContext *avctx)
Definition: tiff.c:691
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:711
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:142
static av_cold int tiff_end(AVCodecContext *avctx)
Definition: tiff.c:704
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:489
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:498

Definition at line 712 of file tiff.c.