| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // This is the media-namespace equivalent of PP_Picture_Dev. | 67 // This is the media-namespace equivalent of PP_Picture_Dev. |
| 68 class MEDIA_EXPORT Picture { | 68 class MEDIA_EXPORT Picture { |
| 69 public: | 69 public: |
| 70 // Defaults |size_changed_| to false. Size changed is currently only used | 70 // Defaults |size_changed_| to false. Size changed is currently only used |
| 71 // by AVDA and is set via set_size_changd(). | 71 // by AVDA and is set via set_size_changd(). |
| 72 Picture(int32_t picture_buffer_id, | 72 Picture(int32_t picture_buffer_id, |
| 73 int32_t bitstream_buffer_id, | 73 int32_t bitstream_buffer_id, |
| 74 const gfx::Rect& visible_rect, | 74 const gfx::Rect& visible_rect, |
| 75 const gfx::ColorSpace& color_space, | 75 const gfx::ColorSpace& color_space, |
| 76 bool allow_overlay); | 76 bool allow_overlay); |
| 77 Picture(const Picture&); |
| 78 ~Picture(); |
| 77 | 79 |
| 78 // Returns the id of the picture buffer where this picture is contained. | 80 // Returns the id of the picture buffer where this picture is contained. |
| 79 int32_t picture_buffer_id() const { return picture_buffer_id_; } | 81 int32_t picture_buffer_id() const { return picture_buffer_id_; } |
| 80 | 82 |
| 81 // Returns the id of the bitstream buffer from which this frame was decoded. | 83 // Returns the id of the bitstream buffer from which this frame was decoded. |
| 82 int32_t bitstream_buffer_id() const { return bitstream_buffer_id_; } | 84 int32_t bitstream_buffer_id() const { return bitstream_buffer_id_; } |
| 83 | 85 |
| 84 void set_bitstream_buffer_id(int32_t bitstream_buffer_id) { | 86 void set_bitstream_buffer_id(int32_t bitstream_buffer_id) { |
| 85 bitstream_buffer_id_ = bitstream_buffer_id; | 87 bitstream_buffer_id_ = bitstream_buffer_id; |
| 86 } | 88 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 gfx::ColorSpace color_space_; | 124 gfx::ColorSpace color_space_; |
| 123 bool allow_overlay_; | 125 bool allow_overlay_; |
| 124 bool size_changed_; | 126 bool size_changed_; |
| 125 bool surface_texture_; | 127 bool surface_texture_; |
| 126 bool wants_promotion_hint_; | 128 bool wants_promotion_hint_; |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace media | 131 } // namespace media |
| 130 | 132 |
| 131 #endif // MEDIA_VIDEO_PICTURE_H_ | 133 #endif // MEDIA_VIDEO_PICTURE_H_ |
| OLD | NEW |