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 3 // found in the LICENSE file. 4 // Note: ported from Chromium commit head: 2de6929 5 6 #include "picture.h" 7 8 namespace media { 9 10 PictureBuffer::PictureBuffer(int32_t id, const Size& size) 11 : id_(id), size_(size) {} 12 13 PictureBuffer::PictureBuffer(int32_t id, 14 const Size& size, 15 VideoPixelFormat pixel_format) 16 : id_(id), 17 size_(size), 18 pixel_format_(pixel_format) {} 19 20 PictureBuffer::PictureBuffer(const PictureBuffer& other) = default; 21 22 PictureBuffer::~PictureBuffer() = default; 23 24 Picture::Picture(int32_t picture_buffer_id, 25 int32_t bitstream_buffer_id, 26 const Rect& visible_rect, 27 bool allow_overlay) 28 : picture_buffer_id_(picture_buffer_id), 29 bitstream_buffer_id_(bitstream_buffer_id), 30 visible_rect_(visible_rect), 31 allow_overlay_(allow_overlay) {} 32 33 Picture::Picture(const Picture& other) = default; 34 35 Picture::~Picture() = default; 36 37 } // namespace media 38