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
322568c0
Commit
322568c0
authored
Nov 17, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ffv1: Support YUV4xxP12 and GRAY12.
parent
1c7da19a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
ffv1dec.c
libavcodec/ffv1dec.c
+7
-0
ffv1enc.c
libavcodec/ffv1enc.c
+9
-2
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/ffv1dec.c
View file @
322568c0
...
...
@@ -636,6 +636,13 @@ static int read_header(FFV1Context *f)
case
0x10
:
f
->
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA422P10
;
break
;
case
0x11
:
f
->
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVA420P10
;
break
;
}
}
else
if
(
f
->
avctx
->
bits_per_raw_sample
==
12
&&
!
f
->
transparency
)
{
f
->
packed_at_lsb
=
1
;
switch
(
16
*
f
->
chroma_h_shift
+
f
->
chroma_v_shift
)
{
case
0x00
:
f
->
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P12
;
break
;
case
0x10
:
f
->
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P12
;
break
;
case
0x11
:
f
->
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P12
;
break
;
}
}
else
if
(
f
->
avctx
->
bits_per_raw_sample
==
16
&&
!
f
->
transparency
){
f
->
packed_at_lsb
=
1
;
switch
(
16
*
f
->
chroma_h_shift
+
f
->
chroma_v_shift
)
{
...
...
libavcodec/ffv1enc.c
View file @
322568c0
...
...
@@ -580,9 +580,15 @@ FF_ENABLE_DEPRECATION_WARNINGS
case
AV_PIX_FMT_YUVA444P10
:
case
AV_PIX_FMT_YUVA422P10
:
case
AV_PIX_FMT_YUVA420P10
:
s
->
packed_at_lsb
=
1
;
if
(
!
avctx
->
bits_per_raw_sample
&&
!
s
->
bits_per_raw_sample
)
s
->
bits_per_raw_sample
=
10
;
case
AV_PIX_FMT_GRAY12
:
case
AV_PIX_FMT_YUV444P12
:
case
AV_PIX_FMT_YUV420P12
:
case
AV_PIX_FMT_YUV422P12
:
s
->
packed_at_lsb
=
1
;
if
(
!
avctx
->
bits_per_raw_sample
&&
!
s
->
bits_per_raw_sample
)
s
->
bits_per_raw_sample
=
12
;
case
AV_PIX_FMT_GRAY16
:
case
AV_PIX_FMT_YUV444P16
:
case
AV_PIX_FMT_YUV422P16
:
...
...
@@ -1293,13 +1299,14 @@ AVCodec ff_ffv1_encoder = {
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_0RGB32
,
AV_PIX_FMT_RGB32
,
AV_PIX_FMT_YUV420P16
,
AV_PIX_FMT_YUV422P16
,
AV_PIX_FMT_YUV444P16
,
AV_PIX_FMT_YUV444P9
,
AV_PIX_FMT_YUV422P9
,
AV_PIX_FMT_YUV420P9
,
AV_PIX_FMT_YUV420P10
,
AV_PIX_FMT_YUV422P10
,
AV_PIX_FMT_YUV444P10
,
AV_PIX_FMT_YUV420P12
,
AV_PIX_FMT_YUV422P12
,
AV_PIX_FMT_YUV444P12
,
AV_PIX_FMT_YUVA444P16
,
AV_PIX_FMT_YUVA422P16
,
AV_PIX_FMT_YUVA420P16
,
AV_PIX_FMT_YUVA444P10
,
AV_PIX_FMT_YUVA422P10
,
AV_PIX_FMT_YUVA420P10
,
AV_PIX_FMT_YUVA444P9
,
AV_PIX_FMT_YUVA422P9
,
AV_PIX_FMT_YUVA420P9
,
AV_PIX_FMT_GRAY16
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GBRP9
,
AV_PIX_FMT_GBRP10
,
AV_PIX_FMT_GBRP12
,
AV_PIX_FMT_GBRP14
,
AV_PIX_FMT_YA8
,
AV_PIX_FMT_GRAY10
,
AV_PIX_FMT_GRAY10
,
AV_PIX_FMT_GRAY12
,
AV_PIX_FMT_GBRP16
,
AV_PIX_FMT_RGB48
,
AV_PIX_FMT_NONE
...
...
libavcodec/version.h
View file @
322568c0
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 57
#define LIBAVCODEC_VERSION_MINOR 66
#define LIBAVCODEC_VERSION_MICRO 10
5
#define LIBAVCODEC_VERSION_MICRO 10
6
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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