2019-02-05 18:20:16 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <obs-module.h>
|
2019-06-23 20:57:15 -07:00
|
|
|
#include "external/nvEncodeAPI.h"
|
2019-02-05 18:20:16 -08:00
|
|
|
|
2019-06-22 22:13:45 -07:00
|
|
|
typedef NVENCSTATUS(NVENCAPI *NV_CREATE_INSTANCE_FUNC)(
|
|
|
|
NV_ENCODE_API_FUNCTION_LIST *);
|
2019-02-05 18:20:16 -08:00
|
|
|
|
|
|
|
extern const char *nv_error_name(NVENCSTATUS err);
|
|
|
|
extern NV_ENCODE_API_FUNCTION_LIST nv;
|
|
|
|
extern NV_CREATE_INSTANCE_FUNC nv_create_instance;
|
2019-10-09 09:28:26 -07:00
|
|
|
extern bool init_nvenc(obs_encoder_t *encoder);
|
|
|
|
bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
|
|
|
|
const char *call);
|