comparison cabac.h @ 7775:490ee89408c5 libavcodec

Silence a couple of 'defined but not used' warnings by adding an av_unused attribute to the relevant function declarations.
author diego
date Tue, 02 Sep 2008 23:14:11 +0000
parents c4a4495715dd
children dc8d9cc3369e
comparison
equal deleted inserted replaced
7774:a570a1e80400 7775:490ee89408c5
580 #endif /* BRANCHLESS_CABAC_DECODER */ 580 #endif /* BRANCHLESS_CABAC_DECODER */
581 #endif /* defined(ARCH_X86) && defined(HAVE_7REGS) && defined(HAVE_EBX_AVAILABLE) && !defined(BROKEN_RELOCATIONS) */ 581 #endif /* defined(ARCH_X86) && defined(HAVE_7REGS) && defined(HAVE_EBX_AVAILABLE) && !defined(BROKEN_RELOCATIONS) */
582 return bit; 582 return bit;
583 } 583 }
584 584
585 static int av_noinline get_cabac_noinline(CABACContext *c, uint8_t * const state){ 585 static int av_noinline av_unused get_cabac_noinline(CABACContext *c, uint8_t * const state){
586 return get_cabac_inline(c,state); 586 return get_cabac_inline(c,state);
587 } 587 }
588 588
589 static int get_cabac(CABACContext *c, uint8_t * const state){ 589 static int av_unused get_cabac(CABACContext *c, uint8_t * const state){
590 return get_cabac_inline(c,state); 590 return get_cabac_inline(c,state);
591 } 591 }
592 592
593 static int get_cabac_bypass(CABACContext *c){ 593 static int av_unused get_cabac_bypass(CABACContext *c){
594 #if 0 //not faster 594 #if 0 //not faster
595 int bit; 595 int bit;
596 asm volatile( 596 asm volatile(
597 "movl "RANGE "(%1), %%ebx \n\t" 597 "movl "RANGE "(%1), %%ebx \n\t"
598 "movl "LOW "(%1), %%eax \n\t" 598 "movl "LOW "(%1), %%eax \n\t"
687 687
688 /** 688 /**
689 * 689 *
690 * @return the number of bytes read or 0 if no end 690 * @return the number of bytes read or 0 if no end
691 */ 691 */
692 static int get_cabac_terminate(CABACContext *c){ 692 static int av_unused get_cabac_terminate(CABACContext *c){
693 c->range -= 2; 693 c->range -= 2;
694 if(c->low < c->range<<(CABAC_BITS+1)){ 694 if(c->low < c->range<<(CABAC_BITS+1)){
695 renorm_cabac_decoder_once(c); 695 renorm_cabac_decoder_once(c);
696 return 0; 696 return 0;
697 }else{ 697 }else{