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