History

aaccoder_twoloop.h: simplify and comment ff_pns_bits()

Rostislav Pehlivanov committed 11 years ago

Commit d25c0331 parent 5f760da1 file · +3 −7Browse files

Unified · Split

libavcodec/aaccoder_twoloop.h+3−7
@@ -56,14 +56,10 @@ · 55 unmodified lines
56 56
57#define sclip(x) av_clip(x,60,218)57#define sclip(x) av_clip(x,60,218)
58 58
59 59/* Reflects the cost to change codebooks */
60static av_always_inline int ff_pns_bits(const SingleChannelElement *sce, int w, int g)60static inline int ff_pns_bits(SingleChannelElement *sce, int w, int g)
61{61{
62 if (!g || !sce->zeroes[w*16+g-1] || !sce->can_pns[w*16+g-1]) {62 return (!g || !sce->zeroes[w*16+g-1] || !sce->can_pns[w*16+g-1]) ? 9 : 5;
63 return 9;
64 } else {
65 return 5;
66 }
67}63}
68 64
69/**65/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t