123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #pragma once
- #include "../include/api.h"
- #include "NvBufSurface.h"
- typedef struct
- {
-
- unsigned char * start;
-
- unsigned int size;
-
- int dmabuff_fd;
- } nv_buffer;
-
- typedef struct
- {
-
- const char * cam_devname;
- char cam_file[16];
- int cam_fd;
- unsigned int cam_pixfmt;
- unsigned int cam_w;
- unsigned int cam_h;
- unsigned int frame;
- unsigned int save_n_frame;
-
- nv_buffer * g_buff;
- bool capture_dmabuf;
-
-
- int render_dmabuf_fd;
- int fps;
-
- bool enable_cuda;
-
-
-
-
-
- bool enable_verbose;
- } context_t;
- class CaptureOp
- {
- public:
-
- CaptureOp(RenderPosition type,int32_t index);
- RenderPosition GetType();
- int32_t GetIndex();
-
- bool IsForward();
- void SetForward(bool b);
- context_t* _ctx0=nullptr;
- context_t* _ctx1=nullptr;
- private:
- RenderPosition _type;
- bool _forward;
- int32_t _index;
-
- };
|