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
0e26bab0
Commit
0e26bab0
authored
Dec 12, 2012
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed scte27.c win32 compilation.
parent
a84e47ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
modules/codec/scte27.c
modules/codec/scte27.c
+15
-15
No files found.
modules/codec/scte27.c
View file @
0e26bab0
...
...
@@ -82,7 +82,7 @@ static scte27_color_t bs_read_color(bs_t *bs)
return
color
;
}
static
inline
void
SetPixel
(
picture_t
*
picture
,
int
x
,
int
y
,
int
value
)
static
inline
void
Set
YUVP
Pixel
(
picture_t
*
picture
,
int
x
,
int
y
,
int
value
)
{
picture
->
p
->
p_pixels
[
y
*
picture
->
p
->
i_pitch
+
x
]
=
value
;
}
...
...
@@ -288,14 +288,14 @@ static subpicture_region_t *DecodeSimpleBitmap(decoder_t *dec,
for
(
int
dy
=
0
;
dy
<=
outline_thickness
;
dy
++
)
{
for
(
int
dx
=
0
;
dx
<=
outline_thickness
;
dx
++
)
{
if
(
circle
[
dy
][
dx
])
{
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
dx
,
by
+
bitmap_ov
+
dy
,
COLOR_OUTLINE
);
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
-
dx
,
by
+
bitmap_ov
+
dy
,
COLOR_OUTLINE
);
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
dx
,
by
+
bitmap_ov
-
dy
,
COLOR_OUTLINE
);
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
-
dx
,
by
+
bitmap_ov
-
dy
,
COLOR_OUTLINE
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
dx
,
by
+
bitmap_ov
+
dy
,
COLOR_OUTLINE
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
-
dx
,
by
+
bitmap_ov
+
dy
,
COLOR_OUTLINE
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
dx
,
by
+
bitmap_ov
-
dy
,
COLOR_OUTLINE
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
-
dx
,
by
+
bitmap_ov
-
dy
,
COLOR_OUTLINE
);
}
}
}
...
...
@@ -306,10 +306,10 @@ static subpicture_region_t *DecodeSimpleBitmap(decoder_t *dec,
for
(
int
by
=
0
;
by
<
bitmap_v
;
by
++
)
{
for
(
int
bx
=
0
;
bx
<
bitmap_h
;
bx
++
)
{
if
(
bitmap
[
by
*
bitmap_h
+
bx
])
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
shadow_right
,
by
+
bitmap_ov
+
shadow_bottom
,
COLOR_SHADOW
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
+
shadow_right
,
by
+
bitmap_ov
+
shadow_bottom
,
COLOR_SHADOW
);
}
}
}
...
...
@@ -318,8 +318,8 @@ static subpicture_region_t *DecodeSimpleBitmap(decoder_t *dec,
for
(
int
by
=
0
;
by
<
bitmap_v
;
by
++
)
{
for
(
int
bx
=
0
;
bx
<
bitmap_h
;
bx
++
)
{
if
(
bitmap
[
by
*
bitmap_h
+
bx
])
SetPixel
(
r
->
p_picture
,
bx
+
bitmap_oh
,
by
+
bitmap_ov
,
COLOR_CHARACTER
);
Set
YUVP
Pixel
(
r
->
p_picture
,
bx
+
bitmap_oh
,
by
+
bitmap_ov
,
COLOR_CHARACTER
);
}
}
free
(
bitmap
);
...
...
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