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

Unified Diff: source/libvpx/test/webm_video_source.h

Issue 898943004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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/test/vp9_frame_parallel_test.cc ('k') | source/libvpx/third_party/x86inc/x86inc.asm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/test/webm_video_source.h
diff --git a/source/libvpx/test/webm_video_source.h b/source/libvpx/test/webm_video_source.h
index 11d3d234d36cd74b435abc4bf9bab0427589b09c..650bc52dce0915e7f8273b3074a542ad4caced75 100644
--- a/source/libvpx/test/webm_video_source.h
+++ b/source/libvpx/test/webm_video_source.h
@@ -69,6 +69,18 @@ class WebMVideoSource : public CompressedVideoSource {
}
}
+ void SeekToNextKeyFrame() {
+ ASSERT_TRUE(vpx_ctx_->file != NULL);
+ do {
+ const int status = webm_read_frame(webm_ctx_, &buf_, &buf_sz_, &buf_sz_);
+ ASSERT_GE(status, 0) << "webm_read_frame failed";
+ ++frame_;
+ if (status == 1) {
+ end_of_file_ = true;
+ }
+ } while (!webm_ctx_->is_key_frame && !end_of_file_);
+ }
+
virtual const uint8_t *cxdata() const {
return end_of_file_ ? NULL : buf_;
}
« no previous file with comments | « source/libvpx/test/vp9_frame_parallel_test.cc ('k') | source/libvpx/third_party/x86inc/x86inc.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698