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

Side by Side Diff: content/renderer/media/capture_video_decoder.h

Issue 9718013: Merge FilterStatusCB into PipelineStatusCB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep ResetAndRunCB in filters.h. Created 8 years, 9 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 #ifndef CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "media/base/demuxer_stream.h" 10 #include "media/base/demuxer_stream.h"
(...skipping 16 matching lines...) Expand all
27 CaptureVideoDecoder( 27 CaptureVideoDecoder(
28 base::MessageLoopProxy* message_loop_proxy, 28 base::MessageLoopProxy* message_loop_proxy,
29 media::VideoCaptureSessionId video_stream_id, 29 media::VideoCaptureSessionId video_stream_id,
30 VideoCaptureImplManager* vc_manager, 30 VideoCaptureImplManager* vc_manager,
31 const media::VideoCapture::VideoCaptureCapability& capability); 31 const media::VideoCapture::VideoCaptureCapability& capability);
32 virtual ~CaptureVideoDecoder(); 32 virtual ~CaptureVideoDecoder();
33 33
34 // Filter implementation. 34 // Filter implementation.
35 virtual void Play(const base::Closure& callback) OVERRIDE; 35 virtual void Play(const base::Closure& callback) OVERRIDE;
36 virtual void Seek(base::TimeDelta time, 36 virtual void Seek(base::TimeDelta time,
37 const media::FilterStatusCB& cb) OVERRIDE; 37 const media::PipelineStatusCB& cb) OVERRIDE;
38 virtual void Pause(const base::Closure& callback) OVERRIDE; 38 virtual void Pause(const base::Closure& callback) OVERRIDE;
39 virtual void Flush(const base::Closure& callback) OVERRIDE; 39 virtual void Flush(const base::Closure& callback) OVERRIDE;
40 virtual void Stop(const base::Closure& callback) OVERRIDE; 40 virtual void Stop(const base::Closure& callback) OVERRIDE;
41 41
42 // Decoder implementation. 42 // Decoder implementation.
43 virtual void Initialize( 43 virtual void Initialize(
44 media::DemuxerStream* demuxer_stream, 44 media::DemuxerStream* demuxer_stream,
45 const media::PipelineStatusCB& status_cb, 45 const media::PipelineStatusCB& status_cb,
46 const media::StatisticsCB& statistics_cb) OVERRIDE; 46 const media::StatisticsCB& statistics_cb) OVERRIDE;
47 virtual void Read(const ReadCB& callback) OVERRIDE; 47 virtual void Read(const ReadCB& callback) OVERRIDE;
(...skipping 17 matching lines...) Expand all
65 65
66 enum DecoderState { 66 enum DecoderState {
67 kUnInitialized, 67 kUnInitialized,
68 kNormal, 68 kNormal,
69 kStopped, 69 kStopped,
70 kPaused 70 kPaused
71 }; 71 };
72 72
73 void PlayOnDecoderThread(const base::Closure& callback); 73 void PlayOnDecoderThread(const base::Closure& callback);
74 void SeekOnDecoderThread(base::TimeDelta time, 74 void SeekOnDecoderThread(base::TimeDelta time,
75 const media::FilterStatusCB& cb); 75 const media::PipelineStatusCB& cb);
76 void PauseOnDecoderThread(const base::Closure& callback); 76 void PauseOnDecoderThread(const base::Closure& callback);
77 void FlushOnDecoderThread(const base::Closure& callback); 77 void FlushOnDecoderThread(const base::Closure& callback);
78 void StopOnDecoderThread(const base::Closure& callback); 78 void StopOnDecoderThread(const base::Closure& callback);
79 79
80 void InitializeOnDecoderThread( 80 void InitializeOnDecoderThread(
81 media::DemuxerStream* demuxer_stream, 81 media::DemuxerStream* demuxer_stream,
82 const media::PipelineStatusCB& status_cb, 82 const media::PipelineStatusCB& status_cb,
83 const media::StatisticsCB& statistics_cb); 83 const media::StatisticsCB& statistics_cb);
84 void ReadOnDecoderThread(const ReadCB& callback); 84 void ReadOnDecoderThread(const ReadCB& callback);
85 85
(...skipping 20 matching lines...) Expand all
106 106
107 media::VideoCaptureSessionId video_stream_id_; 107 media::VideoCaptureSessionId video_stream_id_;
108 media::VideoCapture* capture_engine_; 108 media::VideoCapture* capture_engine_;
109 base::Time last_frame_timestamp_; 109 base::Time last_frame_timestamp_;
110 base::Time start_time_; 110 base::Time start_time_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder); 112 DISALLOW_COPY_AND_ASSIGN(CaptureVideoDecoder);
113 }; 113 };
114 114
115 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_ 115 #endif // CONTENT_RENDERER_MEDIA_CAPTURE_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698