comparison dv.c @ 6266:6e160e75eb9c libavcodec

some const
author michael
date Fri, 01 Feb 2008 15:08:55 +0000
parents dfdff1ca78a7
children c32be43b52b2
comparison
equal deleted inserted replaced
6265:abe584ca935c 6266:6e160e75eb9c
361 } 361 }
362 } 362 }
363 363
364 /* mb_x and mb_y are in units of 8 pixels */ 364 /* mb_x and mb_y are in units of 8 pixels */
365 static inline void dv_decode_video_segment(DVVideoContext *s, 365 static inline void dv_decode_video_segment(DVVideoContext *s,
366 uint8_t *buf_ptr1, 366 const uint8_t *buf_ptr1,
367 const uint16_t *mb_pos_ptr) 367 const uint16_t *mb_pos_ptr)
368 { 368 {
369 int quant, dc, dct_mode, class1, j; 369 int quant, dc, dct_mode, class1, j;
370 int mb_index, mb_x, mb_y, v, last_index; 370 int mb_index, mb_x, mb_y, v, last_index;
371 DCTELEM *block, *block1; 371 DCTELEM *block, *block1;
372 int c_offset; 372 int c_offset;
373 uint8_t *y_ptr; 373 uint8_t *y_ptr;
374 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block); 374 void (*idct_put)(uint8_t *dest, int line_size, DCTELEM *block);
375 uint8_t *buf_ptr; 375 const uint8_t *buf_ptr;
376 PutBitContext pb, vs_pb; 376 PutBitContext pb, vs_pb;
377 GetBitContext gb; 377 GetBitContext gb;
378 BlockInfo mb_data[5 * 6], *mb, *mb1; 378 BlockInfo mb_data[5 * 6], *mb, *mb1;
379 DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]); 379 DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]);
380 DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */ 380 DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */