Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
974aa232
Commit
974aa232
authored
Dec 01, 2001
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented simple BDirectWindow (DMA) support
parent
a278da2f
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
233 additions
and
182 deletions
+233
-182
plugins/beos/VideoWindow.h
plugins/beos/VideoWindow.h
+45
-26
plugins/beos/vout_beos.cpp
plugins/beos/vout_beos.cpp
+188
-156
No files found.
plugins/beos/VideoWindow.h
View file @
974aa232
...
...
@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: VideoWindow.h,v 1.
7 2001/10/21 06:06:20
tcastley Exp $
* $Id: VideoWindow.h,v 1.
8 2001/12/01 06:38:53
tcastley Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au>
...
...
@@ -22,8 +22,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <Slider.h>
#include <Accelerant.h>
#include <Bitmap.h>
class
VLCView
:
public
BView
...
...
@@ -32,44 +30,65 @@ public:
VLCView
(
BRect
bounds
);
~
VLCView
();
v
irtual
v
oid
MouseDown
(
BPoint
point
);
void
MouseDown
(
BPoint
point
);
};
class
VideoWindow
:
public
BWindow
class
VideoWindow
{
public:
// standard constructor and destructor
VideoWindow
(
BRect
frame
,
const
char
*
name
,
VideoWindow
(
int
width
,
int
height
,
struct
vout_thread_s
*
p_video_output
);
~
VideoWindow
();
// standard window member
virtual
bool
QuitRequested
();
virtual
void
FrameResized
(
float
width
,
float
height
);
virtual
void
MessageReceived
(
BMessage
*
message
);
virtual
void
Zoom
(
BPoint
origin
,
float
width
,
float
height
);
void
resizeIfRequired
(
int
newWidth
,
int
newHeight
);
void
drawBuffer
(
int
bufferIndex
);
// this is the hook controling direct screen connection
int32
i_bytes_per_pixel
;
int32
i_screen_depth
;
int32
i_width
;
int32
i_height
;
int32
fRowBytes
;
int
i_buffer_index
;
BBitmap
*
bitmap
[
2
];
VLCView
*
view
;
thread_id
fDrawThreadID
;
BWindow
*
voutWindow
;
int
i_buffer
;
bool
teardownwindow
;
bool
is_zoomed
;
private:
// display_mode old_mode;
thread_id
fDrawThreadID
;
struct
vout_thread_s
*
p_vout
;
private:
// display_mode old_mode;
BRect
rect
;
};
class
bitmapWindow
:
public
BWindow
{
public:
bitmapWindow
(
BRect
frame
,
VideoWindow
*
theOwner
);
~
bitmapWindow
();
// standard window member
virtual
void
FrameResized
(
float
width
,
float
height
);
virtual
void
Zoom
(
BPoint
origin
,
float
width
,
float
height
);
private:
bool
is_zoomed
;
BRect
origRect
;
VideoWindow
*
owner
;
};
class
directWindow
:
public
BDirectWindow
{
public:
// standard constructor and destructor
directWindow
(
BRect
frame
,
VideoWindow
*
theOwner
);
~
directWindow
();
// standard window member
virtual
void
FrameResized
(
float
width
,
float
height
);
virtual
void
Zoom
(
BPoint
origin
,
float
width
,
float
height
);
virtual
void
DirectConnected
(
direct_buffer_info
*
info
);
private:
bool
is_zoomed
;
BRect
origRect
;
VideoWindow
*
owner
;
};
plugins/beos/vout_beos.cpp
View file @
974aa232
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment