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 "bytestream.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 (GetByteContext *gb, int le)
 
static unsigned tget_long (GetByteContext *gb, int le)
 
static unsigned tget (GetByteContext *gb, 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)
 
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

◆ tget_short()

static unsigned tget_short ( GetByteContext gb,
int  le 
)
static

Definition at line 66 of file tiff.c.

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

◆ tget_long()

static unsigned tget_long ( GetByteContext gb,
int  le 
)
static

Definition at line 71 of file tiff.c.

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

◆ tget()

static unsigned tget ( GetByteContext gb,
int  type,
int  le 
)
static

Definition at line 76 of file tiff.c.

Referenced by decode_frame(), and tiff_decode_tag().

◆ tiff_unpack_fax()

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

Definition at line 139 of file tiff.c.

Referenced by tiff_unpack_strip().

◆ 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 169 of file tiff.c.

Referenced by decode_frame().

◆ init_image()

static int init_image ( TiffContext s,
AVFrame frame 
)
static

Definition at line 251 of file tiff.c.

Referenced by decode_frame().

◆ tiff_decode_tag()

static int tiff_decode_tag ( TiffContext s)
static

Definition at line 324 of file tiff.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 556 of file tiff.c.

◆ tiff_init()

static av_cold int tiff_init ( AVCodecContext avctx)
static

Definition at line 710 of file tiff.c.

◆ tiff_end()

static av_cold int tiff_end ( AVCodecContext avctx)
static

Definition at line 723 of file tiff.c.

Variable Documentation

◆ ff_tiff_decoder

AVCodec ff_tiff_decoder
Initial value:
= {
.name = "tiff",
.long_name = NULL_IF_CONFIG_SMALL("TIFF image"),
.priv_data_size = sizeof(TiffContext),
.close = tiff_end,
.capabilities = AV_CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: tiff.c:556
static av_cold int tiff_init(AVCodecContext *avctx)
Definition: tiff.c:710
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
static av_cold int tiff_end(AVCodecContext *avctx)
Definition: tiff.c:723
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
Definition: avconv.c:1288
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:582
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:838

Definition at line 731 of file tiff.c.