15 #ifndef _NVMEDIA_IEP_H
16 #define _NVMEDIA_IEP_H
36 #define NVMEDIA_IEP_VERSION_MAJOR 2
38 #define NVMEDIA_IEP_VERSION_MINOR 2
130 uint8_t maxInputBuffering,
131 uint8_t maxOutputBuffering,
234 uint32_t numBitstreamBuffers,
281 uint32_t *numBytesAvailable,
283 uint32_t millisecondTimeout
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
NvMediaIEPType
Image encode type.
NvMediaEncoderInstanceId
Specifies the encoder instance ID.
void NvMediaIEPDestroy(NvMediaIEP *encoder)
Destroys an NvMedia image encoder.
NvMediaStatus NvMediaIEPGetVersion(NvMediaVersion *version)
Checks the version compatibility for the NvMedia IEP library.
NvMediaStatus NvMediaIEPGetBitsEx(NvMediaIEP *encoder, uint32_t *numBytes, uint32_t numBitstreamBuffers, NvMediaBitstreamBuffer *bitstreams, void *extradata)
Returns the bitstream for a slice or frame.
NvMediaIEP * NvMediaIEPCreate(NvMediaDevice *device, NvMediaIEPType encodeType, void *initParams, NvMediaSurfaceType inputFormat, uint8_t maxInputBuffering, uint8_t maxOutputBuffering, NvMediaEncoderInstanceId instanceId)
Creates an encoder object capable of turning a stream of surfaces of the "inputFormat" into a bitstre...
NvMediaStatus
The set of all possible error codes.
NvMediaEncAttrType
Specifies the Video encoder get attribute type.
void NvMediaDevice
An opaque handle representing a NvMediaDevice object.
NvMediaStatus NvMediaIEPFeedFrame(NvMediaIEP *encoder, NvMediaImage *frame, NvMediaRect *sourceRect, void *picParams, NvMediaEncoderInstanceId instanceId)
Encodes the specified frame.
NvMediaBlockingType
Blocking type.
NvMediaStatus NvMediaIEPSetConfiguration(NvMediaIEP *encoder, void *configuration)
Sets the encoder configuration.
NvMediaStatus NvMediaIEPGetAttribute(NvMediaIEP *encoder, NvMediaEncAttrType attrType, uint32_t attrSize, void *AttributeData)
Gets the encoder attribute for the current encoding session.
NvMediaStatus NvMediaIEPBitsAvailable(NvMediaIEP *encoder, uint32_t *numBytesAvailable, NvMediaBlockingType blockingType, uint32_t millisecondTimeout)
Returns the encode status and number of bytes available for the next frame (if any).