Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
nvenc_utils.h
Go to the documentation of this file.
1
5#pragma once
6
7#ifdef _WIN32
8 #include <dxgiformat.h>
9#endif
10
11#include "nvenc_colorspace.h"
12
13#include "src/platform/common.h"
15
16#include <ffnvcodec/nvEncodeAPI.h>
17
18namespace nvenc {
19
20#ifdef _WIN32
21 DXGI_FORMAT
22 dxgi_format_from_nvenc_format(NV_ENC_BUFFER_FORMAT format);
23#endif
24
25 NV_ENC_BUFFER_FORMAT
26 nvenc_format_from_sunshine_format(platf::pix_fmt_e format);
27
28 nvenc_colorspace_t
29 nvenc_colorspace_from_sunshine_colorspace(const video::sunshine_colorspace_t &sunshine_colorspace);
30
31} // namespace nvenc
Declarations for common platform specific utilities.
pix_fmt_e
Definition common.h:213
Standalone NVENC encoder.
Definition nvenc_base.cpp:86
Declarations for NVENC YUV colorspace.
Definition video_colorspace.h:20
Declarations for colorspace functions.