| 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/aligned_memory.h" | 12 #include "base/memory/aligned_memory.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "gpu/command_buffer/common/mailbox_holder.h" | 14 #include "gpu/command_buffer/common/mailbox_holder.h" |
| 15 #include "media/base/limits.h" | 15 #include "media/base/limits.h" |
| 16 #include "media/base/video_util.h" | 16 #include "media/base/video_util.h" |
| 17 #include "ui/gfx/point.h" | 17 #include "ui/gfx/geometry/point.h" |
| 18 | 18 |
| 19 #if !defined(MEDIA_FOR_CAST_IOS) | 19 #if !defined(MEDIA_FOR_CAST_IOS) |
| 20 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace media { | 23 namespace media { |
| 24 | 24 |
| 25 static bool IsPowerOfTwo(size_t x) { | 25 static bool IsPowerOfTwo(size_t x) { |
| 26 return x != 0 && (x & (x - 1)) == 0; | 26 return x != 0 && (x & (x - 1)) == 0; |
| 27 } | 27 } |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { | 771 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { |
| 772 for (int row = 0; row < rows(plane); ++row) { | 772 for (int row = 0; row < rows(plane); ++row) { |
| 773 base::MD5Update(context, base::StringPiece( | 773 base::MD5Update(context, base::StringPiece( |
| 774 reinterpret_cast<char*>(data(plane) + stride(plane) * row), | 774 reinterpret_cast<char*>(data(plane) + stride(plane) * row), |
| 775 row_bytes(plane))); | 775 row_bytes(plane))); |
| 776 } | 776 } |
| 777 } | 777 } |
| 778 } | 778 } |
| 779 | 779 |
| 780 } // namespace media | 780 } // namespace media |
| OLD | NEW |