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

Side by Side Diff: media/base/video_decoder.cc

Issue 297553002: Add callback in VideoDecoder and AudioDecoder to return decoded frames. (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "media/base/video_decoder.h" 5 #include "media/base/video_decoder.h"
6 6
7 #include "media/base/video_frame.h" 7 #include "media/base/video_frame.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 VideoDecoder::VideoDecoder() {} 11 VideoDecoder::VideoDecoder() {}
12 12
13 VideoDecoder::~VideoDecoder() {} 13 VideoDecoder::~VideoDecoder() {}
14 14
15 scoped_refptr<VideoFrame> VideoDecoder::GetDecodeOutput() {
16 return NULL;
17 }
18
19 bool VideoDecoder::NeedsBitstreamConversion() const { 15 bool VideoDecoder::NeedsBitstreamConversion() const {
20 return false; 16 return false;
21 } 17 }
22 18
23 bool VideoDecoder::CanReadWithoutStalling() const { 19 bool VideoDecoder::CanReadWithoutStalling() const {
24 return true; 20 return true;
25 } 21 }
26 22
27 int VideoDecoder::GetMaxDecodeRequests() const { 23 int VideoDecoder::GetMaxDecodeRequests() const {
28 return 1; 24 return 1;
29 } 25 }
30 26
31 } // namespace media 27 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698