1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /***** (C) Copyright, Shenzhen SUNWIN Intelligent Co.,Ltd. ******source file****
- * File name : Encoder.h
- * Author : ShengYin Li
- * Brief :
- ********************************************************************************
- * modify
- * Version Date Author Described
- * V1.00 2021/07/06 ShengYin Li Created
- *******************************************************************************/
- #pragma once
- #include <iostream>
- #include <stdio.h>
- #include <string.h>
- #include "sdc_def_ext.h"
- #include "sdc.h"
- #include <stdint.h>
- #include <sys/uio.h>
- using namespace std;
- class Encoder
- {
- private:
- protected:
- int32_t m_codecFd = -1; // 图片解码文件描述符
- public:
- Encoder();
- ~Encoder();
- int32_t Init();
- int32_t Yuv2Jpeg(const sdc_yuv_frame_s &yuv_frame, const sdc_osd_region_s &osd_region, sdc_jpeg_frame_s &jpeg_frame);
- int32_t FreeJpeg(sdc_jpeg_frame_s &jpeg_frame);
- int32_t SaveJpeg(const sdc_jpeg_frame_s &jpeg_frame, const string &jpegPath);
- };
- /******** (C) Copyright, Shenzhen SUNWIN Intelligent Co.,Ltd. ******** End *****/
|