28 lines
573 B
C++
28 lines
573 B
C++
#pragma once
|
|
|
|
#ifdef _WIN32
|
|
#include <dxgiformat.h>
|
|
#endif
|
|
|
|
#include "nvenc_colorspace.h"
|
|
|
|
#include "src/platform/common.h"
|
|
#include "src/video_colorspace.h"
|
|
|
|
#include <ffnvcodec/nvEncodeAPI.h>
|
|
|
|
namespace nvenc {
|
|
|
|
#ifdef _WIN32
|
|
DXGI_FORMAT
|
|
dxgi_format_from_nvenc_format(NV_ENC_BUFFER_FORMAT format);
|
|
#endif
|
|
|
|
NV_ENC_BUFFER_FORMAT
|
|
nvenc_format_from_sunshine_format(platf::pix_fmt_e format);
|
|
|
|
nvenc_colorspace_t
|
|
nvenc_colorspace_from_sunshine_colorspace(const video::sunshine_colorspace_t &sunshine_colorspace);
|
|
|
|
} // namespace nvenc
|