aaccoder_twoloop.h: simplify and comment ff_pns_bits()

This commit is contained in:
Rostislav Pehlivanov 2015-10-12 01:42:43 +01:00
parent 5f760da6b6
commit d25c033ddd
1 changed files with 3 additions and 7 deletions

View File

@ -56,14 +56,10 @@
#define sclip(x) av_clip(x,60,218) #define sclip(x) av_clip(x,60,218)
/* Reflects the cost to change codebooks */
static av_always_inline int ff_pns_bits(const SingleChannelElement *sce, int w, int g) static inline int ff_pns_bits(SingleChannelElement *sce, int w, int g)
{ {
if (!g || !sce->zeroes[w*16+g-1] || !sce->can_pns[w*16+g-1]) { return (!g || !sce->zeroes[w*16+g-1] || !sce->can_pns[w*16+g-1]) ? 9 : 5;
return 9;
} else {
return 5;
}
} }
/** /**