FFmpeg
|
TIFF image encoder. More...
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "config.h"
#include "bytestream.h"
#include "internal.h"
#include "tiff.h"
#include "rle.h"
#include "lzw.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | TiffEncoderContext |
Macros | |
#define | TIFF_MAX_ENTRY 32 |
#define | OFFSET(x) offsetof(TiffEncoderContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct TiffEncoderContext | TiffEncoderContext |
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 void | 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 void | 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, uint8_t *dst, int lnum) |
static av_cold int | encode_init (AVCodecContext *avctx) |
static int | encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
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 |
Detailed Description
TIFF image encoder.
Definition in file tiffenc.c.
Macro Definition Documentation
#define OFFSET | ( | x | ) | offsetof(TiffEncoderContext, x) |
#define TIFF_MAX_ENTRY 32 |
Definition at line 45 of file tiffenc.c.
Referenced by add_entry().
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedef Documentation
typedef struct TiffEncoderContext TiffEncoderContext |
Function Documentation
|
static |
Add entry to directory in tiff header.
- Parameters
-
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 128 of file tiffenc.c.
Referenced by add_entry1(), and encode_frame().
|
static |
Definition at line 151 of file tiffenc.c.
Referenced by encode_frame().
|
inlinestatic |
Check free space in buffer.
- Parameters
-
s Tiff context need Needed bytes
- Returns
- 0 - ok, 1 - no free space
Definition at line 89 of file tiffenc.c.
Referenced by add_entry(), encode_frame(), and encode_strip().
|
static |
|
static |
|
static |
|
static |
Encode one strip in tiff file.
- Parameters
-
s Tiff context src input buffer dst output buffer n size of input buffer compr compression method
- Returns
- number of output bytes. If an output error is encountered, -1 is returned
Definition at line 168 of file tiffenc.c.
Referenced by encode_frame().
|
static |
Definition at line 199 of file tiffenc.c.
Referenced by encode_frame().
|
static |
Put n values to buffer.
- Parameters
-
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 108 of file tiffenc.c.
Referenced by add_entry().
Variable Documentation
AVCodec ff_tiff_encoder |
|
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().
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11