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

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

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved constant to shared header, validate min_picture_size now in resource proxy as well as host co… Created 5 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
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264 249 #if defined USE_VP8_TESTDATA_INSTEAD_OF_H264
250 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8_ANY; 250 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_VP8_ANY;
251 #else 251 #else
252 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN; 252 const PP_VideoProfile kBitstreamProfile = PP_VIDEOPROFILE_H264MAIN;
253 #endif 253 #endif
254 254
255 assert(!decoder_->is_null()); 255 assert(!decoder_->is_null());
256 decoder_->Initialize(graphics_3d, 256 decoder_->Initialize(graphics_3d,
257 kBitstreamProfile, 257 kBitstreamProfile,
258 PP_HARDWAREACCELERATION_WITHFALLBACK, 258 PP_HARDWAREACCELERATION_WITHFALLBACK,
259 0,
259 callback_factory_.NewCallback(&Decoder::InitializeDone)); 260 callback_factory_.NewCallback(&Decoder::InitializeDone));
260 } 261 }
261 262
262 Decoder::~Decoder() { 263 Decoder::~Decoder() {
263 delete decoder_; 264 delete decoder_;
264 } 265 }
265 266
266 void Decoder::InitializeDone(int32_t result) { 267 void Decoder::InitializeDone(int32_t result) {
267 assert(decoder_); 268 assert(decoder_);
268 assert(result == PP_OK); 269 assert(result == PP_OK);
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 }; 729 };
729 730
730 } // anonymous namespace 731 } // anonymous namespace
731 732
732 namespace pp { 733 namespace pp {
733 // Factory function for your specialization of the Module object. 734 // Factory function for your specialization of the Module object.
734 Module* CreateModule() { 735 Module* CreateModule() {
735 return new MyModule(); 736 return new MyModule();
736 } 737 }
737 } // namespace pp 738 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/video_decoder.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698