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/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "media/base/limits.h" | 14 #include "media/base/limits.h" |
15 #include "media/base/video_util.h" | 15 #include "media/base/video_util.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 | 17 |
18 namespace media { | 18 namespace media { |
19 | 19 |
20 // static | 20 // static |
21 scoped_refptr<VideoFrame> VideoFrame::CreateFrame( | 21 scoped_refptr<VideoFrame> VideoFrame::CreateFrame( |
22 VideoFrame::Format format, | 22 VideoFrame::Format format, |
23 const gfx::Size& coded_size, | 23 const gfx::Size& coded_size, |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 break; | 345 break; |
346 for (int row = 0; row < rows(plane); ++row) { | 346 for (int row = 0; row < rows(plane); ++row) { |
347 base::MD5Update(context, base::StringPiece( | 347 base::MD5Update(context, base::StringPiece( |
348 reinterpret_cast<char*>(data(plane) + stride(plane) * row), | 348 reinterpret_cast<char*>(data(plane) + stride(plane) * row), |
349 row_bytes(plane))); | 349 row_bytes(plane))); |
350 } | 350 } |
351 } | 351 } |
352 } | 352 } |
353 | 353 |
354 } // namespace media | 354 } // namespace media |
OLD | NEW |