Sunshine
latest
Self-hosted game stream host for Moonlight.
cbs.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// local includes
8
#include "
utility.h
"
9
10
struct
AVPacket;
11
struct
AVCodecContext;
12
13
namespace
cbs {
14
15
struct
nal_t
{
16
util::buffer_t<std::uint8_t>
_new;
17
util::buffer_t<std::uint8_t>
old;
18
};
19
20
struct
hevc_t
{
21
nal_t
vps;
22
nal_t
sps;
23
};
24
25
struct
h264_t
{
26
nal_t
sps;
27
};
28
29
hevc_t
make_sps_hevc(
const
AVCodecContext *ctx,
const
AVPacket *packet);
30
h264_t
make_sps_h264(
const
AVCodecContext *ctx,
const
AVPacket *packet);
31
38
bool
validate_sps
(
const
AVPacket *packet,
int
codec_id);
39
}
// 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:222
util::buffer_t
Definition
utility.h:835
cbs::h264_t
Definition
cbs.h:25
cbs::hevc_t
Definition
cbs.h:20
cbs::nal_t
Definition
cbs.h:15
utility.h
Declarations for utility functions.
src
cbs.h
Generated by
1.10.0