mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
37
Libraries/LibMedia/Sample.h
Normal file
37
Libraries/LibMedia/Sample.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Gregory Bertilson <zaggy1024@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Time.h>
|
||||
|
||||
#include "VideoSampleData.h"
|
||||
|
||||
namespace Media {
|
||||
|
||||
class Sample final {
|
||||
public:
|
||||
using AuxiliaryData = Variant<VideoSampleData>;
|
||||
|
||||
Sample(AK::Duration timestamp, ReadonlyBytes data, AuxiliaryData auxiliary_data)
|
||||
: m_timestamp(timestamp)
|
||||
, m_data(data)
|
||||
, m_auxiliary_data(auxiliary_data)
|
||||
{
|
||||
}
|
||||
|
||||
AK::Duration timestamp() const { return m_timestamp; }
|
||||
ReadonlyBytes const& data() const { return m_data; }
|
||||
AuxiliaryData const& auxiliary_data() const { return m_auxiliary_data; }
|
||||
|
||||
private:
|
||||
AK::Duration m_timestamp;
|
||||
ReadonlyBytes m_data;
|
||||
AuxiliaryData m_auxiliary_data;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue