Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2319)

Unified Diff: source/libvpx/vpx_dsp/prob.h

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vpx_dsp/mips/vpx_convolve8_vert_msa.c ('k') | source/libvpx/vpx_dsp/psnrhvs.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vpx_dsp/prob.h
diff --git a/source/libvpx/vpx_dsp/prob.h b/source/libvpx/vpx_dsp/prob.h
index 729f90a55f9d032c4d2634a7eae5b6d4c6e89388..c3cb103ffb5e8ca77f234eddbe01f3d304631176 100644
--- a/source/libvpx/vpx_dsp/prob.h
+++ b/source/libvpx/vpx_dsp/prob.h
@@ -65,7 +65,7 @@ static INLINE vpx_prob merge_probs(vpx_prob pre_prob,
unsigned int count_sat,
unsigned int max_update_factor) {
const vpx_prob prob = get_binary_prob(ct[0], ct[1]);
- const unsigned int count = MIN(ct[0] + ct[1], count_sat);
+ const unsigned int count = VPXMIN(ct[0] + ct[1], count_sat);
const unsigned int factor = max_update_factor * count / count_sat;
return weighted_prob(pre_prob, prob, factor);
}
@@ -82,7 +82,7 @@ static INLINE vpx_prob mode_mv_merge_probs(vpx_prob pre_prob,
if (den == 0) {
return pre_prob;
} else {
- const unsigned int count = MIN(den, MODE_MV_COUNT_SAT);
+ const unsigned int count = VPXMIN(den, MODE_MV_COUNT_SAT);
const unsigned int factor = count_to_update_factor[count];
const vpx_prob prob =
clip_prob(((int64_t)(ct[0]) * 256 + (den >> 1)) / den);
« no previous file with comments | « source/libvpx/vpx_dsp/mips/vpx_convolve8_vert_msa.c ('k') | source/libvpx/vpx_dsp/psnrhvs.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698