1998-11-09 18:37:38 +00:00
|
|
|
// /////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: vidbase.h
|
|
|
|
// Purpose: wxMMedia
|
|
|
|
// Author: Guilhem Lavaux
|
|
|
|
// Created: 1997
|
|
|
|
// Updated: 1998
|
|
|
|
// Copyright: (C) 1997, 1998, Guilhem Lavaux
|
|
|
|
// CVS: $Id$
|
|
|
|
// License: wxWindows license
|
|
|
|
// /////////////////////////////////////////////////////////////////////////////
|
|
|
|
/* Real -*- C++ -*- */
|
|
|
|
#ifndef __VID_bdrv_H__
|
|
|
|
#define __VID_bdrv_H__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/string.h"
|
|
|
|
#include "wx/window.h"
|
1999-02-10 20:01:06 +00:00
|
|
|
#include "wx/frame.h"
|
1998-11-09 18:37:38 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
typedef enum {
|
|
|
|
wxVIDEO_MSAVI,
|
|
|
|
wxVIDEO_MPEG,
|
|
|
|
wxVIDEO_QT,
|
|
|
|
wxVIDEO_GIF,
|
|
|
|
wxVIDEO_JMOV,
|
|
|
|
wxVIDEO_FLI,
|
|
|
|
wxVIDEO_IFF,
|
|
|
|
wxVIDEO_SGI,
|
|
|
|
wxVIDEO_MPEG2
|
|
|
|
} ///
|
|
|
|
wxVideoType;
|
|
|
|
|
|
|
|
///
|
|
|
|
class wxVideoBaseDriver;
|
|
|
|
class wxVideoOutput : public wxWindow {
|
|
|
|
///
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxVideoOutput)
|
|
|
|
protected:
|
1999-08-14 12:06:35 +00:00
|
|
|
bool m_dyn_size;
|
1998-11-09 18:37:38 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
wxVideoOutput();
|
|
|
|
///
|
|
|
|
wxVideoOutput(wxWindow *parent, const wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, const long style = 0,
|
|
|
|
const wxString& name = "video_output");
|
|
|
|
///
|
|
|
|
virtual ~wxVideoOutput();
|
|
|
|
|
|
|
|
///
|
1999-08-14 12:06:35 +00:00
|
|
|
bool DynamicSize() { return m_dyn_size; }
|
1998-11-09 18:37:38 +00:00
|
|
|
///
|
1999-08-14 12:06:35 +00:00
|
|
|
void DynamicSize(bool dyn) { m_dyn_size = dyn; }
|
1998-11-09 18:37:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
1999-08-14 12:06:35 +00:00
|
|
|
class wxVideoBaseDriver : public wxObject {
|
1998-11-09 18:37:38 +00:00
|
|
|
///
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxVideoBaseDriver)
|
|
|
|
protected:
|
1999-08-14 12:06:35 +00:00
|
|
|
wxVideoOutput *m_video_output;
|
1998-11-09 18:37:38 +00:00
|
|
|
public:
|
|
|
|
friend class wxVideoOutput;
|
|
|
|
|
|
|
|
///
|
|
|
|
wxVideoBaseDriver();
|
|
|
|
///
|
1999-08-14 12:06:35 +00:00
|
|
|
wxVideoBaseDriver(wxInputStream& str);
|
1998-11-09 18:37:38 +00:00
|
|
|
///
|
|
|
|
virtual ~wxVideoBaseDriver();
|
|
|
|
|
|
|
|
///
|
|
|
|
virtual bool Pause() = 0;
|
|
|
|
///
|
|
|
|
virtual bool Resume() = 0;
|
|
|
|
|
|
|
|
///
|
|
|
|
virtual bool SetVolume(wxUint8 vol) = 0;
|
|
|
|
///
|
|
|
|
virtual bool Resize(wxUint16 w, wxUint16 h) = 0;
|
|
|
|
|
|
|
|
///
|
|
|
|
virtual bool IsCapable(wxVideoType WXUNUSED(v_type)) { return FALSE; }
|
|
|
|
|
|
|
|
///
|
|
|
|
virtual void OnFinished() {}
|
|
|
|
|
|
|
|
///
|
|
|
|
virtual bool AttachOutput(wxVideoOutput& output);
|
|
|
|
///
|
|
|
|
virtual void DetachOutput();
|
|
|
|
};
|
|
|
|
|
|
|
|
extern wxFrame *wxVideoCreateFrame(wxVideoBaseDriver *vid_drv);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|