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

Side by Side Diff: ppapi/examples/video_decode/video_decode.cc

Issue 336833003: Pepper: Add VP9 support to PPB_VideoDecoder API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « ppapi/c/pp_codecs.h ('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 // 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 <stdio.h> 5 #include <stdio.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include <iostream> 8 #include <iostream>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 int id, 221 int id,
222 const pp::Graphics3D& graphics_3d) 222 const pp::Graphics3D& graphics_3d)
223 : instance_(instance), 223 : instance_(instance),
224 id_(id), 224 id_(id),
225 decoder_(new pp::VideoDecoder(instance)), 225 decoder_(new pp::VideoDecoder(instance)),
226 callback_factory_(this), 226 callback_factory_(this),
227 encoded_data_next_pos_to_decode_(0), 227 encoded_data_next_pos_to_decode_(0),
228 next_picture_id_(0), 228 next_picture_id_(0),
229 flushing_(false), 229 flushing_(false),
230 resetting_(false) { 230 resetting_(false) {
231 // TODO(bbudge) Remove this for final patch.
bbudge 2014/06/16 22:47:59 It turns out the following lines can't be put into
232 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264 231 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264
233 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8MAIN; 232 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8MAIN;
234 #else 233 #else
235 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN; 234 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN;
236 #endif 235 #endif
237 236
238 assert(!decoder_->is_null()); 237 assert(!decoder_->is_null());
239 decoder_->Initialize(graphics_3d, 238 decoder_->Initialize(graphics_3d,
240 kBitstreamProfile, 239 kBitstreamProfile,
241 PP_TRUE /* allow_software_fallback */, 240 PP_TRUE /* allow_software_fallback */,
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 }; 672 };
674 673
675 } // anonymous namespace 674 } // anonymous namespace
676 675
677 namespace pp { 676 namespace pp {
678 // Factory function for your specialization of the Module object. 677 // Factory function for your specialization of the Module object.
679 Module* CreateModule() { 678 Module* CreateModule() {
680 return new MyModule(); 679 return new MyModule();
681 } 680 }
682 } // namespace pp 681 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/c/pp_codecs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698