1 /*****************************************************************************
2 * VideoWindow.h: BeOS video window class prototype
3 *****************************************************************************
4 * Copyright (C) 1999, 2000, 2001 VideoLAN
5 * $Id: VideoWindow.h,v 1.14 2002/03/31 08:13:38 tcastley Exp $
7 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
8 * Tony Castley <tcastley@mail.powerup.com.au>
9 * Richard Shepherd <richard@rshepherd.demon.co.uk>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
30 class VLCView : public BView
33 VLCView( BRect bounds);
36 void MouseDown(BPoint point);
37 void Draw(BRect updateRect);
41 class VideoWindow : public BWindow
44 // standard constructor and destructor
45 VideoWindow( int v_width, int v_height,
49 void Zoom(BPoint origin, float width, float height);
50 void FrameResized(float width, float height);
51 void FrameMoved(BPoint origin);
52 void ScreenChanged(BRect frame, color_space mode);
53 void drawBuffer(int bufferIndex);
54 void WindowActivated(bool active);
56 // this is the hook controling direct screen connection
57 int32 i_width; // incomming bitmap size
59 BRect winSize; // current window size
60 // float width_scale, height_scale;
61 // float out_top, out_left, out_height, out_width;
62 bool is_zoomed, vsync, is_overlay;
64 BBitmap *overlaybitmap;
68 thread_id fDrawThreadID;
72 // display_mode old_mode;
73 struct vout_thread_s *p_vout;