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
5d96d841
Commit
5d96d841
authored
Sep 16, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
e991ef5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+6
-7
No files found.
src/video_output/vout_subpictures.c
View file @
5d96d841
...
...
@@ -671,10 +671,6 @@ static spu_scale_t spu_scale_create( int w, int h )
s
.
h
=
SCALE_UNIT
;
return
s
;
}
static
spu_scale_t
spu_scale_unit
(
void
)
{
return
spu_scale_create
(
SCALE_UNIT
,
SCALE_UNIT
);
}
static
spu_scale_t
spu_scale_createq
(
int
wn
,
int
wd
,
int
hn
,
int
hd
)
{
return
spu_scale_create
(
wn
*
SCALE_UNIT
/
wd
,
...
...
@@ -793,9 +789,7 @@ static void SpuRenderRegion( spu_t *p_spu,
p_scale
=
p_spu
->
p_scale
;
if
(
p_scale
&&
(
(
scale_size
.
w
>
0
&&
scale_size
.
w
!=
SCALE_UNIT
)
||
(
scale_size
.
h
>
0
&&
scale_size
.
h
!=
SCALE_UNIT
)
||
(
b_force_palette
)
)
)
(
scale_size
.
w
!=
SCALE_UNIT
||
scale_size
.
h
!=
SCALE_UNIT
||
b_force_palette
)
)
{
const
unsigned
i_dst_width
=
spu_scale_w
(
p_region
->
fmt
.
i_width
,
scale_size
);
const
unsigned
i_dst_height
=
spu_scale_h
(
p_region
->
fmt
.
i_height
,
scale_size
);
...
...
@@ -1119,6 +1113,11 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt_a,
/* Render all regions */
for
(
p_region
=
p_subpic
->
p_region
;
p_region
!=
NULL
;
p_region
=
p_region
->
p_next
)
{
/* Check scale validity */
if
(
scale
.
w
<=
0
||
scale
.
h
<=
0
)
continue
;
/* */
SpuRenderRegion
(
p_spu
,
p_pic_dst
,
p_subpic
,
p_region
,
scale
,
p_fmt
);
}
...
...
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