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

Unified Diff: source/libvpx/warnings.c

Issue 148913004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 11 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/warnings.h ('k') | source/libvpx/webmdec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/warnings.c
===================================================================
--- source/libvpx/warnings.c (revision 247498)
+++ source/libvpx/warnings.c (working copy)
@@ -71,6 +71,13 @@
return c == 'y';
}
+static void check_quantizer(int min_q, int max_q,
+ struct WarningList *warning_list) {
+ const int lossless = min_q == 0 && max_q == 0;
+ if (!lossless && (min_q == max_q || abs(max_q - min_q) < 8))
+ add_warning(quantizer_warning_string, warning_list);
+}
+
static void check_lag_in_frames_realtime_deadline(
int lag_in_frames,
int deadline,
@@ -79,13 +86,6 @@
add_warning(lag_in_frames_with_realtime, warning_list);
}
-static void check_quantizer(int min_q, int max_q,
- struct WarningList *warning_list) {
- const int lossless = min_q == 0 && max_q == 0;
- if (!lossless && (min_q == max_q || abs(max_q - min_q) < 8))
- add_warning(quantizer_warning_string, warning_list);
-}
-
void check_encoder_config(int disable_prompt,
const struct VpxEncoderConfig *global_config,
const struct vpx_codec_enc_cfg *stream_config) {
@@ -99,7 +99,6 @@
check_lag_in_frames_realtime_deadline(stream_config->g_lag_in_frames,
global_config->deadline,
&warning_list);
-
/* Count and print warnings. */
for (warning = warning_list.warning_node;
warning != NULL;
« no previous file with comments | « source/libvpx/warnings.h ('k') | source/libvpx/webmdec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698