libavcodec/tiff.c File Reference

TIFF image decoder. More...

#include "avcodec.h"
#include "lzw.h"
#include "tiff.h"
#include "faxcompr.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"

Go to the source code of this file.

Data Structures

struct  TiffContext

Functions

static int tget_short (const uint8_t **p, int le)
static int tget_long (const uint8_t **p, int le)
static int tget (const uint8_t **p, int type, int le)
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 void av_always_inline split_nibbles (uint8_t *dst, const uint8_t *src, int width)
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)
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 *data_size, 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 int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 539 of file tiff.c.

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]

Definition at line 105 of file tiff.c.

Referenced by tiff_unpack_strip().

static int init_image ( TiffContext s  )  [static]

Definition at line 266 of file tiff.c.

Referenced by decode_frame().

static void av_always_inline split_nibbles ( uint8_t *  dst,
const uint8_t *  src,
int  width 
) [static]

Definition at line 132 of file tiff.c.

Referenced by tiff_unpack_strip().

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

Definition at line 73 of file tiff.c.

Referenced by decode_frame(), and tiff_decode_tag().

static int tget_long ( const uint8_t **  p,
int  le 
) [static]

Definition at line 67 of file tiff.c.

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

static int tget_short ( const uint8_t **  p,
int  le 
) [static]

Definition at line 61 of file tiff.c.

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

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

Definition at line 322 of file tiff.c.

Referenced by decode_frame().

static av_cold int tiff_end ( AVCodecContext avctx  )  [static]

Definition at line 679 of file tiff.c.

static av_cold int tiff_init ( AVCodecContext avctx  )  [static]

Definition at line 665 of file tiff.c.

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

Definition at line 142 of file tiff.c.

Referenced by decode_frame().


Variable Documentation

Initial value:

 {
    .name           = "tiff",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_TIFF,
    .priv_data_size = sizeof(TiffContext),
    .init           = tiff_init,
    .close          = tiff_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("TIFF image"),
}

Definition at line 689 of file tiff.c.


Generated on Fri Oct 26 02:43:49 2012 for FFmpeg by  doxygen 1.5.8