|
NVIDIA DeepStream SDK API Reference
|
6.4 Release
|
Go to the documentation of this file.
24 #ifndef __NVDS_ENCODE_OBJECT_H__
25 #define __NVDS_ENCODE_OBJECT_H__
34 #define FILE_NAME_SIZE (1024)
35 struct _NvDsObjEncCtx;
char fileNameImg[FILE_NAME_SIZE]
If user specifies the filename then it'll be used otherwise the following naming convention is used t...
Holds information about batched buffers.
Holds user parameters for a nvds_obj_enc_process call.
bool attachUsrMeta
Variable to attach user metadata.
bool saveImg
Boolean variable to save image.
struct _NvDsObjEncUsrArgs NvDsObjEncUsrArgs
Holds user parameters for a nvds_obj_enc_process call.
NvDsObjEncCtxHandle nvds_obj_enc_create_context(int)
Create context and return a handle to NvObjEncCtx.
void nvds_obj_enc_destroy_context(NvDsObjEncCtxHandle)
Destroy context.
int scaledWidth
Image dimensions shouldn't exceed frame dimensions.
int scaledHeight
Height Paramater for scaling.
struct _NvDsObjEncOutParams NvDsObjEncOutParams
Holds output parameters.
uint64_t outLen
Length of the JPEG Encoded Object.
void nvds_obj_enc_finish(NvDsObjEncCtxHandle)
Wait for all enqueued crops to be encoded.
int objNum
Object number in the frame.
bool calcEncodeTime
Boolean variable to calculate time of encode.
bool scaleImg
Boolean variable to scale image.
struct _NvDsObjEncCtx * NvDsObjEncCtxHandle
Opaque Handle to the Object Encoder Context.
bool nvds_obj_enc_process(NvDsObjEncCtxHandle, NvDsObjEncUsrArgs *, NvBufSurface *, NvDsObjectMeta *, NvDsFrameMeta *)
Enqueue an object crop for JPEG encode.
uint8_t * outBuffer
Pointer to the JPEG Encoded Object.
int quality
Image quality value.
bool isFrame
Variable for frame/object encoding.