12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #pragma once
- #include "../include/api.h"
- #include "NvBufSurface.h"
- typedef struct
- {
-
- unsigned char * start;
-
- unsigned int size;
-
- int dmabuff_fd;
- } nv_buffer;
- typedef struct
- {
-
-
- int cam_fd;
-
-
- unsigned int cam_pixfmt;
- unsigned int cam_w;
- unsigned int cam_h;
-
-
-
- nv_buffer * g_buff;
- bool capture_dmabuf;
-
- int render_dmabuf_fd;
- int fps;
-
-
-
- bool enable_verbose;
- } context_t;
- typedef struct
- {
- unsigned int v4l2_pixfmt;
- NvBufSurfaceColorFormat nvbuff_color;
- } nv_color_fmt;
- 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;
-
- };
|