/***** (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 #include #include #include "sdc_def_ext.h" #include "sdc.h" #include #include 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 *****/