|
FFmpeg
|
TIFF image encoder. More...
#include "config.h"#include "libavutil/imgutils.h"#include "libavutil/log.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "avcodec.h"#include "bytestream.h"#include "internal.h"#include "lzw.h"#include "put_bits.h"#include "rle.h"#include "tiff.h"Go to the source code of this file.
Data Structures | |
| struct | TiffEncoderContext |
Macros | |
| #define | TIFF_MAX_ENTRY 32 |
| #define | ADD_ENTRY(s, tag, type, count, ptr_val) |
| #define | ADD_ENTRY1(s, tag, type, val) |
| #define | OFFSET(x) offsetof(TiffEncoderContext, x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| static int | check_size (TiffEncoderContext *s, uint64_t need) |
| Check free space in buffer. More... | |
| static void | tnput (uint8_t **p, int n, const uint8_t *val, enum TiffTypes type, int flip) |
| Put n values to buffer. More... | |
| static int | add_entry (TiffEncoderContext *s, enum TiffTags tag, enum TiffTypes type, int count, const void *ptr_val) |
| Add entry to directory in tiff header. More... | |
| static int | add_entry1 (TiffEncoderContext *s, enum TiffTags tag, enum TiffTypes type, int val) |
| static int | encode_strip (TiffEncoderContext *s, const int8_t *src, uint8_t *dst, int n, int compr) |
| Encode one strip in tiff file. More... | |
| static void | pack_yuv (TiffEncoderContext *s, const AVFrame *p, uint8_t *dst, int lnum) |
| static int | encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
| static av_cold int | encode_init (AVCodecContext *avctx) |
| static av_cold int | encode_close (AVCodecContext *avctx) |
Variables | |
| static const uint8_t | type_sizes2 [14] |
| sizes of various TIFF field types (string size = 1) More... | |
| static const AVOption | options [] |
| static const AVClass | tiffenc_class |
| AVCodec | ff_tiff_encoder |
TIFF image encoder.
Definition in file tiffenc.c.
| #define TIFF_MAX_ENTRY 32 |
Definition at line 45 of file tiffenc.c.
Referenced by add_entry().
Definition at line 231 of file tiffenc.c.
Referenced by encode_frame().
Definition at line 238 of file tiffenc.c.
Referenced by encode_frame().
| #define OFFSET | ( | x | ) | offsetof(TiffEncoderContext, x) |
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
|
inlinestatic |
Check free space in buffer.
| s | Tiff context |
| need | Needed bytes |
Definition at line 87 of file tiffenc.c.
Referenced by add_entry(), encode_frame(), and encode_strip().
|
static |
Put n values to buffer.
| p | pointer to pointer to output buffer |
| n | number of values |
| val | pointer to values |
| type | type of values |
| flip | = 0 - normal copy, >0 - flip |
Definition at line 106 of file tiffenc.c.
Referenced by add_entry().
|
static |
Add entry to directory in tiff header.
| s | Tiff context |
| tag | tag that identifies the entry |
| type | entry type |
| count | the number of values |
| ptr_val | pointer to values |
Definition at line 126 of file tiffenc.c.
Referenced by add_entry1().
|
static |
|
static |
Encode one strip in tiff file.
| s | Tiff context |
| src | input buffer |
| dst | output buffer |
| n | size of input buffer |
| compr | compression method |
Definition at line 170 of file tiffenc.c.
Referenced by encode_frame().
|
static |
Definition at line 203 of file tiffenc.c.
Referenced by encode_frame().
|
static |
|
static |
|
static |
|
static |
sizes of various TIFF field types (string size = 1)
Definition at line 48 of file tiffenc.c.
Referenced by add_entry(), and tnput().
|
static |
|
static |
| AVCodec ff_tiff_encoder |
1.8.6