Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
10c6c8c9
Commit
10c6c8c9
authored
Dec 11, 2000
by
Henri Fallon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Same changes that were made in the stbale branch ( FB_NOYPAN support )
parent
39eb5768
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
include/config.h.in
include/config.h.in
+7
-0
plugins/fb/vout_fb.c
plugins/fb/vout_fb.c
+17
-1
No files found.
include/config.h.in
View file @
10c6c8c9
...
...
@@ -358,6 +358,13 @@
#define VOUT_FB_DEV_VAR "vlc_fb_dev"
#define VOUT_FB_DEV_DEFAULT "/dev/fb0"
/* Some frame buffers aren't able to support double buffering.
* We don't want to lose one frame out of 2, so we may set the
* FB_NOYPAN
*/
// #define FB_NOYPAN
/*****************************************************************************
* Video parser configuration
*****************************************************************************/
...
...
plugins/fb/vout_fb.c
View file @
10c6c8c9
...
...
@@ -174,13 +174,21 @@ int vout_FBManage( vout_thread_t *p_vout )
void
vout_FBDisplay
(
vout_thread_t
*
p_vout
)
{
/* swap the two Y offsets */
#ifdef FB_NOYPAN
/* if the fb doesn't supports ypan, we only use one buffer */
#else
p_vout
->
p_sys
->
var_info
.
yoffset
=
p_vout
->
i_buffer_index
?
p_vout
->
p_sys
->
var_info
.
yres
:
0
;
/* the X offset should be 0, but who knows ...
* some other app might have played with the framebuffer */
p_vout
->
p_sys
->
var_info
.
xoffset
=
0
;
//ioctl( p_vout->p_sys->i_fb_dev, FBIOPUT_VSCREENINFO, &p_vout->p_sys->var_info );
ioctl
(
p_vout
->
p_sys
->
i_fb_dev
,
FBIOPAN_DISPLAY
,
&
p_vout
->
p_sys
->
var_info
);
#endif
}
/*****************************************************************************
...
...
@@ -335,8 +343,16 @@ static int FBOpenDisplay( vout_thread_t *p_vout )
}
/* Set and initialize buffers */
vout_SetBuffers
(
p_vout
,
p_vout
->
p_sys
->
p_video
,
p_vout
->
p_sys
->
p_video
+
p_vout
->
p_sys
->
i_page_size
);
#ifdef FB_NOYPAN
/* If the fb doesn't support ypan */
p_vout
->
p_sys
->
p_video
#else
p_vout
->
p_sys
->
p_video
+
p_vout
->
p_sys
->
i_page_size
#endif
);
intf_DbgMsg
(
"framebuffer type=%d, visual=%d, ypanstep=%d, ywrap=%d, accel=%d
\n
"
,
fix_info
.
type
,
fix_info
.
visual
,
fix_info
.
ypanstep
,
fix_info
.
ywrapstep
,
fix_info
.
accel
);
return
(
0
);
...
...
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