#include <string.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
#include "rle.h"
#include "targa.h"
Go to the source code of this file.
|
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) |
|
◆ OFFSET
◆ VE
◆ targa_encode_rle()
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 51 of file targaenc.c.
Referenced by targa_encode_frame().
◆ targa_encode_normal()
static int targa_encode_normal |
( |
uint8_t * |
outbuf, |
|
|
const AVFrame * |
pic, |
|
|
int |
bpp, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
◆ targa_encode_frame()
◆ targa_encode_init()
◆ options
◆ targa_class
Initial value:= {
.class_name = "targa",
}
Definition at line 198 of file targaenc.c.
◆ ff_targa_encoder
Initial value:= {
.name = "targa",
},
}
Definition at line 205 of file targaenc.c.