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
3d879279
Commit
3d879279
authored
Jan 16, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/huffyuv: add YUVA{420,422,444}P{9,10} support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ef028212
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
huffyuvdec.c
libavcodec/huffyuvdec.c
+15
-0
huffyuvenc.c
libavcodec/huffyuvenc.c
+9
-0
No files found.
libavcodec/huffyuvdec.c
View file @
3d879279
...
@@ -441,12 +441,27 @@ static av_cold int decode_init(AVCodecContext *avctx)
...
@@ -441,12 +441,27 @@ static av_cold int decode_init(AVCodecContext *avctx)
case
0x770
:
case
0x770
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA444P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA444P
;
break
;
break
;
case
0x780
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA444P9
;
break
;
case
0x790
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA444P10
;
break
;
case
0x771
:
case
0x771
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA422P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA422P
;
break
;
break
;
case
0x781
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA422P9
;
break
;
case
0x791
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA422P10
;
break
;
case
0x775
:
case
0x775
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P
;
break
;
break
;
case
0x785
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P9
;
break
;
case
0x795
:
case
0x795
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P10
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P10
;
break
;
break
;
...
...
libavcodec/huffyuvenc.c
View file @
3d879279
...
@@ -264,6 +264,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
...
@@ -264,6 +264,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
case
AV_PIX_FMT_YUV444P10
:
case
AV_PIX_FMT_YUV444P10
:
case
AV_PIX_FMT_YUV444P12
:
case
AV_PIX_FMT_YUV444P12
:
case
AV_PIX_FMT_YUV444P14
:
case
AV_PIX_FMT_YUV444P14
:
case
AV_PIX_FMT_YUVA420P9
:
case
AV_PIX_FMT_YUVA420P10
:
case
AV_PIX_FMT_YUVA422P9
:
case
AV_PIX_FMT_YUVA422P10
:
case
AV_PIX_FMT_YUVA444P9
:
case
AV_PIX_FMT_YUVA444P10
:
s
->
version
=
3
;
s
->
version
=
3
;
break
;
break
;
case
AV_PIX_FMT_RGB32
:
case
AV_PIX_FMT_RGB32
:
...
@@ -962,6 +968,9 @@ AVCodec ff_ffvhuff_encoder = {
...
@@ -962,6 +968,9 @@ AVCodec ff_ffvhuff_encoder = {
AV_PIX_FMT_YUV420P9
,
AV_PIX_FMT_YUV420P10
,
AV_PIX_FMT_YUV420P12
,
AV_PIX_FMT_YUV420P14
,
AV_PIX_FMT_YUV420P9
,
AV_PIX_FMT_YUV420P10
,
AV_PIX_FMT_YUV420P12
,
AV_PIX_FMT_YUV420P14
,
AV_PIX_FMT_YUV422P9
,
AV_PIX_FMT_YUV422P10
,
AV_PIX_FMT_YUV422P12
,
AV_PIX_FMT_YUV422P14
,
AV_PIX_FMT_YUV422P9
,
AV_PIX_FMT_YUV422P10
,
AV_PIX_FMT_YUV422P12
,
AV_PIX_FMT_YUV422P14
,
AV_PIX_FMT_YUV444P9
,
AV_PIX_FMT_YUV444P10
,
AV_PIX_FMT_YUV444P12
,
AV_PIX_FMT_YUV444P14
,
AV_PIX_FMT_YUV444P9
,
AV_PIX_FMT_YUV444P10
,
AV_PIX_FMT_YUV444P12
,
AV_PIX_FMT_YUV444P14
,
AV_PIX_FMT_YUVA420P9
,
AV_PIX_FMT_YUVA420P10
,
AV_PIX_FMT_YUVA422P9
,
AV_PIX_FMT_YUVA422P10
,
AV_PIX_FMT_YUVA444P9
,
AV_PIX_FMT_YUVA444P10
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGB32
,
AV_PIX_FMT_NONE
AV_PIX_FMT_RGB32
,
AV_PIX_FMT_NONE
},
},
...
...
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