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

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

Issue 7193001: Move rtc_video_decoder* from media/filter/ to content/renderer/media/. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FILTERS_RTC_VIDEO_DECODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_RTC_VIDEO_DECODER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "media/base/filters.h" 13 #include "media/base/filters.h"
14 #include "media/base/video_frame.h" 14 #include "media/base/video_frame.h"
15 #include "media/filters/decoder_base.h" 15 #include "media/filters/decoder_base.h"
16 16
17 // TODO(ronghuawu) ExternalRenderer should be defined in WebRtc 17 // TODO(ronghuawu) ExternalRenderer should be defined in WebRtc
18 class ExternalRenderer { 18 class ExternalRenderer {
19 public: 19 public:
20 virtual int FrameSizeChange(unsigned int width, 20 virtual int FrameSizeChange(unsigned int width,
21 unsigned int height, 21 unsigned int height,
22 unsigned int number_of_streams) = 0; 22 unsigned int number_of_streams) = 0;
23 virtual int DeliverFrame(unsigned char* buffer, int buffer_size) = 0; 23 virtual int DeliverFrame(unsigned char* buffer, int buffer_size) = 0;
24 24
25 protected: 25 protected:
26 virtual ~ExternalRenderer() {} 26 virtual ~ExternalRenderer() {}
27 }; 27 };
28 28
29 namespace media { 29 namespace media {
scherkus (not reviewing) 2011/06/17 00:31:46 you're no longer inside media namespace
Ronghua 2011/06/24 21:08:51 Done.
30 30
31 class RTCVideoDecoder : public VideoDecoder, 31 class RTCVideoDecoder : public VideoDecoder,
32 public ExternalRenderer { 32 public ExternalRenderer {
33 public: 33 public:
34 RTCVideoDecoder(MessageLoop* message_loop, const std::string& url); 34 RTCVideoDecoder(MessageLoop* message_loop, const std::string& url);
35 virtual ~RTCVideoDecoder(); 35 virtual ~RTCVideoDecoder();
36 36
37 // Filter implementation. 37 // Filter implementation.
38 virtual void Play(FilterCallback* callback); 38 virtual void Play(FilterCallback* callback);
39 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb); 39 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 MediaFormat media_format_; 83 MediaFormat media_format_;
84 std::deque<scoped_refptr<VideoFrame> > frame_queue_available_; 84 std::deque<scoped_refptr<VideoFrame> > frame_queue_available_;
85 // Used for accessing frame queue from another thread. 85 // Used for accessing frame queue from another thread.
86 base::Lock lock_; 86 base::Lock lock_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); 88 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder);
89 }; 89 };
90 90
91 } // namespace media 91 } // namespace media
92 92
93 #endif // MEDIA_FILTERS_RTC_VIDEO_DECODER_H_ 93 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698