aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-01 16:20:27 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-02-01 16:20:27 +0000
commitb034f72b17ab9266d1c006dec1d60abeceefb5c6 (patch)
treef55c4b4c30c7bb80910d4d726ba932c1ac62e365 /libavcodec
parent7e5cdb5b1bcdc7ac71a426850de7ed40df420d39 (diff)
downloadffmpeg-b034f72b17ab9266d1c006dec1d60abeceefb5c6.tar.gz
Add some const keywords in rtjpeg decoder
Originally committed as revision 11792 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rtjpeg.c8
-rw-r--r--libavcodec/rtjpeg.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/rtjpeg.c b/libavcodec/rtjpeg.c
index dbc6cfd88e..48fb35c953 100644
--- a/libavcodec/rtjpeg.c
+++ b/libavcodec/rtjpeg.c
@@ -43,8 +43,8 @@
* aligned this could be done faster in a different way, e.g. as it is done
* in MPlayer libmpcodecs/native/RTjpegN.c
*/
-static inline int get_block(GetBitContext *gb, DCTELEM *block, uint8_t *scan,
- uint32_t *quant) {
+static inline int get_block(GetBitContext *gb, DCTELEM *block, const uint8_t *scan,
+ const uint32_t *quant) {
int coeff, i, n;
int8_t ac;
uint8_t dc = get_bits(gb, 8);
@@ -97,7 +97,7 @@ static inline int get_block(GetBitContext *gb, DCTELEM *block, uint8_t *scan,
* \return number of bytes consumed from the input buffer
*/
int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
- uint8_t *buf, int buf_size) {
+ const uint8_t *buf, int buf_size) {
DECLARE_ALIGNED_16(DCTELEM, block[64]);
GetBitContext gb;
int w = c->w / 16, h = c->h / 16;
@@ -147,7 +147,7 @@ int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
*/
void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
int width, int height,
- uint32_t *lquant, uint32_t *cquant) {
+ const uint32_t *lquant, const uint32_t *cquant) {
int i;
c->dsp = dsp;
for (i = 0; i < 64; i++) {
diff --git a/libavcodec/rtjpeg.h b/libavcodec/rtjpeg.h
index f707a76661..0c23eced58 100644
--- a/libavcodec/rtjpeg.h
+++ b/libavcodec/rtjpeg.h
@@ -35,8 +35,8 @@ typedef struct {
void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
int width, int height,
- uint32_t *lquant, uint32_t *cquant);
+ const uint32_t *lquant, const uint32_t *cquant);
int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
- uint8_t *buf, int buf_size);
+ const uint8_t *buf, int buf_size);
#endif /* FFMPEG_RTJPEG_H */