aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/targaenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-26 21:35:48 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-28 22:42:40 +0000
commit19da86f3ff433913938807e49fc6caa0f9f927b2 (patch)
tree19255883193b41ca3bcf26f9fee8782151a07c12 /libavcodec/targaenc.c
parente999f2339ab0200039ee7123b75d79a52aaac5d1 (diff)
downloadffmpeg-19da86f3ff433913938807e49fc6caa0f9f927b2.tar.gz
targaenc: remove unused TargaContext
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/targaenc.c')
-rw-r--r--libavcodec/targaenc.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index b2c679df80..da7450301d 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -29,10 +29,6 @@
#include "rle.h"
#include "targa.h"
-typedef struct TargaContext {
- AVFrame picture;
-} TargaContext;
-
/**
* RLE compress the image, with maximum size of out_size
* @param outbuf Output buffer
@@ -174,24 +170,10 @@ static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
return 0;
}
-static av_cold int targa_encode_init(AVCodecContext *avctx)
-{
- TargaContext *s = avctx->priv_data;
-
- avcodec_get_frame_defaults(&s->picture);
- s->picture.key_frame= 1;
- s->picture.pict_type = AV_PICTURE_TYPE_I;
- avctx->coded_frame= &s->picture;
-
- return 0;
-}
-
AVCodec ff_targa_encoder = {
.name = "targa",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_TARGA,
- .priv_data_size = sizeof(TargaContext),
- .init = targa_encode_init,
.encode2 = targa_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
AV_PIX_FMT_BGR24, AV_PIX_FMT_BGRA, AV_PIX_FMT_RGB555LE, AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8,