History

aaccoder_twoloop.h: simplify and comment ff_pns_bits()

Rostislav Pehlivanov committed 11 years ago

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

Showing the changes to libavcodec/aaccoder_twoloop.h (1 of 1 file). Show all

Unified · Split

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

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