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
ef028212
Commit
ef028212
authored
Jan 16, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/huffyuv: add YUV{420,422,444}P{9,10,12,14} support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b53aab1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
huffyuvdec.c
libavcodec/huffyuvdec.c
+33
-0
huffyuvenc.c
libavcodec/huffyuvenc.c
+14
-1
No files found.
libavcodec/huffyuvdec.c
View file @
ef028212
...
...
@@ -387,9 +387,33 @@ static av_cold int decode_init(AVCodecContext *avctx)
case
0x670
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
break
;
case
0x680
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P9
;
break
;
case
0x690
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P10
;
break
;
case
0x6B0
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P12
;
break
;
case
0x6D0
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P14
;
break
;
case
0x671
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P
;
break
;
case
0x681
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P9
;
break
;
case
0x691
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P10
;
break
;
case
0x6B1
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P12
;
break
;
case
0x6D1
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P14
;
break
;
case
0x672
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV411P
;
break
;
...
...
@@ -399,9 +423,18 @@ static av_cold int decode_init(AVCodecContext *avctx)
case
0x675
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P
;
break
;
case
0x685
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P9
;
break
;
case
0x695
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P10
;
break
;
case
0x6B5
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P12
;
break
;
case
0x6D5
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P14
;
break
;
case
0x67A
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV410P
;
break
;
...
...
libavcodec/huffyuvenc.c
View file @
ef028212
...
...
@@ -252,7 +252,18 @@ static av_cold int encode_init(AVCodecContext *avctx)
case
AV_PIX_FMT_YUVA422P
:
case
AV_PIX_FMT_GBRAP
:
case
AV_PIX_FMT_GRAY8A
:
case
AV_PIX_FMT_YUV420P9
:
case
AV_PIX_FMT_YUV420P10
:
case
AV_PIX_FMT_YUV420P12
:
case
AV_PIX_FMT_YUV420P14
:
case
AV_PIX_FMT_YUV422P9
:
case
AV_PIX_FMT_YUV422P10
:
case
AV_PIX_FMT_YUV422P12
:
case
AV_PIX_FMT_YUV422P14
:
case
AV_PIX_FMT_YUV444P9
:
case
AV_PIX_FMT_YUV444P10
:
case
AV_PIX_FMT_YUV444P12
:
case
AV_PIX_FMT_YUV444P14
:
s
->
version
=
3
;
break
;
case
AV_PIX_FMT_RGB32
:
...
...
@@ -948,7 +959,9 @@ AVCodec ff_ffvhuff_encoder = {
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_GBRAP
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_YUV420P10
,
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_YUV444P9
,
AV_PIX_FMT_YUV444P10
,
AV_PIX_FMT_YUV444P12
,
AV_PIX_FMT_YUV444P14
,
AV_PIX_FMT_RGB24
,
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