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