FFmpeg
|
targaenc.c File Reference
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "rle.h"
#include "targa.h"
Include dependency graph for targaenc.c:
Go to the source code of this file.
Data Structures | |
struct | TargaContext |
Typedefs | |
typedef struct TargaContext | TargaContext |
Functions | |
static int | targa_encode_rle (uint8_t *outbuf, int out_size, const AVFrame *pic, int bpp, int w, int h) |
RLE compress the image, with maximum size of out_size. More... | |
static int | targa_encode_normal (uint8_t *outbuf, const AVFrame *pic, int bpp, int w, int h) |
static int | targa_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet) |
static av_cold int | targa_encode_init (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_targa_encoder |
Typedef Documentation
typedef struct TargaContext TargaContext |
Function Documentation
|
static |
Definition at line 81 of file targaenc.c.
|
static |
Definition at line 177 of file targaenc.c.
|
static |
Definition at line 66 of file targaenc.c.
Referenced by targa_encode_frame().
|
static |
RLE compress the image, with maximum size of out_size.
- Parameters
-
outbuf Output buffer out_size Maximum output size pic Image to compress bpp Bytes per pixel w Image width h Image height
- Returns
- Size of output in bytes, or -1 if larger than out_size
Definition at line 46 of file targaenc.c.
Referenced by targa_encode_frame().
Variable Documentation
AVCodec ff_targa_encoder |
Initial value:
= {
.name = "targa",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_TARGA,
.priv_data_size = sizeof(TargaContext),
.encode2 = targa_encode_frame,
},
.long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"),
}
Definition: pixfmt.h:67
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
Definition: pixfmt.h:117
static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: targaenc.c:81
struct TargaContext TargaContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: libavcodec/avcodec.h:196
static av_cold int targa_encode_init(AVCodecContext *avctx)
Definition: targaenc.c:177
Definition: avutil.h:143
Definition at line 189 of file targaenc.c.
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11