1 // ----------------------------------------------------------------------------
4 // Author: Guilhem Lavaux
5 // Created: February 1998
7 // Copyright: (C) 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // ----------------------------------------------------------------------------
11 #ifndef __VID_windows_H__
12 #define __VID_windows_H__
15 #pragma interface "vidwin.h"
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
21 // For compilers that support precompilation, includes "wx/wx.h".
22 #include "wx/wxprec.h"
28 // for all others, include the necessary headers (this file is usually all you
29 // need because it includes almost all "standard" wxWindows headers
31 #include "wx/string.h"
32 #include "wx/stream.h"
33 #include "wx/window.h"
36 // ----------------------------------------------------------------------------
39 #include "wx/mmedia/defs.h"
40 #include "wx/mmedia/vidbase.h"
42 // ----------------------------------------------------------------------------
43 // System headers and private types
45 #ifdef WXMMEDIA_INTERNAL
49 typedef struct VIDW_Internal
{
54 // ----------------------------------------------------------------------------
57 class WXDLLIMPEXP_MMEDIA wxVideoWindows
: public wxVideoBaseDriver
{
58 DECLARE_DYNAMIC_CLASS(wxVideoWindows
)
60 struct VIDW_Internal
*m_internal
;
61 bool m_paused
, m_stopped
, m_remove_file
;
69 wxVideoWindows(wxInputStream
& str
);
70 wxVideoWindows(const wxString
& fname
);
71 ~wxVideoWindows(void);
78 bool GetSize(wxSize
& size
) const;
79 bool SetSize(wxSize size
);
81 // Return codec name for each stream.
82 wxString
GetMovieCodec() const;
83 wxString
GetAudioCodec() const;
84 // Return misc. info about audio
85 wxUint32
GetSampleRate() const;
86 wxUint8
GetChannels() const;
87 wxUint8
GetBPS() const;
88 // Return the frame rate of the video (in frames/second)
89 double GetFrameRate() const;
90 // Return the total number of frames in the movie
91 wxUint32
GetNbFrames() const;
93 bool IsCapable(wxVideoType v_type
) const;
95 bool AttachOutput(wxWindow
& output
);
96 void DetachOutput(void);
98 bool IsPaused() const;
99 bool IsStopped() const;