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

Side by Side Diff: media/video/picture.h

Issue 7775004: Create media.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/video/ffmpeg_video_decode_engine.h ('k') | media/video/video_decode_accelerator.h » ('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) 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_VIDEO_PICTURE_H_ 5 #ifndef MEDIA_VIDEO_PICTURE_H_
6 #define MEDIA_VIDEO_PICTURE_H_ 6 #define MEDIA_VIDEO_PICTURE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
9 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
10 11
11 namespace media { 12 namespace media {
12 13
13 // A picture buffer that is composed of a GLES2 texture. 14 // A picture buffer that is composed of a GLES2 texture.
14 // This is the media-namespace equivalent of PP_PictureBuffer_Dev. 15 // This is the media-namespace equivalent of PP_PictureBuffer_Dev.
15 class PictureBuffer { 16 class MEDIA_EXPORT PictureBuffer {
16 public: 17 public:
17 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id); 18 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id);
18 19
19 // Returns the client-specified id of the buffer. 20 // Returns the client-specified id of the buffer.
20 int32 id() const { 21 int32 id() const {
21 return id_; 22 return id_;
22 } 23 }
23 24
24 // Returns the size of the buffer. 25 // Returns the size of the buffer.
25 gfx::Size size() const { 26 gfx::Size size() const {
26 return size_; 27 return size_;
27 } 28 }
28 29
29 // Returns the id of the texture. 30 // Returns the id of the texture.
30 // NOTE: The texture id in the renderer process corresponds to a different 31 // NOTE: The texture id in the renderer process corresponds to a different
31 // texture id in the GPU process. 32 // texture id in the GPU process.
32 uint32 texture_id() const { 33 uint32 texture_id() const {
33 return texture_id_; 34 return texture_id_;
34 } 35 }
35 36
36 private: 37 private:
37 int32 id_; 38 int32 id_;
38 gfx::Size size_; 39 gfx::Size size_;
39 uint32 texture_id_; 40 uint32 texture_id_;
40 }; 41 };
41 42
42 // A decoded picture frame. 43 // A decoded picture frame.
43 // This is the media-namespace equivalent of PP_Picture_Dev. 44 // This is the media-namespace equivalent of PP_Picture_Dev.
44 class Picture { 45 class MEDIA_EXPORT Picture {
45 public: 46 public:
46 Picture(int32 picture_buffer_id, int32 bitstream_buffer_id); 47 Picture(int32 picture_buffer_id, int32 bitstream_buffer_id);
47 48
48 // Returns the id of the picture buffer where this picture is contained. 49 // Returns the id of the picture buffer where this picture is contained.
49 int32 picture_buffer_id() const { 50 int32 picture_buffer_id() const {
50 return picture_buffer_id_; 51 return picture_buffer_id_;
51 } 52 }
52 53
53 // Returns the id of the bitstream buffer from which this frame was decoded. 54 // Returns the id of the bitstream buffer from which this frame was decoded.
54 int32 bitstream_buffer_id() const { 55 int32 bitstream_buffer_id() const {
55 return bitstream_buffer_id_; 56 return bitstream_buffer_id_;
56 } 57 }
57 58
58 void set_bitstream_buffer_id(int32 bitstream_buffer_id) { 59 void set_bitstream_buffer_id(int32 bitstream_buffer_id) {
59 bitstream_buffer_id_ = bitstream_buffer_id; 60 bitstream_buffer_id_ = bitstream_buffer_id;
60 } 61 }
61 62
62 private: 63 private:
63 int32 picture_buffer_id_; 64 int32 picture_buffer_id_;
64 int32 bitstream_buffer_id_; 65 int32 bitstream_buffer_id_;
65 }; 66 };
66 67
67 } // namespace media 68 } // namespace media
68 69
69 #endif // MEDIA_VIDEO_PICTURE_H_ 70 #endif // MEDIA_VIDEO_PICTURE_H_
OLDNEW
« no previous file with comments | « media/video/ffmpeg_video_decode_engine.h ('k') | media/video/video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698