mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
The following command was used to clang-format these files:
clang-format-21 -i $(find . \
-not \( -path "./\.*" -prune \) \
-not \( -path "./Build/*" -prune \) \
-not \( -path "./Toolchain/*" -prune \) \
-type f -name "*.cpp" -o -name "*.mm" -o -name "*.h")
36 lines
702 B
C++
36 lines
702 B
C++
/*
|
|
* Copyright (c) 2022-2026, Gregory Bertilson <gregory@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/ImmutableBitmap.h>
|
|
|
|
#include "VideoFrame.h"
|
|
|
|
namespace Media {
|
|
|
|
VideoFrame::VideoFrame(
|
|
AK::Duration timestamp,
|
|
AK::Duration duration,
|
|
Gfx::Size<u32> size,
|
|
u8 bit_depth, CodingIndependentCodePoints cicp,
|
|
NonnullRefPtr<Gfx::ImmutableBitmap> 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<Gfx::ImmutableBitmap> VideoFrame::immutable_bitmap() const
|
|
{
|
|
return m_bitmap;
|
|
}
|
|
|
|
}
|