| OLD | NEW |
| 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 MEDIA_BASE_VIDEO_FRAME_H_ | 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_ |
| 6 #define MEDIA_BASE_VIDEO_FRAME_H_ | 6 #define MEDIA_BASE_VIDEO_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/md5.h" | 9 #include "base/md5.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 UNKNOWN = 0, // Unknown format value. | 42 UNKNOWN = 0, // Unknown format value. |
| 43 YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples | 43 YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples |
| 44 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples | 44 YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples |
| 45 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. | 45 I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples. |
| 46 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples. | 46 YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples. |
| 47 #if defined(VIDEO_HOLE) | 47 #if defined(VIDEO_HOLE) |
| 48 HOLE = 5, // Hole frame. | 48 HOLE = 5, // Hole frame. |
| 49 #endif // defined(VIDEO_HOLE) | 49 #endif // defined(VIDEO_HOLE) |
| 50 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic. | 50 NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic. |
| 51 YV12J = 7, // JPEG color range version of YV12 | 51 YV12J = 7, // JPEG color range version of YV12 |
| 52 HISTOGRAM_MAX, // Must always be greatest. | 52 FORMAT_MAX = YV12J, // Must always be equal to last entry. |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // Returns the name of a Format as a string. | 55 // Returns the name of a Format as a string. |
| 56 static std::string FormatToString(Format format); | 56 static std::string FormatToString(Format format); |
| 57 | 57 |
| 58 // This class calls the TextureNoLongerNeededCallback when this class is | 58 // This class calls the TextureNoLongerNeededCallback when this class is |
| 59 // destroyed. Users can query the current sync point associated with this | 59 // destroyed. Users can query the current sync point associated with this |
| 60 // mailbox with sync_point(), and should call Resync() with a new sync point | 60 // mailbox with sync_point(), and should call Resync() with a new sync point |
| 61 // to ensure the mailbox remains valid for the issued commands. | 61 // to ensure the mailbox remains valid for the issued commands. |
| 62 // valid for the issued commands. | 62 // valid for the issued commands. |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 base::TimeDelta timestamp_; | 299 base::TimeDelta timestamp_; |
| 300 | 300 |
| 301 const bool end_of_stream_; | 301 const bool end_of_stream_; |
| 302 | 302 |
| 303 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); | 303 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 } // namespace media | 306 } // namespace media |
| 307 | 307 |
| 308 #endif // MEDIA_BASE_VIDEO_FRAME_H_ | 308 #endif // MEDIA_BASE_VIDEO_FRAME_H_ |
| OLD | NEW |