mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
26 lines
815 B
C
26 lines
815 B
C
#pragma once
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
#include <obs-module.h>
|
|
#include "external/nvEncodeAPI.h"
|
|
#include "jim-nvenc-ver.h"
|
|
|
|
typedef NVENCSTATUS(NVENCAPI *NV_CREATE_INSTANCE_FUNC)(
|
|
NV_ENCODE_API_FUNCTION_LIST *);
|
|
|
|
extern const char *nv_error_name(NVENCSTATUS err);
|
|
extern NV_ENCODE_API_FUNCTION_LIST nv;
|
|
extern NV_CREATE_INSTANCE_FUNC nv_create_instance;
|
|
extern bool init_nvenc(obs_encoder_t *encoder);
|
|
bool nv_fail2(obs_encoder_t *encoder, void *session, const char *format, ...);
|
|
bool nv_failed2(obs_encoder_t *encoder, void *session, NVENCSTATUS err,
|
|
const char *func, const char *call);
|
|
|
|
#define nv_fail(encoder, format, ...) \
|
|
nv_fail2(encoder, enc->session, format, ##__VA_ARGS__)
|
|
|
|
#define nv_failed(encoder, err, func, call) \
|
|
nv_failed2(encoder, enc->session, err, func, call)
|