yolobs-studio/plugins/obs-ffmpeg/jim-nvenc.h

18 lines
503 B
C
Raw Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <obs-module.h>
2019-09-22 21:19:10 +00:00
#include "external/nvEncodeAPI.h"
2019-07-27 12:47:10 +00:00
2019-09-22 21:19:10 +00:00
typedef NVENCSTATUS(NVENCAPI *NV_CREATE_INSTANCE_FUNC)(
NV_ENCODE_API_FUNCTION_LIST *);
2019-07-27 12:47:10 +00:00
extern const char *nv_error_name(NVENCSTATUS err);
extern NV_ENCODE_API_FUNCTION_LIST nv;
extern NV_CREATE_INSTANCE_FUNC nv_create_instance;
2020-05-27 20:57:19 +00:00
extern bool init_nvenc(obs_encoder_t *encoder);
bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
const char *call);