/* * Copyright (c) 2022-2026, Gregory Bertilson * * SPDX-License-Identifier: BSD-2-Clause */ #include #include "VideoFrame.h" namespace Media { VideoFrame::VideoFrame(AK::Duration timestamp, AK::Duration duration, Gfx::Size size, u8 bit_depth, CodingIndependentCodePoints cicp, NonnullRefPtr bitmap) : m_timestamp(timestamp) , m_duration(duration) , m_size(size) , m_bit_depth(bit_depth) , m_cicp(cicp) , m_bitmap(move(bitmap)) { } VideoFrame::~VideoFrame() = default; NonnullRefPtr VideoFrame::immutable_bitmap() const { return m_bitmap; } }