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

Side by Side Diff: media/cast/video_receiver/video_decoder.h

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_ 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_ 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 // other value, calls to DecodeFrame() will not succeed. 36 // other value, calls to DecodeFrame() will not succeed.
37 CastInitializationStatus InitializationResult() const; 37 CastInitializationStatus InitializationResult() const;
38 38
39 // Decode the payload in |encoded_frame| asynchronously. |callback| will be 39 // Decode the payload in |encoded_frame| asynchronously. |callback| will be
40 // invoked on the CastEnvironment::MAIN thread with the result. 40 // invoked on the CastEnvironment::MAIN thread with the result.
41 // 41 //
42 // In the normal case, |encoded_frame->frame_id| will be 42 // In the normal case, |encoded_frame->frame_id| will be
43 // monotonically-increasing by 1 for each successive call to this method. 43 // monotonically-increasing by 1 for each successive call to this method.
44 // When it is not, the decoder will assume one or more frames have been 44 // When it is not, the decoder will assume one or more frames have been
45 // dropped (e.g., due to packet loss), and will perform recovery actions. 45 // dropped (e.g., due to packet loss), and will perform recovery actions.
46 void DecodeFrame(scoped_ptr<transport::EncodedVideoFrame> encoded_frame, 46 void DecodeFrame(scoped_ptr<transport::EncodedFrame> encoded_frame,
47 const DecodeFrameCallback& callback); 47 const DecodeFrameCallback& callback);
48 48
49 private: 49 private:
50 class FakeImpl; 50 class FakeImpl;
51 class ImplBase; 51 class ImplBase;
52 class Vp8Impl; 52 class Vp8Impl;
53 53
54 const scoped_refptr<CastEnvironment> cast_environment_; 54 const scoped_refptr<CastEnvironment> cast_environment_;
55 scoped_refptr<ImplBase> impl_; 55 scoped_refptr<ImplBase> impl_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); 57 DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
58 }; 58 };
59 59
60 } // namespace cast 60 } // namespace cast
61 } // namespace media 61 } // namespace media
62 62
63 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_ 63 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/cast/video_receiver/codecs/vp8/vp8_decoder.h ('k') | media/cast/video_receiver/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698