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
3f38d68d
Commit
3f38d68d
authored
Apr 03, 2014
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SVG decoder: Use alpha channel.
parent
0df73ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/codec/svg.c
modules/codec/svg.c
+4
-2
No files found.
modules/codec/svg.c
View file @
3f38d68d
...
...
@@ -107,7 +107,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Set output properties */
p_dec
->
fmt_out
.
i_cat
=
VIDEO_ES
;
p_dec
->
fmt_out
.
i_codec
=
VLC_CODEC_
RGB32
;
p_dec
->
fmt_out
.
i_codec
=
VLC_CODEC_
BGRA
;
/* Set callbacks */
p_dec
->
pf_decode_video
=
DecodeBlock
;
...
...
@@ -179,7 +179,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
}
p_dec
->
fmt_out
.
video
.
i_chroma
=
VLC_CODEC_RGB32
;
p_dec
->
fmt_out
.
i_codec
=
p_dec
->
fmt_out
.
video
.
i_chroma
=
VLC_CODEC_BGRA
;
p_dec
->
fmt_out
.
video
.
i_width
=
i_width
;
p_dec
->
fmt_out
.
video
.
i_height
=
i_height
;
p_dec
->
fmt_out
.
video
.
i_visible_width
=
i_width
;
...
...
@@ -200,6 +201,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
* stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, dim.width);
* Use the stride from VLC its picture_t::p[0].i_pitch, which is correct.
*/
memset
(
p_pic
->
p
[
0
].
p_pixels
,
0
,
p_pic
->
p
[
0
].
i_pitch
*
p_pic
->
p
[
0
].
i_lines
);
surface
=
cairo_image_surface_create_for_data
(
p_pic
->
p
->
p_pixels
,
CAIRO_FORMAT_ARGB32
,
i_width
,
i_height
,
...
...
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