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

Side by Side Diff: media/filters/video_frame_generator.h

Issue 12320078: Delete old RTCVideoDecoder code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make the line no longer than 80 chars Created 7 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
« no previous file with comments | « media/filters/dummy_demuxer.cc ('k') | media/filters/video_frame_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_FILTERS_VIDEO_FRAME_GENERATOR_H_
6 #define MEDIA_FILTERS_VIDEO_FRAME_GENERATOR_H_
7
8 #include "base/time.h"
9 #include "media/base/video_decoder.h"
10 #include "media/base/pipeline_status.h"
11
12 namespace base {
13 class MessageLoopProxy;
14 }
15
16 namespace media {
17
18 class DemuxerStream;
19 class VideoFrame;
20
21 // A filter generates raw frames and passes them to media engine as a video
22 // decoder filter.
23 class MEDIA_EXPORT VideoFrameGenerator : public VideoDecoder {
24 public:
25 VideoFrameGenerator(
26 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy,
27 const gfx::Size& size,
28 const base::TimeDelta& frame_duration);
29
30 // VideoDecoder implementation.
31 virtual void Initialize(
32 const scoped_refptr<DemuxerStream>& stream,
33 const PipelineStatusCB& status_cb,
34 const StatisticsCB& statistics_cb) OVERRIDE;
35 virtual void Read(const ReadCB& read_cb) OVERRIDE;
36 virtual void Reset(const base::Closure& closure) OVERRIDE;
37 virtual void Stop(const base::Closure& closure) OVERRIDE;
38
39 protected:
40 virtual ~VideoFrameGenerator();
41
42 private:
43 void InitializeOnDecoderThread(
44 const scoped_refptr<DemuxerStream>& stream,
45 const PipelineStatusCB& status_cb,
46 const StatisticsCB& statistics_cb);
47 void ReadOnDecoderThread(const ReadCB& read_cb);
48 void ResetOnDecoderThread(const base::Closure& closure);
49 void StopOnDecoderThread(const base::Closure& closure);
50
51 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
52 gfx::Size size_;
53 bool stopped_;
54
55 base::TimeDelta current_time_;
56 base::TimeDelta frame_duration_;
57
58 DISALLOW_COPY_AND_ASSIGN(VideoFrameGenerator);
59 };
60
61 } // namespace media
62
63 #endif // MEDIA_FILTERS_VIDEO_FRAME_GENERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/dummy_demuxer.cc ('k') | media/filters/video_frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698