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

Side by Side Diff: source/libvpx/vpxenc.c

Issue 390713002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/vp9dx.mk ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 frames_in, streams->frames_out, (int64_t)streams->nbytes); 1679 frames_in, streams->frames_out, (int64_t)streams->nbytes);
1680 else 1680 else
1681 fprintf(stderr, "frame %4d ", frames_in); 1681 fprintf(stderr, "frame %4d ", frames_in);
1682 1682
1683 fprintf(stderr, "%7"PRId64" %s %.2f %s ", 1683 fprintf(stderr, "%7"PRId64" %s %.2f %s ",
1684 cx_time > 9999999 ? cx_time / 1000 : cx_time, 1684 cx_time > 9999999 ? cx_time / 1000 : cx_time,
1685 cx_time > 9999999 ? "ms" : "us", 1685 cx_time > 9999999 ? "ms" : "us",
1686 fps >= 1.0 ? fps : fps * 60, 1686 fps >= 1.0 ? fps : fps * 60,
1687 fps >= 1.0 ? "fps" : "fpm"); 1687 fps >= 1.0 ? "fps" : "fpm");
1688 print_time("ETA", estimated_time_left); 1688 print_time("ETA", estimated_time_left);
1689 fprintf(stderr, "\033[K");
1690 } 1689 }
1691 1690
1692 } else 1691 } else
1693 frame_avail = 0; 1692 frame_avail = 0;
1694 1693
1695 if (frames_in > global.skip_frames) { 1694 if (frames_in > global.skip_frames) {
1696 vpx_usec_timer_start(&timer); 1695 vpx_usec_timer_start(&timer);
1697 FOREACH_STREAM(encode_frame(stream, &global, 1696 FOREACH_STREAM(encode_frame(stream, &global,
1698 frame_avail ? &raw : NULL, 1697 frame_avail ? &raw : NULL,
1699 frames_in)); 1698 frames_in));
(...skipping 30 matching lines...) Expand all
1730 ? rate 1729 ? rate
1731 : (average_rate * 7 + rate) / 8; 1730 : (average_rate * 7 + rate) / 8;
1732 estimated_time_left = average_rate ? remaining / average_rate : -1; 1731 estimated_time_left = average_rate ? remaining / average_rate : -1;
1733 } 1732 }
1734 1733
1735 if (got_data && global.test_decode != TEST_DECODE_OFF) 1734 if (got_data && global.test_decode != TEST_DECODE_OFF)
1736 FOREACH_STREAM(test_decode(stream, global.test_decode, global.codec)); 1735 FOREACH_STREAM(test_decode(stream, global.test_decode, global.codec));
1737 } 1736 }
1738 1737
1739 fflush(stdout); 1738 fflush(stdout);
1739 if (!global.quiet)
1740 fprintf(stderr, "\033[K");
1740 } 1741 }
1741 1742
1742 if (stream_cnt > 1) 1743 if (stream_cnt > 1)
1743 fprintf(stderr, "\n"); 1744 fprintf(stderr, "\n");
1744 1745
1745 if (!global.quiet) 1746 if (!global.quiet)
1746 FOREACH_STREAM(fprintf( 1747 FOREACH_STREAM(fprintf(
1747 stderr, 1748 stderr,
1748 "\rPass %d/%d frame %4d/%-4d %7"PRId64"B %7lub/f %7"PRId6 4"b/s" 1749 "\rPass %d/%d frame %4d/%-4d %7"PRId64"B %7lub/f %7"PRId6 4"b/s"
1749 " %7"PRId64" %s (%.2f fps)\033[K\n", pass + 1, 1750 " %7"PRId64" %s (%.2f fps)\033[K\n", pass + 1,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 } 1806 }
1806 fclose(f); 1807 fclose(f);
1807 }); 1808 });
1808 #endif 1809 #endif
1809 1810
1810 vpx_img_free(&raw); 1811 vpx_img_free(&raw);
1811 free(argv); 1812 free(argv);
1812 free(streams); 1813 free(streams);
1813 return res ? EXIT_FAILURE : EXIT_SUCCESS; 1814 return res ? EXIT_FAILURE : EXIT_SUCCESS;
1814 } 1815 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/vp9dx.mk ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698