Mercurial > libavcodec.hg
comparison h263.c @ 10799:00a3206c3e42 libavcodec
Add some const qualifiers.
author | michael |
---|---|
date | Thu, 07 Jan 2010 15:46:45 +0000 |
parents | 72de50743adf |
children | 4605bd2fdb7f |
comparison
equal
deleted
inserted
replaced
10798:72de50743adf | 10799:00a3206c3e42 |
---|---|
375 * @param[in,out] block MB coefficients, these will be restored | 375 * @param[in,out] block MB coefficients, these will be restored |
376 * @param[in] dir ac prediction direction for each 8x8 block | 376 * @param[in] dir ac prediction direction for each 8x8 block |
377 * @param[out] st scantable for each 8x8 block | 377 * @param[out] st scantable for each 8x8 block |
378 * @param[in] zigzag_last_index index refering to the last non zero coefficient in zigzag order | 378 * @param[in] zigzag_last_index index refering to the last non zero coefficient in zigzag order |
379 */ | 379 */ |
380 static inline void restore_ac_coeffs(MpegEncContext * s, DCTELEM block[6][64], int dir[6], uint8_t *st[6], int zigzag_last_index[6]) | 380 static inline void restore_ac_coeffs(MpegEncContext * s, DCTELEM block[6][64], const int dir[6], uint8_t *st[6], const int zigzag_last_index[6]) |
381 { | 381 { |
382 int i, n; | 382 int i, n; |
383 memcpy(s->block_last_index, zigzag_last_index, sizeof(int)*6); | 383 memcpy(s->block_last_index, zigzag_last_index, sizeof(int)*6); |
384 | 384 |
385 for(n=0; n<6; n++){ | 385 for(n=0; n<6; n++){ |
406 * @param[in,out] block MB coefficients, these will be updated if 1 is returned | 406 * @param[in,out] block MB coefficients, these will be updated if 1 is returned |
407 * @param[in] dir ac prediction direction for each 8x8 block | 407 * @param[in] dir ac prediction direction for each 8x8 block |
408 * @param[out] st scantable for each 8x8 block | 408 * @param[out] st scantable for each 8x8 block |
409 * @param[out] zigzag_last_index index refering to the last non zero coefficient in zigzag order | 409 * @param[out] zigzag_last_index index refering to the last non zero coefficient in zigzag order |
410 */ | 410 */ |
411 static inline int decide_ac_pred(MpegEncContext * s, DCTELEM block[6][64], int dir[6], uint8_t *st[6], int zigzag_last_index[6]) | 411 static inline int decide_ac_pred(MpegEncContext * s, DCTELEM block[6][64], const int dir[6], uint8_t *st[6], int zigzag_last_index[6]) |
412 { | 412 { |
413 int score= 0; | 413 int score= 0; |
414 int i, n; | 414 int i, n; |
415 int8_t * const qscale_table= s->current_picture.qscale_table; | 415 int8_t * const qscale_table= s->current_picture.qscale_table; |
416 | 416 |