16 #ifndef _NVMEDIA_CORE_H
17 #define _NVMEDIA_CORE_H
27 #if !defined(__NVM_DEPRECATED__)
28 #if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 6)
35 #pragma GCC diagnostic warning "-Wdeprecated-declarations"
36 #define __NVM_DEPRECATED_MSG__(fmt) __attribute__((deprecated(fmt)))
38 #define __NVM_DEPRECATED__
39 #define __NVM_DEPRECATED_MSG__(fmt) __NVM_DEPRECATED__
42 #define __NVM_DEPRECATED_MSG__(fmt) __NVM_DEPRECATED__
61 #define NVMEDIA_RELEASE_VERSION_MAJOR 2
63 #define NVMEDIA_RELEASE_VERSION_MINOR 0
66 #define NVMEDIA_CORE_VERSION_MAJOR 1
68 #define NVMEDIA_CORE_VERSION_MINOR 5
71 #define NVMEDIA_TRUE (0 == 0)
73 #define NVMEDIA_FALSE (0 == 1)
312 NvMediaDevice *device
NvMediaDevice * NvMediaDeviceCreate(void)
Creates an NvMediaDevice.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
ITU BT.601 color standard extended range.
Operation has not finished yet.
void NvMediaDeviceDestroy(NvMediaDevice *device)
Destroys an NvMediaDevice.
ITU BT.709 color standard extended range.
struct timespec NvMediaTime
Holds the media time (timespec as defined by the POSIX specification).
A catch-all error, used when no other error code applies.
Kernel monotonic clock is used for base time calculation.
NvMediaColorStandard
Defines color standards.
ITU BT.601 color standard.
NvMediaStatus
The set of all possible error codes.
NvMediaStatus NvMediaCoreGetVersion(NvMediaVersion *version)
Gets the core version information for the NvMedia library.
SMTE 240M color standard.
User defined clock is used for base time calculation.
Operation is cancelled when the hardware is timed out.
Bad parameter was passed.
void NvMediaDevice
An opaque handle representing a NvMediaDevice object.
uint64_t NvMediaGlobalTime
Media global time, measured in microseconds.
The operation completed successfully; no error.
ITU BT.709 color standard.
NvMediaTimeBase
Defines clock base for NvMediaTime.
PTP clock is used for base time calculation.
NvMediaStatus NvMediaReleaseGetVersion(NvMediaVersion *version)
Gets the release version information for the NvMedia library.