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
b72db57c
Commit
b72db57c
authored
Oct 03, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(zvbi) forward port telx transparency from 1.0.0-git
parent
3cbf6d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/codec/zvbi.c
modules/codec/zvbi.c
+7
-6
No files found.
modules/codec/zvbi.c
View file @
b72db57c
...
...
@@ -535,26 +535,27 @@ static int OpaquePage( picture_t *p_src, const vbi_page p_page,
for
(
x
=
0
;
x
<
fmt
.
i_width
;
x
++
)
{
const
vbi_opacity
opacity
=
p_page
.
text
[
y
/
10
*
p_page
.
columns
+
x
/
12
].
opacity
;
const
int
background
=
p_page
.
text
[
y
/
10
*
p_page
.
columns
+
x
/
12
].
background
;
uint32_t
*
p_pixel
=
(
uint32_t
*
)
&
p_src
->
p
->
p_pixels
[
y
*
p_src
->
p
->
i_pitch
+
4
*
x
];
switch
(
opacity
)
{
/* Show video instead of this character */
case
VBI_TRANSPARENT_SPACE
:
*
p_pixel
=
0
;
break
;
/* Display foreground and background color */
/* To make the boxed text "closed captioning" transparent
* change true to false.
*/
case
VBI_OPAQUE
:
/* alpha blend video into background color */
case
VBI_SEMI_TRANSPARENT
:
if
(
b_opaque
)
break
;
/* Full text transparency. only foreground color is show */
case
VBI_TRANSPARENT_FULL
:
*
p_pixel
=
0
;
break
;
/* Transparency for boxed text */
case
VBI_
SEMI_TRANSPARENT
:
if
(
(
*
p_pixel
)
==
0xff000000
&&
0
)
/* Disabled until someone implement borders */
case
VBI_
TRANSPARENT_FULL
:
if
(
(
*
p_pixel
)
==
(
0xff000000
|
p_page
.
color_map
[
background
]
)
)
*
p_pixel
=
0
;
break
;
}
...
...
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