| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "media/gpu/av1_picture.h" |
| #include <memory> |
| |
| namespace media { |
| AV1Picture::AV1Picture() = default; |
| AV1Picture::~AV1Picture() = default; |
| |
| scoped_refptr<AV1Picture> AV1Picture::Duplicate() { |
| scoped_refptr<AV1Picture> dup_pic = CreateDuplicate(); |
| if (!dup_pic) |
| return nullptr; |
| |
| // Copy members of AV1Picture and CodecPicture. |
| // A proper bitstream id is set in AV1Decoder. |
| // Note that decrypt_config_ is not used in here, so skip copying it. |
| dup_pic->frame_header = frame_header; |
| dup_pic->set_bitstream_id(bitstream_id()); |
| dup_pic->set_visible_rect(visible_rect()); |
| dup_pic->set_colorspace(get_colorspace()); |
| return dup_pic; |
| } |
| |
| scoped_refptr<AV1Picture> AV1Picture::CreateDuplicate() { |
| return nullptr; |
| } |
| } // namespace media |