NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

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

Detailed Description

NVIDIA Media Interface: NvMedia Video Encode Processing API

This file contains the Video Encode Processing API.

Definition in file nvmedia_vep.h.

Go to the source code of this file.

Data Structures

struct  NvMediaVideoEncoder
 Video encoder object created by NvMediaVideoEncoderCreate. More...
 

Macros

#define NVMEDIA_VEP_VERSION_MAJOR   2
 Major Version number. More...
 
#define NVMEDIA_VEP_VERSION_MINOR   2
 Minor Version number. More...
 

Enumerations

enum  NvMediaVideoEncodeType {
  NVMEDIA_VIDEO_ENCODE_CODEC_H264,
  NVMEDIA_VIDEO_ENCODE_CODEC_HEVC,
  NVMEDIA_VIDEO_ENCODE_CODEC_VP9,
  NVMEDIA_VIDEO_ENCODE_CODEC_VP8
}
 Video encoder codec type. More...
 

Functions

NvMediaStatus NvMediaVideoEncoderGetVersion (NvMediaVersion *version)
 Gets the version information for the NvMedia Video Encoder library. More...
 
NvMediaVideoEncoderNvMediaVideoEncoderCreate (NvMediaDevice *device, NvMediaVideoEncodeType codec, 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 NvMediaVideoEncoderDestroy (NvMediaVideoEncoder *encoder)
 Destroys an NvMediaEncoder object. More...
 
NvMediaStatus NvMediaVideoEncoderFeedFrame (NvMediaVideoEncoder *encoder, NvMediaVideoSurface *frame, NvMediaRect *sourceRect, void *picParams, NvMediaEncoderInstanceId instanceId)
 Encodes the specified "frame". More...
 
NvMediaStatus NvMediaVideoEncoderSetConfiguration (NvMediaVideoEncoder *encoder, void *configuration)
 Sets the encoder configuration. More...
 
NvMediaStatus NvMediaVideoEncoderGetBits (NvMediaVideoEncoder *encoder, uint32_t *numBytes, void *buffer)
 NvMediaVideoEncoderGetBits returns a frame's worth of bitstream into the provided "buffer". More...
 
NvMediaStatus NvMediaVideoEncoderBitsAvailable (NvMediaVideoEncoder *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...