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

Side by Side Diff: media/video/picture.cc

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: comments addressed + compile fixes Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "media/video/picture.h" 6 #include "media/video/picture.h"
7 7
8 namespace media { 8 namespace media {
9 9
10 PictureBuffer::PictureBuffer(int32_t id, 10 PictureBuffer::PictureBuffer(int32_t id,
(...skipping 23 matching lines...) Expand all
34 DCHECK_EQ(texture_ids.size(), texture_mailboxes.size()); 34 DCHECK_EQ(texture_ids.size(), texture_mailboxes.size());
35 } 35 }
36 36
37 PictureBuffer::PictureBuffer(const PictureBuffer& other) = default; 37 PictureBuffer::PictureBuffer(const PictureBuffer& other) = default;
38 38
39 PictureBuffer::~PictureBuffer() {} 39 PictureBuffer::~PictureBuffer() {}
40 40
41 Picture::Picture(int32_t picture_buffer_id, 41 Picture::Picture(int32_t picture_buffer_id,
42 int32_t bitstream_buffer_id, 42 int32_t bitstream_buffer_id,
43 const gfx::Rect& visible_rect, 43 const gfx::Rect& visible_rect,
44 const gfx::ColorSpace& color_space,
44 bool allow_overlay) 45 bool allow_overlay)
45 : picture_buffer_id_(picture_buffer_id), 46 : picture_buffer_id_(picture_buffer_id),
46 bitstream_buffer_id_(bitstream_buffer_id), 47 bitstream_buffer_id_(bitstream_buffer_id),
47 visible_rect_(visible_rect), 48 visible_rect_(visible_rect),
49 color_space_(color_space),
48 allow_overlay_(allow_overlay), 50 allow_overlay_(allow_overlay),
49 size_changed_(false) {} 51 size_changed_(false) {}
50 52
51 } // namespace media 53 } // namespace media
OLDNEW
« media/gpu/vt_video_decode_accelerator_mac.cc ('K') | « media/video/picture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698