Mercurial > libavcodec.hg
comparison mjpegdec.h @ 10487:3e404d2520a7 libavcodec
Avoid huge array for rgb ljpeg on the stack.
Code tested with an ljpeg i had laying around.
author | michael |
---|---|
date | Mon, 02 Nov 2009 14:12:25 +0000 |
parents | 710e226783f0 |
children | 34a65026fa06 |
comparison
equal
deleted
inserted
replaced
10486:b2524430a456 | 10487:3e404d2520a7 |
---|---|
100 | 100 |
101 int mjpb_skiptosod; | 101 int mjpb_skiptosod; |
102 | 102 |
103 int cur_scan; /* current scan, used by JPEG-LS */ | 103 int cur_scan; /* current scan, used by JPEG-LS */ |
104 int flipped; /* true if picture is flipped */ | 104 int flipped; /* true if picture is flipped */ |
105 | |
106 uint16_t (*ljpeg_buffer)[4]; | |
107 unsigned int ljpeg_buffer_size; | |
105 } MJpegDecodeContext; | 108 } MJpegDecodeContext; |
106 | 109 |
107 int ff_mjpeg_decode_init(AVCodecContext *avctx); | 110 int ff_mjpeg_decode_init(AVCodecContext *avctx); |
108 int ff_mjpeg_decode_end(AVCodecContext *avctx); | 111 int ff_mjpeg_decode_end(AVCodecContext *avctx); |
109 int ff_mjpeg_decode_frame(AVCodecContext *avctx, | 112 int ff_mjpeg_decode_frame(AVCodecContext *avctx, |