Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1dfbc608
Commit
1dfbc608
authored
Dec 19, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* The SDL plugin now says whether we are using software or hardware YUV in its window title.
parent
267c36f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+17
-12
No files found.
plugins/sdl/vout_sdl.c
View file @
1dfbc608
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_sdl.c: SDL video output display method
* vout_sdl.c: SDL video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: vout_sdl.c,v 1.67.2.
1 2001/12/18 00:51:19
sam Exp $
* $Id: vout_sdl.c,v 1.67.2.
2 2001/12/19 01:08:21
sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
* Pierre Baillet <oct@zoy.org>
...
@@ -247,28 +247,35 @@ static int vout_Create( vout_thread_t *p_vout )
...
@@ -247,28 +247,35 @@ static int vout_Create( vout_thread_t *p_vout )
*****************************************************************************/
*****************************************************************************/
static
int
vout_Init
(
vout_thread_t
*
p_vout
)
static
int
vout_Init
(
vout_thread_t
*
p_vout
)
{
{
/* This hack is hugly, but hey, you are, too. */
/* This hack is ugly, but hey, you are, too. */
SDL_Overlay
*
p_overlay
;
SDL_Overlay
*
p_overlay
;
char
*
psz_title
;
p_overlay
=
SDL_CreateYUVOverlay
(
p_overlay
=
SDL_CreateYUVOverlay
(
main_GetIntVariable
(
VOUT_WIDTH_VAR
,
VOUT_WIDTH_DEFAULT
),
main_GetIntVariable
(
VOUT_WIDTH_VAR
,
VOUT_WIDTH_DEFAULT
),
main_GetIntVariable
(
VOUT_HEIGHT_VAR
,
VOUT_HEIGHT_DEFAULT
),
main_GetIntVariable
(
VOUT_HEIGHT_VAR
,
VOUT_HEIGHT_DEFAULT
),
SDL_YV12_OVERLAY
,
SDL_YV12_OVERLAY
,
p_vout
->
p_sys
->
p_display
);
p_vout
->
p_sys
->
p_display
);
if
(
p_overlay
==
NULL
)
if
(
p_overlay
==
NULL
)
{
{
intf_ErrMsg
(
"vout error: could not create SDL overlay"
);
intf_ErrMsg
(
"vout error: could not create SDL overlay"
);
p_vout
->
b_need_render
=
1
;
p_vout
->
b_need_render
=
1
;
return
(
0
);
psz_title
=
VOUT_TITLE
" (RGB SDL output)"
;
}
}
else
{
p_vout
->
b_need_render
=
!
p_overlay
->
hw_overlay
;
psz_title
=
p_overlay
->
hw_overlay
?
VOUT_TITLE
" (hardware SDL output)"
:
VOUT_TITLE
" (software SDL output)"
;
intf_WarnMsg
(
2
,
"vout: YUV acceleration %s"
,
SDL_FreeYUVOverlay
(
p_overlay
);
p_overlay
->
hw_overlay
?
"activated"
:
"unavailable !"
);
}
p_vout
->
b_need_render
=
!
p_overlay
->
hw_overlay
;
SDL_
FreeYUVOverlay
(
p_overlay
);
SDL_
WM_SetCaption
(
psz_title
,
psz_title
);
return
(
0
);
return
(
0
);
}
}
...
@@ -698,8 +705,6 @@ static int SDLOpenDisplay( vout_thread_t *p_vout )
...
@@ -698,8 +705,6 @@ static int SDLOpenDisplay( vout_thread_t *p_vout )
SDL_LockSurface
(
p_vout
->
p_sys
->
p_display
);
SDL_LockSurface
(
p_vout
->
p_sys
->
p_display
);
SDL_WM_SetCaption
(
VOUT_TITLE
" (SDL output)"
,
VOUT_TITLE
" (SDL output)"
);
SDL_EventState
(
SDL_KEYUP
,
SDL_IGNORE
);
/* ignore keys up */
SDL_EventState
(
SDL_KEYUP
,
SDL_IGNORE
);
/* ignore keys up */
if
(
p_vout
->
b_need_render
)
if
(
p_vout
->
b_need_render
)
...
...
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