Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2fa8522f
Commit
2fa8522f
authored
May 13, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbosd: fix compilation with the changes of text_style_*
parent
b65308f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
modules/gui/fbosd.c
modules/gui/fbosd.c
+10
-12
No files found.
modules/gui/fbosd.c
View file @
2fa8522f
...
@@ -234,7 +234,7 @@ struct fbosd_render_t
...
@@ -234,7 +234,7 @@ struct fbosd_render_t
int
i_state
;
int
i_state
;
/* Font style */
/* Font style */
text_style_t
text_style
;
/* font control */
text_style_t
*
p_text_style
;
/* font control */
char
*
psz_string
;
char
*
psz_string
;
/* Position */
/* Position */
...
@@ -394,10 +394,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -394,10 +394,7 @@ static int Create( vlc_object_t *p_this )
var_AddCallback
(
p_intf
,
"fbosd-font-opacity"
,
OverlayCallback
,
NULL
);
var_AddCallback
(
p_intf
,
"fbosd-font-opacity"
,
OverlayCallback
,
NULL
);
for
(
i
=
0
;
i
<
FBOSD_RENDER_MAX
;
i
++
)
for
(
i
=
0
;
i
<
FBOSD_RENDER_MAX
;
i
++
)
{
p_sys
->
render
[
i
].
p_text_style
=
text_style_New
();
vlc_memcpy
(
&
p_sys
->
render
[
i
].
text_style
,
&
default_text_style
,
sizeof
(
text_style_t
)
);
}
p_sys
->
b_clear
=
var_CreateGetBoolCommand
(
p_intf
,
"fbosd-clear"
);
p_sys
->
b_clear
=
var_CreateGetBoolCommand
(
p_intf
,
"fbosd-clear"
);
p_sys
->
b_render
=
var_CreateGetBoolCommand
(
p_intf
,
"fbosd-render"
);
p_sys
->
b_render
=
var_CreateGetBoolCommand
(
p_intf
,
"fbosd-render"
);
...
@@ -507,6 +504,7 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -507,6 +504,7 @@ static void Destroy( vlc_object_t *p_this )
{
{
free
(
p_sys
->
render
[
i
].
psz_string
);
free
(
p_sys
->
render
[
i
].
psz_string
);
p_sys
->
render
[
i
].
i_state
=
FBOSD_STATE_FREE
;
p_sys
->
render
[
i
].
i_state
=
FBOSD_STATE_FREE
;
text_style_Delete
(
p_sys
->
render
[
i
].
p_text_style
);
}
}
#if defined(FBOSD_BLENDING)
#if defined(FBOSD_BLENDING)
...
@@ -1193,7 +1191,7 @@ static void Render( intf_thread_t *p_intf, struct fbosd_render_t *render )
...
@@ -1193,7 +1191,7 @@ static void Render( intf_thread_t *p_intf, struct fbosd_render_t *render )
#if defined(FBOSD_BLENDING)
#if defined(FBOSD_BLENDING)
video_format_t
fmt_in
;
video_format_t
fmt_in
;
memset
(
&
fmt_in
,
0
,
sizeof
(
video_format_t
)
);
memset
(
&
fmt_in
,
0
,
sizeof
(
video_format_t
)
);
p_text
=
RenderText
(
p_intf
,
render
->
psz_string
,
&
render
->
text_style
,
p_text
=
RenderText
(
p_intf
,
render
->
psz_string
,
render
->
p_
text_style
,
&
fmt_in
);
&
fmt_in
);
if
(
p_text
)
if
(
p_text
)
{
{
...
@@ -1203,7 +1201,7 @@ static void Render( intf_thread_t *p_intf, struct fbosd_render_t *render )
...
@@ -1203,7 +1201,7 @@ static void Render( intf_thread_t *p_intf, struct fbosd_render_t *render )
DeAllocatePicture
(
p_text
,
&
fmt_in
);
DeAllocatePicture
(
p_text
,
&
fmt_in
);
}
}
#else
#else
p_text
=
RenderText
(
p_intf
,
render
->
psz_string
,
&
render
->
text_style
,
p_text
=
RenderText
(
p_intf
,
render
->
psz_string
,
render
->
p_
text_style
,
&
p_sys
->
fmt_out
);
&
p_sys
->
fmt_out
);
if
(
p_text
)
if
(
p_text
)
{
{
...
@@ -1219,8 +1217,8 @@ static void RenderClear( intf_thread_t *p_intf, struct fbosd_render_t *render )
...
@@ -1219,8 +1217,8 @@ static void RenderClear( intf_thread_t *p_intf, struct fbosd_render_t *render )
{
{
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
vlc_memcpy
(
&
render
->
text_style
,
&
default_text_style
,
text_style_Delete
(
render
->
p_text_style
);
sizeof
(
text_style_t
)
);
render
->
p_text_style
=
text_style_New
(
);
free
(
render
->
psz_string
);
free
(
render
->
psz_string
);
render
->
psz_string
=
NULL
;
render
->
psz_string
=
NULL
;
...
@@ -1398,15 +1396,15 @@ static int OverlayCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1398,15 +1396,15 @@ static int OverlayCallback( vlc_object_t *p_this, char const *psz_cmd,
}
}
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-size"
,
15
)
)
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-size"
,
15
)
)
{
{
p_sys
->
render
[
i
].
text_style
.
i_font_size
=
newval
.
i_int
;
p_sys
->
render
[
i
].
p_text_style
->
i_font_size
=
newval
.
i_int
;
}
}
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-color"
,
16
)
)
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-color"
,
16
)
)
{
{
p_sys
->
render
[
i
].
text_style
.
i_font_color
=
newval
.
i_int
;
p_sys
->
render
[
i
].
p_text_style
->
i_font_color
=
newval
.
i_int
;
}
}
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-opacity"
,
18
)
)
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-font-opacity"
,
18
)
)
{
{
p_sys
->
render
[
i
].
text_style
.
i_font_alpha
=
255
-
newval
.
i_int
;
p_sys
->
render
[
i
].
p_text_style
->
i_font_alpha
=
255
-
newval
.
i_int
;
}
}
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-alpha"
,
11
)
)
else
if
(
!
strncmp
(
psz_cmd
,
"fbosd-alpha"
,
11
)
)
{
{
...
...
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