Commit 6430cf04 authored by Tony Castley's avatar Tony Castley

Improved overlay and bitmap support, not tested on nVidia cards.

Lower CPU usage and no thread created per frame.
parent 128b5eb2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface * InterfaceWindow.cpp: beos interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.15 2002/03/31 08:13:38 tcastley Exp $ * $Id: InterfaceWindow.cpp,v 1.16 2002/05/16 11:38:42 tcastley Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -569,7 +569,7 @@ bool InterfaceWindow::QuitRequested() ...@@ -569,7 +569,7 @@ bool InterfaceWindow::QuitRequested()
{ {
p_intf->b_die = 1; p_intf->b_die = 1;
return( false ); return( true );
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype * VideoWindow.h: BeOS video window class prototype
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: VideoWindow.h,v 1.17 2002/04/05 21:26:29 sam Exp $ * $Id: VideoWindow.h,v 1.18 2002/05/16 11:38:42 tcastley Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au> * Tony Castley <tcastley@mail.powerup.com.au>
...@@ -36,14 +36,15 @@ typedef struct colorcombo ...@@ -36,14 +36,15 @@ typedef struct colorcombo
colorcombo colspace[]= colorcombo colspace[]=
{ {
{B_YUV420, "B_YUV420", FOURCC_I420, 3},
{B_YUV422, "B_YUV422", FOURCC_Y422, 3}, {B_YUV422, "B_YUV422", FOURCC_Y422, 3},
{B_YCbCr422, "B_YCbCr422", FOURCC_YUY2, 3}, {B_YCbCr422, "B_YCbCr422", FOURCC_YUY2, 3},
{B_RGB32, "B_RGB32", FOURCC_RV32, 1}, {B_RGB32, "B_RGB32", FOURCC_RV32, 1},
{B_RGB16, "B_RGB16", FOURCC_RV16, 1} {B_RGB16, "B_RGB16", FOURCC_RV16, 1}
}; };
#define COLOR_COUNT 4 #define COLOR_COUNT 5
#define DEFAULT_COL 2 #define DEFAULT_COL 3
class VLCView : public BView class VLCView : public BView
...@@ -78,7 +79,7 @@ public: ...@@ -78,7 +79,7 @@ public:
int32 i_height; int32 i_height;
BRect winSize; // current window size BRect winSize; // current window size
bool is_zoomed, vsync; bool is_zoomed, vsync;
BBitmap *bitmap[2]; BBitmap *bitmap[3];
BBitmap *overlaybitmap; BBitmap *overlaybitmap;
VLCView *view; VLCView *view;
int i_buffer; int i_buffer;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment