jim-nvenc.h 503 B

1234567891011121314151617
  1. #pragma once
  2. #define WIN32_LEAN_AND_MEAN
  3. #include <windows.h>
  4. #include <obs-module.h>
  5. #include "external/nvEncodeAPI.h"
  6. typedef NVENCSTATUS(NVENCAPI *NV_CREATE_INSTANCE_FUNC)(
  7. NV_ENCODE_API_FUNCTION_LIST *);
  8. extern const char *nv_error_name(NVENCSTATUS err);
  9. extern NV_ENCODE_API_FUNCTION_LIST nv;
  10. extern NV_CREATE_INSTANCE_FUNC nv_create_instance;
  11. extern bool init_nvenc(obs_encoder_t *encoder);
  12. bool nv_failed(obs_encoder_t *encoder, NVENCSTATUS err, const char *func,
  13. const char *call);