| 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" | |
| 15 #include "media/base/limits.h" | 14 #include "media/base/limits.h" |
| 16 #include "media/base/video_util.h" | 15 #include "media/base/video_util.h" |
| 17 #include "ui/gfx/geometry/point.h" | 16 #include "ui/gfx/geometry/point.h" |
| 18 | 17 |
| 19 namespace media { | 18 namespace media { |
| 20 | 19 |
| 21 static bool IsPowerOfTwo(size_t x) { | 20 static bool IsPowerOfTwo(size_t x) { |
| 22 return x != 0 && (x & (x - 1)) == 0; | 21 return x != 0 && (x & (x - 1)) == 0; |
| 23 } | 22 } |
| 24 | 23 |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { | 814 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { |
| 816 for (int row = 0; row < rows(plane); ++row) { | 815 for (int row = 0; row < rows(plane); ++row) { |
| 817 base::MD5Update(context, base::StringPiece( | 816 base::MD5Update(context, base::StringPiece( |
| 818 reinterpret_cast<char*>(data(plane) + stride(plane) * row), | 817 reinterpret_cast<char*>(data(plane) + stride(plane) * row), |
| 819 row_bytes(plane))); | 818 row_bytes(plane))); |
| 820 } | 819 } |
| 821 } | 820 } |
| 822 } | 821 } |
| 823 | 822 |
| 824 } // namespace media | 823 } // namespace media |
| OLD | NEW |