summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegenc.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-06 14:24:06 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-06 14:31:23 +0100
commit2b215f39391c0f9ddb547d16d568776e9e5da54d (patch)
treede093856d64626144ceb9c8a345ad6e4efd0b8f2 /libavcodec/mjpegenc.h
parent535af2c22211567bb237525f89d058b5b08e33b1 (diff)
downloadffmpeg-2b215f39391c0f9ddb547d16d568776e9e5da54d.tar.gz
mjpeg/ljpegenc: factor ff_mjpeg_init_hvsample() out
This reduces the amount of duplicated code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegenc.h')
-rw-r--r--libavcodec/mjpegenc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegenc.h b/libavcodec/mjpegenc.h
index 21efd486a5..4b19e214d8 100644
--- a/libavcodec/mjpegenc.h
+++ b/libavcodec/mjpegenc.h
@@ -57,6 +57,7 @@ void ff_mjpeg_encode_picture_header(AVCodecContext *avctx, PutBitContext *pb,
void ff_mjpeg_encode_picture_trailer(PutBitContext *pb, int header_bits);
void ff_mjpeg_escape_FF(PutBitContext *pb, int start);
void ff_mjpeg_encode_stuffing(MpegEncContext *s);
+void ff_mjpeg_init_hvsample(AVCodecContext *avctx, int hsample[3], int vsample[3]);
void ff_mjpeg_encode_dc(PutBitContext *pb, int val,
uint8_t *huff_size, uint16_t *huff_code);
void ff_mjpeg_encode_mb(MpegEncContext *s, int16_t block[6][64]);