comparison h264.c @ 4283:d6f83e2f8804 libavcodec

rename always_inline to av_always_inline and move to common.h
author mru
date Fri, 08 Dec 2006 00:35:08 +0000
parents 113f3b395bac
children 4aa24216f71a
comparison
equal deleted inserted replaced
4282:9d64f6eacc7b 4283:d6f83e2f8804
398 static void svq3_luma_dc_dequant_idct_c(DCTELEM *block, int qp); 398 static void svq3_luma_dc_dequant_idct_c(DCTELEM *block, int qp);
399 static void svq3_add_idct_c(uint8_t *dst, DCTELEM *block, int stride, int qp, int dc); 399 static void svq3_add_idct_c(uint8_t *dst, DCTELEM *block, int stride, int qp, int dc);
400 static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize); 400 static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize);
401 static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize); 401 static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize);
402 402
403 static always_inline uint32_t pack16to32(int a, int b){ 403 static av_always_inline uint32_t pack16to32(int a, int b){
404 #ifdef WORDS_BIGENDIAN 404 #ifdef WORDS_BIGENDIAN
405 return (b&0xFFFF) + (a<<16); 405 return (b&0xFFFF) + (a<<16);
406 #else 406 #else
407 return (a&0xFFFF) + (b<<16); 407 return (a&0xFFFF) + (b<<16);
408 #endif 408 #endif
421 * fill a rectangle. 421 * fill a rectangle.
422 * @param h height of the rectangle, should be a constant 422 * @param h height of the rectangle, should be a constant
423 * @param w width of the rectangle, should be a constant 423 * @param w width of the rectangle, should be a constant
424 * @param size the size of val (1 or 4), should be a constant 424 * @param size the size of val (1 or 4), should be a constant
425 */ 425 */
426 static always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){ 426 static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){
427 uint8_t *p= (uint8_t*)vp; 427 uint8_t *p= (uint8_t*)vp;
428 assert(size==1 || size==4); 428 assert(size==1 || size==4);
429 assert(w<=4); 429 assert(w<=4);
430 430
431 w *= size; 431 w *= size;