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
da6f0208
Commit
da6f0208
authored
Dec 19, 2000
by
Pierre Baillet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed the ratio/position problem in YUV, now patching Stable.
parent
7effc0f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
include/video_output.h
include/video_output.h
+1
-0
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+8
-8
src/video_output/video_output.c
src/video_output/video_output.c
+6
-0
No files found.
include/video_output.h
View file @
da6f0208
...
...
@@ -185,6 +185,7 @@ typedef struct vout_thread_s
boolean_t
b_scale
;
/* allow picture scaling */
mtime_t
render_time
;
/* last picture render time */
/* Idle screens management */
mtime_t
last_display_date
;
/* last non idle display date */
mtime_t
last_idle_date
;
/* last idle display date */
...
...
plugins/sdl/vout_sdl.c
View file @
da6f0208
...
...
@@ -233,8 +233,8 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
SDL_YV12_OVERLAY
,
p_vout
->
p_sys
->
p_display
);
intf_Msg
(
"[YUV acceleration] : %d
\n
"
,
p_vout
->
p_sys
->
p_overlay
->
hw_overlay
);
intf_Msg
(
"[YUV acceleration] : %d
,
\n
"
,
p_vout
->
p_sys
->
p_overlay
->
hw_overlay
);
}
SDL_LockYUVOverlay
(
p_vout
->
p_sys
->
p_overlay
);
...
...
@@ -254,12 +254,12 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
p_vout
->
p_rendered_pic
->
p_u
,
p_vout
->
p_sys
->
p_overlay
->
h
*
p_vout
->
p_sys
->
p_overlay
->
pitches
[
2
]
/
2
);
disp
.
x
=
0
;
disp
.
y
=
0
;
disp
.
w
=
p_vout
->
i_width
;
disp
.
h
=
p_vout
->
i_height
;
disp
.
w
=
(
&
p_vout
->
p_buffer
[
p_vout
->
i_buffer_index
])
->
i_pic_width
;
disp
.
h
=
(
&
p_vout
->
p_buffer
[
p_vout
->
i_buffer_index
])
->
i_pic_height
;
disp
.
x
=
(
p_vout
->
i_width
-
disp
.
w
)
/
2
;
disp
.
y
=
(
p_vout
->
i_height
-
disp
.
h
)
/
2
;
SDL_DisplayYUVOverlay
(
p_vout
->
p_sys
->
p_overlay
,
&
disp
);
SDL_UnlockYUVOverlay
(
p_vout
->
p_sys
->
p_overlay
);
}
...
...
src/video_output/video_output.c
View file @
da6f0208
...
...
@@ -1069,6 +1069,9 @@ static void RunThread( vout_thread_t *p_vout)
b_display
=
p_vout
->
b_active
;
p_vout
->
last_display_date
=
display_date
;
p_vout
->
p_rendered_pic
=
p_pic
;
/* FIXME: if b_need_render == 0 we need to do something with
* the subpictures one day. */
...
...
@@ -1571,6 +1574,7 @@ static void SetBufferPicture( vout_thread_t *p_vout, picture_t *p_pic )
/* Set picture position */
i_pic_x
=
(
p_vout
->
i_width
-
i_pic_width
)
/
2
;
i_pic_y
=
(
p_vout
->
i_height
-
i_pic_height
)
/
2
;
}
else
{
...
...
@@ -1670,7 +1674,9 @@ static void RenderPicture( vout_thread_t *p_vout, picture_t *p_pic )
#ifdef DEBUG_VOUT
render_time
=
mdate
();
#endif
/*
* Choose appropriate rendering function and render picture
*/
...
...
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