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
9c069bf7
Commit
9c069bf7
authored
Oct 24, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/hapdec: Use correct no-transparency colour space.
Reviewed-by: Tom Butterworth
parent
e06ef9aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hapdec.c
libavcodec/hapdec.c
+3
-3
No files found.
libavcodec/hapdec.c
View file @
9c069bf7
...
...
@@ -383,9 +383,6 @@ static av_cold int hap_init(AVCodecContext *avctx)
avctx
->
coded_width
=
FFALIGN
(
avctx
->
width
,
TEXTURE_BLOCK_W
);
avctx
->
coded_height
=
FFALIGN
(
avctx
->
height
,
TEXTURE_BLOCK_H
);
/* Technically only one mode has alpha, but 32 bits are easier to handle */
avctx
->
pix_fmt
=
AV_PIX_FMT_RGBA
;
ff_texturedsp_init
(
&
ctx
->
dxtc
);
switch
(
avctx
->
codec_tag
)
{
...
...
@@ -393,16 +390,19 @@ static av_cold int hap_init(AVCodecContext *avctx)
texture_name
=
"DXT1"
;
ctx
->
tex_rat
=
8
;
ctx
->
tex_fun
=
ctx
->
dxtc
.
dxt1_block
;
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB0
;
break
;
case
MKTAG
(
'H'
,
'a'
,
'p'
,
'5'
):
texture_name
=
"DXT5"
;
ctx
->
tex_rat
=
16
;
ctx
->
tex_fun
=
ctx
->
dxtc
.
dxt5_block
;
avctx
->
pix_fmt
=
AV_PIX_FMT_RGBA
;
break
;
case
MKTAG
(
'H'
,
'a'
,
'p'
,
'Y'
):
texture_name
=
"DXT5-YCoCg-scaled"
;
ctx
->
tex_rat
=
16
;
ctx
->
tex_fun
=
ctx
->
dxtc
.
dxt5ys_block
;
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB0
;
break
;
default:
return
AVERROR_DECODER_NOT_FOUND
;
...
...
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