
Ancillary Data API
Quadro SDI Output PG-03776-001_v06 | 135
#define MAKE_NVAPI_VERSION(typeName,ver) (NvU32)(sizeof(typeName) |
((ver)<<16))
#define GET_NVAPI_VERSION(ver) (NvU32)((ver)>>16)
#define GET_NVAPI_SIZE(ver) (NvU32)((ver) & 0xffff)
//---------------------------------------------------------------------
// Types
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// Enumerations
//---------------------------------------------------------------------
// ====================================================
// NvAPI Status Values
// All NvAPI functions return one of these codes.
// ====================================================
#ifndef _WIN32
#ifndef NvAPI_Status
typedef enum
{
NVAPI_OK = 0, // Success
NVAPI_ERROR = -1, // Generic error
NVAPI_LIBRARY_NOT_FOUND = -2, // nvapi.dll can not
be loaded
NVAPI_NO_IMPLEMENTATION = -3, // not implemented
in current driver installation
NVAPI_API_NOT_INTIALIZED = -4, // NvAPI_Initialize
has not been called (successfully)
NVAPI_INVALID_ARGUMENT = -5, // invalid argument
NVAPI_NVIDIA_DEVICE_NOT_FOUND = -6, // no NVIDIA display
driver was found
NVAPI_END_ENUMERATION = -7, // no more to enum
NVAPI_INVALID_HANDLE = -8, // invalid handle
NVAPI_INCOMPATIBLE_STRUCT_VERSION = -9, // an argument's
structure version is not supported
NVAPI_NOT_SUPPORTED = -10, // Requested feature
not supported in the selected GPU
NVAPI_PORTID_NOT_FOUND = -11 // NO port ID found
for I2C transaction
} NvAPI_Status;
#endif
#endif
// Audio sample rate definitions - from SMPTE 299M-2004 Table 8
typedef enum
{
NVVIOANCAUDIO_SAMPLING_RATE_48_0 = 0x0,
NVVIOANCAUDIO_SAMPLING_RATE_44_1 = 0x1,
NVGOVANCAUDIO_SAMPLING_RATE_32_0 = 0x2,
NVVIOANCAUDIO_SAMPLING_RATE_FREE_RUNNING = 0x3
} NVVIOANCAUDIO_SAMPLE_RATE;
Comentários a estes Manuais