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
bf35f491
Commit
bf35f491
authored
Jan 25, 2008
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Core changes needed to add asa support. By equinox, part of Google
Summer of Code 2007
parent
e96eb744
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
include/vlc_vout.h
include/vlc_vout.h
+4
-0
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+24
-1
No files found.
include/vlc_vout.h
View file @
bf35f491
...
...
@@ -284,6 +284,10 @@ struct subpicture_t
video_format_t
*
,
picture_t
*
);
void
(
*
pf_destroy_region
)
(
vlc_object_t
*
,
subpicture_region_t
*
);
void
(
*
pf_pre_render
)
(
video_format_t
*
,
spu_t
*
,
subpicture_t
*
,
mtime_t
);
subpicture_region_t
*
(
*
pf_update_regions
)
(
video_format_t
*
,
spu_t
*
,
subpicture_t
*
,
mtime_t
);
/** Private data - the subtitle plugin might want to put stuff here to
* keep track of the subpicture */
subpicture_sys_t
*
p_sys
;
/* subpicture data */
...
...
src/video_output/vout_subpictures.c
View file @
bf35f491
...
...
@@ -519,10 +519,21 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
{
int
i_source_video_width
;
int
i_source_video_height
;
subpicture_t
*
p_subpic_v
=
p_subpic
;
/* Get lock */
vlc_mutex_lock
(
&
p_spu
->
subpicture_lock
);
for
(
p_subpic_v
=
p_subpic
;
p_subpic_v
!=
NULL
&&
p_subpic_v
->
i_status
!=
FREE_SUBPICTURE
;
p_subpic_v
=
p_subpic_v
->
p_next
)
{
if
(
p_subpic_v
->
pf_pre_render
)
{
p_subpic_v
->
pf_pre_render
(
p_fmt
,
p_spu
,
p_subpic_v
,
mdate
()
);
}
}
if
(
i_scale_width_orig
<=
0
)
i_scale_width_orig
=
1
;
if
(
i_scale_height_orig
<=
0
)
...
...
@@ -534,7 +545,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
/* Check i_status again to make sure spudec hasn't destroyed the subpic */
while
(
(
p_subpic
!=
NULL
)
&&
(
p_subpic
->
i_status
!=
FREE_SUBPICTURE
)
)
{
subpicture_region_t
*
p_region
=
p_subpic
->
p_region
;
subpicture_region_t
*
p_region
;
int
pi_scale_width
[
SCALE_SIZE
];
int
pi_scale_height
[
SCALE_SIZE
];
int
pi_subpic_x
[
SCALE_SIZE
];
...
...
@@ -554,6 +565,18 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
for
(
k
=
0
;
k
<
SCALE_SIZE
;
k
++
)
pi_subpic_x
[
k
]
=
p_subpic
->
i_x
;
if
(
p_subpic
->
pf_update_regions
)
{
if
(
p_subpic
->
p_region
)
{
spu_DestroyRegion
(
p_spu
,
p_subpic
->
p_region
);
}
p_subpic
->
p_region
=
p_region
=
p_subpic
->
pf_update_regions
(
p_fmt
,
p_spu
,
p_subpic
,
mdate
()
);
}
else
{
p_region
=
p_subpic
->
p_region
;
}
/* Load the blending module */
if
(
!
p_spu
->
p_blend
&&
p_region
)
{
...
...
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