1 #ifdef FRAME_CAPTURE_MPEG
3 #ifndef _MPEG_FRAME_CAPTURE_HH_
4 #define _MPEG_FRAME_CAPTURE_HH_
11 #include <libavcodec/avcodec.h>
12 #include <libavutil/imgutils.h>
13 #include <libavutil/opt.h>
14 #include <libavutil/mem.h>
15 #include <libswscale/swscale.h>
22 class MpegFrameCapture:
public MbsFrameCapture
29 void ProcessScreenShot();
30 void ffmpeg_encoder_start(
int codec_id,
int fps);
31 void ffmpeg_encoder_glread_rgb();
32 void ffmpeg_encoder_set_frame_yuv_from_rgb();
33 void ffmpeg_encoder_encode_frame();
34 void ffmpeg_encoder_finish();
43 struct SwsContext *sws_context;
45 const size_t format_nchannels;
55 #endif //_MPEG_FRAME_CAPTURE_HH_