NVIDIA DeepStream SDK API Reference

5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvds_obj_encode.h
Go to the documentation of this file.
1 
12 #ifndef __NVDS_ENCODE_OBJECT_H__
13 #define __NVDS_ENCODE_OBJECT_H__
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
20 #define file_name_size 256
21 struct _NvDsObjEncCtx;
22 
24 typedef struct _NvDsObjEncCtx * NvDsObjEncCtxHandle;
25 
29 typedef struct _NvDsObjEncOutParams
30 {
32  uint8_t *outBuffer;
34  uint64_t outLen;
36 
40 typedef struct _NvDsObjEncUsrArgs
41 {
43  bool saveImg;
56  int objNum;
58 
60 NvDsObjEncCtxHandle nvds_obj_enc_create_context (void);
61 
66 bool nvds_obj_enc_process (NvDsObjEncCtxHandle, NvDsObjEncUsrArgs *,
68 
70 void nvds_obj_enc_finish (NvDsObjEncCtxHandle);
71 
73 void nvds_obj_enc_destroy_context (NvDsObjEncCtxHandle);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
Holds metadata for a frame in a batch.
Definition: nvdsmeta.h:233
void nvds_obj_enc_finish(NvDsObjEncCtxHandle)
Wait for all enqueued crops to be encoded.
void nvds_obj_enc_destroy_context(NvDsObjEncCtxHandle)
Destroy context.
int objNum
Object number in the frame.
uint64_t outLen
Length of the JPEG Encoded Object.
#define file_name_size
Copyright (c) 2020, NVIDIA CORPORATION.
bool saveImg
Boolean variable to save image.
Holds user parameters for a nvds_obj_enc_process call.
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.
struct _NvDsObjEncUsrArgs NvDsObjEncUsrArgs
Holds user parameters for a nvds_obj_enc_process call.
Holds metadata for an object in the frame.
Definition: nvdsmeta.h:287
struct _NvDsObjEncOutParams NvDsObjEncOutParams
Holds output parameters.
Holds information about batched buffers.
Definition: nvbufsurface.h:278
Holds output parameters.
char fileNameImg[file_name_size]
If user specifies the filename then it'll be used otherwise the following naming convention is used t...
NvDsObjEncCtxHandle nvds_obj_enc_create_context(void)
Create context and return a handle to NvObjEncCtx.
bool attachUsrMeta
Variable to attach user metadata.