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

Side by Side Diff: webkit/media/webvideoframe_impl.h

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 2 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
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 WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ 5 #ifndef WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_
6 #define WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ 6 #define WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "media/base/video_frame.h" 9 #include "media/base/video_frame.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h"
11 11
12 namespace webkit_media { 12 namespace webkit_media {
13 13
14 class WebVideoFrameImpl : public WebKit::WebVideoFrame { 14 class WebVideoFrameImpl : public WebKit::WebVideoFrame {
15 public: 15 public:
16 // This converts a WebKit::WebVideoFrame to a media::VideoFrame. 16 // This converts a WebKit::WebVideoFrame to a media::VideoFrame.
17 static media::VideoFrame* toVideoFrame( 17 static media::VideoFrame* toVideoFrame(
18 WebKit::WebVideoFrame* web_video_frame); 18 WebKit::WebVideoFrame* web_video_frame);
19 19
20 WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame); 20 WebVideoFrameImpl(scoped_refptr<media::VideoFrame> video_frame);
21 virtual ~WebVideoFrameImpl(); 21 virtual ~WebVideoFrameImpl();
22 virtual WebVideoFrame::Format format() const; 22 virtual WebVideoFrame::Format format() const;
23 virtual unsigned width() const;
24 virtual unsigned height() const;
25 virtual unsigned planes() const; 23 virtual unsigned planes() const;
26 virtual int stride(unsigned plane) const;
27 virtual const void* data(unsigned plane) const; 24 virtual const void* data(unsigned plane) const;
28 virtual unsigned textureId() const; 25 virtual unsigned textureId() const;
29 virtual unsigned textureTarget() const; 26 virtual unsigned textureTarget() const;
27 virtual unsigned visibleX() const;
28 virtual unsigned visibleY() const;
29 virtual unsigned visibleWidth() const;
30 virtual unsigned visibleHeight() const;
31 virtual unsigned textureWidth() const;
32 virtual unsigned textureHeight() const;
30 33
31 private: 34 private:
32 scoped_refptr<media::VideoFrame> video_frame_; 35 scoped_refptr<media::VideoFrame> video_frame_;
33 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); 36 DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl);
34 }; 37 };
35 38
36 } // namespace webkit_media 39 } // namespace webkit_media
37 40
38 #endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ 41 #endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698