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

Side by Side Diff: media/tools/player_wtl/wtl_renderer.h

Issue 7461016: Replace VideoDecoder::media_format() with significantly simpler width()/height() methods. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fixes Created 9 years, 5 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
« no previous file with comments | « media/filters/video_renderer_base_unittest.cc ('k') | media/tools/player_wtl/wtl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 // Video renderer for media player. 5 // Video renderer for media player.
6 6
7 #ifndef MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_ 7 #ifndef MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_
8 #define MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_ 8 #define MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_
9 9
10 #include "media/filters/video_renderer_base.h" 10 #include "media/filters/video_renderer_base.h"
11 11
12 class WtlVideoWindow; 12 class WtlVideoWindow;
13 13
14 class WtlVideoRenderer : public media::VideoRendererBase { 14 class WtlVideoRenderer : public media::VideoRendererBase {
15 public: 15 public:
16 explicit WtlVideoRenderer(WtlVideoWindow* window); 16 explicit WtlVideoRenderer(WtlVideoWindow* window);
17 17
18 static bool IsMediaFormatSupported(const media::MediaFormat& media_format);
19
20 protected: 18 protected:
21 // VideoRendererBase implementation. 19 // VideoRendererBase implementation.
22 virtual bool OnInitialize(media::VideoDecoder* decoder); 20 virtual bool OnInitialize(media::VideoDecoder* decoder);
23 virtual void OnStop(media::FilterCallback* callback); 21 virtual void OnStop(media::FilterCallback* callback);
24 virtual void OnFrameAvailable(); 22 virtual void OnFrameAvailable();
25 23
26 private: 24 private:
27 // Only allow to be deleted by reference counting. 25 // Only allow to be deleted by reference counting.
28 friend class scoped_refptr<WtlVideoRenderer>; 26 friend class scoped_refptr<WtlVideoRenderer>;
29 virtual ~WtlVideoRenderer(); 27 virtual ~WtlVideoRenderer();
30 28
31 WtlVideoWindow* window_; 29 WtlVideoWindow* window_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(WtlVideoRenderer); 31 DISALLOW_COPY_AND_ASSIGN(WtlVideoRenderer);
34 }; 32 };
35 33
36 #endif // MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_ 34 #endif // MEDIA_TOOLS_PLAYER_WTL_WTL_RENDERER_H_
OLDNEW
« no previous file with comments | « media/filters/video_renderer_base_unittest.cc ('k') | media/tools/player_wtl/wtl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698