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
6d1e0c51
Commit
6d1e0c51
authored
Dec 06, 2001
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added funcionality for vertical retrace sync for refresh rates 60Hz or lower
(Thanks Rudolf) Fixed the Prev Title Bug, now works.
parent
710f02f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
21 deletions
+51
-21
plugins/beos/InterfaceWindow.cpp
plugins/beos/InterfaceWindow.cpp
+2
-2
plugins/beos/VideoWindow.h
plugins/beos/VideoWindow.h
+1
-3
plugins/beos/vout_beos.cpp
plugins/beos/vout_beos.cpp
+48
-16
No files found.
plugins/beos/InterfaceWindow.cpp
View file @
6d1e0c51
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.
8 2001/11/30 09:49:48
tcastley Exp $
* $Id: InterfaceWindow.cpp,v 1.
9 2001/12/06 10:29:40
tcastley Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -428,7 +428,7 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
i_id
=
p_intf
->
p_input
->
stream
.
p_selected_area
->
i_id
-
1
;
/* Disallow area 0 since it is used for video_ts.vob */
if
(
i_id
<
0
)
if
(
i_id
>
0
)
{
p_area
=
p_intf
->
p_input
->
stream
.
pp_areas
[
i_id
];
input_ChangeArea
(
p_intf
->
p_input
,
(
input_area_t
*
)
p_area
);
...
...
plugins/beos/VideoWindow.h
View file @
6d1e0c51
...
...
@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: VideoWindow.h,v 1.
8 2001/12/01 06:38:53
tcastley Exp $
* $Id: VideoWindow.h,v 1.
9 2001/12/06 10:29:40
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 <Bitmap.h>
class
VLCView
:
public
BView
{
public:
...
...
plugins/beos/vout_beos.cpp
View file @
6d1e0c51
...
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: vout_beos.cpp,v 1.3
3 2001/12/01 06:38:53
tcastley Exp $
* $Id: vout_beos.cpp,v 1.3
4 2001/12/06 10:29:40
tcastley Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -108,21 +108,53 @@ BWindow *beos_GetAppWindow(char *name)
return
window
;
}
/*****************************************************************************
* DrawingThread : thread that really does the drawing
*****************************************************************************/
int32
Draw
(
void
*
data
)
{
VideoWindow
*
p_win
;
p_win
=
(
VideoWindow
*
)
data
;
if
(
p_win
->
voutWindow
->
LockLooper
()
)
{
p_win
->
view
->
DrawBitmap
(
p_win
->
bitmap
[
p_win
->
i_buffer
],
p_win
->
bitmap
[
p_win
->
i_buffer
]
->
Bounds
(),
p_win
->
voutWindow
->
Bounds
()
);
p_win
->
voutWindow
->
UnlockLooper
();
}
return
B_OK
;
/****************************************************************************
*
* DrawingThread : thread that really does the drawing
****************************************************************************
*/
int32
Draw
(
void
*
data
)
{
//rudolf: sync init:
BScreen
*
screen
;
display_mode
disp_mode
;
static
uint32
refresh
,
oldrefresh
=
0
;
screen
=
new
BScreen
();
screen
->
GetMode
(
&
disp_mode
);
refresh
=
(
disp_mode
.
timing
.
pixel_clock
*
1000
)
/
((
disp_mode
.
timing
.
h_total
)
*
(
disp_mode
.
timing
.
v_total
));
if
(
!
(
refresh
==
oldrefresh
))
{
printf
(
"
\n
New refreshrate is %d:Hz
\n
"
,
refresh
);
oldrefresh
=
refresh
;
if
(
refresh
<
61
)
{
printf
(
"Enabling retrace sync.
\n
"
);
}
else
{
printf
(
"Disabling retrace sync.
\n
"
);
}
}
VideoWindow
*
p_win
;
p_win
=
(
VideoWindow
*
)
data
;
if
(
p_win
->
voutWindow
->
LockLooper
()
)
{
//rudolf: sync:
if
(
refresh
<
61
)
{
screen
->
WaitForRetrace
(
22000
);
//set timeout for < 45 Hz...
}
p_win
->
view
->
DrawBitmap
(
p_win
->
bitmap
[
p_win
->
i_buffer
],
p_win
->
bitmap
[
p_win
->
i_buffer
]
->
Bounds
(),
p_win
->
voutWindow
->
Bounds
()
);
p_win
->
voutWindow
->
UnlockLooper
();
}
return
B_OK
;
}
/*****************************************************************************
...
...
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