Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: media/base/video_frame.cc

Issue 229453004: Rename VideoFrame::{Get,Set}Timestamp() to {set_}timestamp(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile failure Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/video_frame.h ('k') | media/base/video_frame_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // static 228 // static
229 scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame( 229 scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame(
230 const scoped_refptr<VideoFrame>& frame, 230 const scoped_refptr<VideoFrame>& frame,
231 const gfx::Rect& visible_rect, 231 const gfx::Rect& visible_rect,
232 const gfx::Size& natural_size, 232 const gfx::Size& natural_size,
233 const base::Closure& no_longer_needed_cb) { 233 const base::Closure& no_longer_needed_cb) {
234 DCHECK(frame->visible_rect().Contains(visible_rect)); 234 DCHECK(frame->visible_rect().Contains(visible_rect));
235 scoped_refptr<VideoFrame> wrapped_frame(new VideoFrame( 235 scoped_refptr<VideoFrame> wrapped_frame(new VideoFrame(
236 frame->format(), frame->coded_size(), visible_rect, natural_size, 236 frame->format(), frame->coded_size(), visible_rect, natural_size,
237 frame->GetTimestamp(), frame->end_of_stream())); 237 frame->timestamp(), frame->end_of_stream()));
238 238
239 for (size_t i = 0; i < NumPlanes(frame->format()); ++i) { 239 for (size_t i = 0; i < NumPlanes(frame->format()); ++i) {
240 wrapped_frame->strides_[i] = frame->stride(i); 240 wrapped_frame->strides_[i] = frame->stride(i);
241 wrapped_frame->data_[i] = frame->data(i); 241 wrapped_frame->data_[i] = frame->data(i);
242 } 242 }
243 243
244 wrapped_frame->no_longer_needed_cb_ = no_longer_needed_cb; 244 wrapped_frame->no_longer_needed_cb_ = no_longer_needed_cb;
245 return wrapped_frame; 245 return wrapped_frame;
246 } 246 }
247 247
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 break; 554 break;
555 for (int row = 0; row < rows(plane); ++row) { 555 for (int row = 0; row < rows(plane); ++row) {
556 base::MD5Update(context, base::StringPiece( 556 base::MD5Update(context, base::StringPiece(
557 reinterpret_cast<char*>(data(plane) + stride(plane) * row), 557 reinterpret_cast<char*>(data(plane) + stride(plane) * row),
558 row_bytes(plane))); 558 row_bytes(plane)));
559 } 559 }
560 } 560 }
561 } 561 }
562 562
563 } // namespace media 563 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_frame.h ('k') | media/base/video_frame_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698