NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_iep.h File Reference

Detailed Description

NVIDIA Media Interface: NvMedia Image Encode Processing API

This file contains the Image Encode Processing API.

Definition in file nvmedia_iep.h.

Go to the source code of this file.

Data Structures

struct  NvMediaIEP
 Holds the image encoder object created by NvMediaIEPCreate. More...
 

Macros

#define NVMEDIA_IEP_VERSION_MAJOR   2
 Major Version number. More...
 
#define NVMEDIA_IEP_VERSION_MINOR   2
 Minor Version number. More...
 

Enumerations

enum  NvMediaIEPType {
  NVMEDIA_IMAGE_ENCODE_H264,
  NVMEDIA_IMAGE_ENCODE_HEVC,
  NVMEDIA_IMAGE_ENCODE_VP9,
  NVMEDIA_IMAGE_ENCODE_VP8
}
 Image encode type. More...
 

Functions

NvMediaStatus NvMediaIEPGetVersion (NvMediaVersion *version)
 Checks the version compatibility for the NvMedia IEP library. More...
 
NvMediaIEPNvMediaIEPCreate (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 bitstream of the specified "codec". More...
 
void NvMediaIEPDestroy (NvMediaIEP *encoder)
 Destroys an NvMedia image encoder. More...
 
NvMediaStatus NvMediaIEPFeedFrame (NvMediaIEP *encoder, NvMediaImage *frame, NvMediaRect *sourceRect, void *picParams, NvMediaEncoderInstanceId instanceId)
 Encodes the specified frame. More...
 
NvMediaStatus NvMediaIEPSetConfiguration (NvMediaIEP *encoder, void *configuration)
 Sets the encoder configuration. More...
 
NvMediaStatus NvMediaIEPGetBitsEx (NvMediaIEP *encoder, uint32_t *numBytes, uint32_t numBitstreamBuffers, NvMediaBitstreamBuffer *bitstreams, void *extradata)
 Returns the bitstream for a slice or frame. More...
 
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). More...
 
NvMediaStatus NvMediaIEPGetAttribute (NvMediaIEP *encoder, NvMediaEncAttrType attrType, uint32_t attrSize, void *AttributeData)
 Gets the encoder attribute for the current encoding session. More...