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
1e7943c3
Commit
1e7943c3
authored
Jun 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow: yuv410 support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fba18ef8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
snowdec.c
libavcodec/snowdec.c
+2
-0
snowenc.c
libavcodec/snowenc.c
+1
-1
No files found.
libavcodec/snowdec.c
View file @
1e7943c3
...
@@ -295,6 +295,8 @@ static int decode_header(SnowContext *s){
...
@@ -295,6 +295,8 @@ static int decode_header(SnowContext *s){
s
->
avctx
->
pix_fmt
=
PIX_FMT_YUV420P
;
s
->
avctx
->
pix_fmt
=
PIX_FMT_YUV420P
;
}
else
if
(
s
->
chroma_h_shift
==
0
&&
s
->
chroma_v_shift
==
0
){
}
else
if
(
s
->
chroma_h_shift
==
0
&&
s
->
chroma_v_shift
==
0
){
s
->
avctx
->
pix_fmt
=
PIX_FMT_YUV444P
;
s
->
avctx
->
pix_fmt
=
PIX_FMT_YUV444P
;
}
else
if
(
s
->
chroma_h_shift
==
2
&&
s
->
chroma_v_shift
==
2
){
s
->
avctx
->
pix_fmt
=
PIX_FMT_YUV410P
;
}
else
{
}
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"unsupported color subsample mode %d %d
\n
"
,
s
->
chroma_h_shift
,
s
->
chroma_v_shift
);
av_log
(
s
,
AV_LOG_ERROR
,
"unsupported color subsample mode %d %d
\n
"
,
s
->
chroma_h_shift
,
s
->
chroma_v_shift
);
s
->
chroma_h_shift
=
s
->
chroma_v_shift
=
1
;
s
->
chroma_h_shift
=
s
->
chroma_v_shift
=
1
;
...
...
libavcodec/snowenc.c
View file @
1e7943c3
...
@@ -220,7 +220,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
...
@@ -220,7 +220,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
case
PIX_FMT_YUV420P
:
case
PIX_FMT_YUV420P
:
// case PIX_FMT_GRAY8:
// case PIX_FMT_GRAY8:
// case PIX_FMT_YUV411P:
// case PIX_FMT_YUV411P:
//
case PIX_FMT_YUV410P:
case
PIX_FMT_YUV410P
:
s
->
colorspace_type
=
0
;
s
->
colorspace_type
=
0
;
break
;
break
;
/* case PIX_FMT_RGB32:
/* case PIX_FMT_RGB32:
...
...
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