26 #ifndef _VIDEOSINK_HH_
27 #define _VIDEOSINK_HH_
29 #include <bias_config.h>
30 #include <Base/Debug/Debug.hh>
31 #include <VideoSource/VideoSource_Disk.hh>
32 #include <Base/Image/Image.hh>
33 #include <Base/Image/ImageConvert.hh>
34 #include <Base/Image/ImageIO.hh>
49 void av_free_packet(AVPacket *pkt)
53 if (pkt->destruct) pkt->destruct(pkt);
54 pkt->data = NULL; pkt->size = 0;
73 VideoSink(std::vector<std::string> Images);
74 VideoSink(std::vector<std::string> Images, std::string Video);
80 void AddImage(std::string
Image);
81 void AddImages(std::vector<std::string> Images);
87 void SetOutputVideo(std::string Video);
92 void SetFPS(
float FPS);
98 void SetBitrate(
int Bitrate);
103 void SetBPP(
double BPP);
115 std::string GetErrMsg();
118 bool _SetupVideoSource();
128 static void _RGB888pToYUV420p(uint8_t *rgb, uint8_t *yuv,
129 int width,
int height);
std::vector< std::string > _ImgFiles
VideoSink for writing FFMPEG Videos from images.
AVCodecContext * _CodecCtx
The image template class for specific storage types.
This class simulates a video device by loading images from disk.