Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7004ac5e
Commit
7004ac5e
authored
Aug 05, 2017
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: add support for displaying rgb images with alpha
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
493f637d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffplay.c
ffplay.c
+2
-1
No files found.
ffplay.c
View file @
7004ac5e
...
...
@@ -957,7 +957,8 @@ static void video_image_display(VideoState *is)
if
(
!
vp
->
uploaded
)
{
int
sdl_pix_fmt
=
vp
->
frame
->
format
==
AV_PIX_FMT_YUV420P
?
SDL_PIXELFORMAT_YV12
:
SDL_PIXELFORMAT_ARGB8888
;
if
(
realloc_texture
(
&
is
->
vid_texture
,
sdl_pix_fmt
,
vp
->
frame
->
width
,
vp
->
frame
->
height
,
SDL_BLENDMODE_NONE
,
0
)
<
0
)
SDL_BlendMode
sdl_blendmode
=
vp
->
frame
->
format
==
AV_PIX_FMT_YUV420P
?
SDL_BLENDMODE_NONE
:
SDL_BLENDMODE_BLEND
;
if
(
realloc_texture
(
&
is
->
vid_texture
,
sdl_pix_fmt
,
vp
->
frame
->
width
,
vp
->
frame
->
height
,
sdl_blendmode
,
0
)
<
0
)
return
;
if
(
upload_texture
(
is
->
vid_texture
,
vp
->
frame
,
&
is
->
img_convert_ctx
)
<
0
)
return
;
...
...
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