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
7c73eafc
Commit
7c73eafc
authored
Sep 17, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed picture cache creation.
parent
894f901f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+18
-20
No files found.
src/video_output/vout_subpictures.c
View file @
7c73eafc
...
...
@@ -790,18 +790,10 @@ static void SpuRenderRegion( spu_t *p_spu,
p_scale
->
fmt_in
.
video
=
p_region
->
fmt
;
p_scale
->
fmt_out
.
video
=
p_region
->
fmt
;
p_region
->
p_cache
=
p_subpic
->
pf_create_region
(
VLC_OBJECT
(
p_spu
),
&
p_scale
->
fmt_out
.
video
);
p_region
->
p_cache
->
p_next
=
p_region
->
p_next
;
if
(
p_scale
->
fmt_out
.
video
.
p_palette
)
*
p_scale
->
fmt_out
.
video
.
p_palette
=
*
p_region
->
fmt
.
p_palette
;
vout_CopyPicture
(
p_spu
,
&
p_region
->
p_cache
->
picture
,
&
p_region
->
picture
);
p_scale
->
fmt_out
.
video
.
i_width
=
i_dst_width
;
p_scale
->
fmt_out
.
video
.
i_height
=
i_dst_height
;
...
...
@@ -810,29 +802,36 @@ static void SpuRenderRegion( spu_t *p_spu,
p_scale
->
fmt_out
.
video
.
i_visible_height
=
spu_scale_h
(
p_region
->
fmt
.
i_visible_height
,
scale_size
);
p_region
->
p_cache
->
fmt
=
p_scale
->
fmt_out
.
video
;
p_region
->
p_cache
->
i_x
=
spu_scale_w
(
p_region
->
i_x
,
scale_size
);
p_region
->
p_cache
->
i_y
=
spu_scale_h
(
p_region
->
i_y
,
scale_size
);
p_region
->
p_cache
->
i_align
=
p_region
->
i_align
;
p_region
->
p_cache
->
i_alpha
=
p_region
->
i_alpha
;
p_region
->
p_cache
=
p_subpic
->
pf_create_region
(
VLC_OBJECT
(
p_spu
),
&
p_scale
->
fmt_out
.
video
);
p_pic
=
NULL
;
if
(
p_scale
->
p_module
)
p_pic
=
p_scale
->
pf_video_filter
(
p_scale
,
&
p_region
->
p_cache
->
picture
);
else
msg_Err
(
p_spu
,
"scaling failed (module not loaded)"
);
{
picture_t
picture
=
p_region
->
picture
;
picture
.
pf_release
=
NULL
;
/* That's an ugly hack */
p_pic
=
p_scale
->
pf_video_filter
(
p_scale
,
&
picture
);
}
if
(
p_pic
)
{
p_region
->
p_cache
->
picture
=
*
p_pic
;
free
(
p_pic
);
picture_Copy
(
&
p_region
->
p_cache
->
picture
,
p_pic
);
picture_Release
(
p_pic
);
p_region
->
p_cache
->
fmt
=
p_scale
->
fmt_out
.
video
;
p_region
->
p_cache
->
i_x
=
spu_scale_w
(
p_region
->
i_x
,
scale_size
);
p_region
->
p_cache
->
i_y
=
spu_scale_h
(
p_region
->
i_y
,
scale_size
);
p_region
->
p_cache
->
i_align
=
p_region
->
i_align
;
p_region
->
p_cache
->
i_alpha
=
p_region
->
i_alpha
;
}
else
{
msg_Err
(
p_spu
,
"scaling failed (module not loaded)"
);
p_subpic
->
pf_destroy_region
(
VLC_OBJECT
(
p_spu
),
p_region
->
p_cache
);
p_region
->
p_cache
=
NULL
;
}
}
/* And use the scaled picture */
...
...
@@ -970,7 +969,6 @@ void spu_RenderSubpictures( spu_t *p_spu,
return
;
}
/* */
for
(
p_subpic
=
p_subpic_list
;
p_subpic
!=
NULL
&&
p_subpic
->
i_status
!=
FREE_SUBPICTURE
;
/* Check again status (as we where unlocked) */
...
...
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