1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: mediactrl_ffmpeg.h 3 // Purpose: Displays video 4 // Author: Alex Thuering 5 // Created: 21.01.2011 6 // RCS-ID: $Id: mediactrl_ffmpeg.h,v 1.5 2014/09/23 05:16:15 ntalex Exp $ 7 // Copyright: (c) Alex Thuering 8 // Licence: GPL 9 ///////////////////////////////////////////////////////////////////////////// 10 11 #ifndef MEDIA_CTRL_FF_H 12 #define MEDIA_CTRL_FF_H 13 14 #include <wx/mediactrl.h> 15 #include <vector> 16 #include "mediaenc.h" 17 class wxFfmpegMediaDecoder; 18 19 class MediaCtrlFF: public wxMediaCtrl { 20 public: 21 MediaCtrlFF(wxWindow* parent, wxWindowID winid, const wxString& fileName = wxEmptyString, 22 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, 23 const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("mediaCtrl")); 24 virtual ~MediaCtrlFF(); 25 void SetVideoFormat(VideoFormat videoFormat, AspectRatio aspectRatio, 26 const std::vector<int>& pad, const std::vector<int>& crop); 27 double GetFps(); 28 wxFfmpegMediaDecoder& GetDecoder(); 29 wxImage GetImage(); 30 }; 31 32 #endif // MEDIA_CTRL_FF_H 33