Sunshine
v2025.118.151840
Self-hosted game stream host for Moonlight.
cbs.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include "
utility.h
"
8
9
struct
AVPacket;
10
struct
AVCodecContext;
11
12
namespace
cbs {
13
14
struct
nal_t
{
15
util::buffer_t<std::uint8_t>
_new;
16
util::buffer_t<std::uint8_t>
old;
17
};
18
19
struct
hevc_t
{
20
nal_t
vps;
21
nal_t
sps;
22
};
23
24
struct
h264_t
{
25
nal_t
sps;
26
};
27
28
hevc_t
29
make_sps_hevc(
const
AVCodecContext *ctx,
const
AVPacket *packet);
30
h264_t
31
make_sps_h264(
const
AVCodecContext *ctx,
const
AVPacket *packet);
32
39
bool
40
validate_sps
(
const
AVPacket *packet,
int
codec_id);
41
}
// namespace cbs
cbs::validate_sps
bool validate_sps(const AVPacket *packet, int codec_id)
Validates the Sequence Parameter Set (SPS) of a given packet.
Definition
cbs.cpp:226
util::buffer_t
Definition
utility.h:814
cbs::h264_t
Definition
cbs.h:24
cbs::hevc_t
Definition
cbs.h:19
cbs::nal_t
Definition
cbs.h:14
utility.h
Declarations for utility functions.
src
cbs.h
Generated by
1.10.0