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

Side by Side Diff: native_client_sdk/src/examples/api/video_decode/video_decode.cc

Issue 418193003: Using PROFILE_ANY for vp8 and vp9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « media/formats/webm/webm_video_client.cc ('k') | ppapi/api/dev/pp_video_dev.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <iostream> 10 #include <iostream>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 encoded_data_next_pos_to_decode_(0), 239 encoded_data_next_pos_to_decode_(0),
240 next_picture_id_(0), 240 next_picture_id_(0),
241 flushing_(false), 241 flushing_(false),
242 resetting_(false), 242 resetting_(false),
243 total_latency_(0.0), 243 total_latency_(0.0),
244 num_pictures_(0) { 244 num_pictures_(0) {
245 core_if_ = static_cast<const PPB_Core*>( 245 core_if_ = static_cast<const PPB_Core*>(
246 pp::Module::Get()->GetBrowserInterface(PPB_CORE_INTERFACE)); 246 pp::Module::Get()->GetBrowserInterface(PPB_CORE_INTERFACE));
247 247
248 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264 248 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264
249 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8MAIN; 249 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8_ANY;
250 #else 250 #else
251 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN; 251 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN;
252 #endif 252 #endif
253 253
254 assert(!decoder_->is_null()); 254 assert(!decoder_->is_null());
255 decoder_->Initialize(graphics_3d, 255 decoder_->Initialize(graphics_3d,
256 kBitstreamProfile, 256 kBitstreamProfile,
257 PP_TRUE /* allow_software_fallback */, 257 PP_TRUE /* allow_software_fallback */,
258 callback_factory_.NewCallback(&Decoder::InitializeDone)); 258 callback_factory_.NewCallback(&Decoder::InitializeDone));
259 } 259 }
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 }; 726 };
727 727
728 } // anonymous namespace 728 } // anonymous namespace
729 729
730 namespace pp { 730 namespace pp {
731 // Factory function for your specialization of the Module object. 731 // Factory function for your specialization of the Module object.
732 Module* CreateModule() { 732 Module* CreateModule() {
733 return new MyModule(); 733 return new MyModule();
734 } 734 }
735 } // namespace pp 735 } // namespace pp
OLDNEW
« no previous file with comments | « media/formats/webm/webm_video_client.cc ('k') | ppapi/api/dev/pp_video_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698