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
9struct AVPacket;
10struct AVCodecContext;
11
12namespace cbs {
13
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
bool validate_sps(const AVPacket *packet, int codec_id)
Validates the Sequence Parameter Set (SPS) of a given packet.
Definition cbs.cpp:226
Definition utility.h:814
Definition cbs.h:24
Definition cbs.h:19
Definition cbs.h:14
Declarations for utility functions.