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 320 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 562 of file tiff.c.

static av_cold int tiff_init ( AVCodecContext avctx)
static

Definition at line 683 of file tiff.c.

static av_cold int tiff_end ( AVCodecContext avctx)
static

Definition at line 696 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,
}

Definition at line 704 of file tiff.c.