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