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 #include "media/base/video_frame.h" | 5 #include "media/base/video_frame.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 break; | 447 break; |
448 case PIXEL_FORMAT_YV24: | 448 case PIXEL_FORMAT_YV24: |
449 case PIXEL_FORMAT_YUV420P9: | 449 case PIXEL_FORMAT_YUV420P9: |
450 case PIXEL_FORMAT_YUV420P10: | 450 case PIXEL_FORMAT_YUV420P10: |
451 case PIXEL_FORMAT_YUV420P12: | 451 case PIXEL_FORMAT_YUV420P12: |
452 EXPECT_EQ(72u, allocation_size) << VideoPixelFormatToString(format); | 452 EXPECT_EQ(72u, allocation_size) << VideoPixelFormatToString(format); |
453 break; | 453 break; |
454 case PIXEL_FORMAT_UYVY: | 454 case PIXEL_FORMAT_UYVY: |
455 case PIXEL_FORMAT_YUY2: | 455 case PIXEL_FORMAT_YUY2: |
456 case PIXEL_FORMAT_YV16: | 456 case PIXEL_FORMAT_YV16: |
| 457 case PIXEL_FORMAT_I422: |
457 EXPECT_EQ(48u, allocation_size) << VideoPixelFormatToString(format); | 458 EXPECT_EQ(48u, allocation_size) << VideoPixelFormatToString(format); |
458 break; | 459 break; |
459 case PIXEL_FORMAT_YV12: | 460 case PIXEL_FORMAT_YV12: |
460 case PIXEL_FORMAT_I420: | 461 case PIXEL_FORMAT_I420: |
461 case PIXEL_FORMAT_NV12: | 462 case PIXEL_FORMAT_NV12: |
462 case PIXEL_FORMAT_NV21: | 463 case PIXEL_FORMAT_NV21: |
463 case PIXEL_FORMAT_MT21: | 464 case PIXEL_FORMAT_MT21: |
464 EXPECT_EQ(36u, allocation_size) << VideoPixelFormatToString(format); | 465 EXPECT_EQ(36u, allocation_size) << VideoPixelFormatToString(format); |
465 break; | 466 break; |
466 case PIXEL_FORMAT_ARGB: | 467 case PIXEL_FORMAT_ARGB: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 562 |
562 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) { | 563 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) { |
563 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i); | 564 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i); |
564 int value = -1; | 565 int value = -1; |
565 EXPECT_TRUE(result.GetInteger(key, &value)); | 566 EXPECT_TRUE(result.GetInteger(key, &value)); |
566 EXPECT_EQ(i, value); | 567 EXPECT_EQ(i, value); |
567 } | 568 } |
568 } | 569 } |
569 | 570 |
570 } // namespace media | 571 } // namespace media |
OLD | NEW |