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
f149a4a5
Commit
f149a4a5
authored
Nov 06, 2018
by
Carl Eugen Hoyos
Committed by
James Almer
Nov 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: Add GRAY10
Based on
ab839054
by Luca Barbato. Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
ee3f62a9
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
1 deletion
+18
-1
input.c
libswscale/input.c
+2
-0
swscale_internal.h
libswscale/swscale_internal.h
+2
-0
swscale_unscaled.c
libswscale/swscale_unscaled.c
+1
-0
utils.c
libswscale/utils.c
+2
-0
version.h
libswscale/version.h
+1
-1
filter-pixdesc-gray10be
tests/ref/fate/filter-pixdesc-gray10be
+1
-0
filter-pixdesc-gray10le
tests/ref/fate/filter-pixdesc-gray10le
+1
-0
filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-copy
+2
-0
filter-pixfmts-null
tests/ref/fate/filter-pixfmts-null
+2
-0
filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-scale
+2
-0
filter-pixfmts-vflip
tests/ref/fate/filter-pixfmts-vflip
+2
-0
No files found.
libswscale/input.c
View file @
f149a4a5
...
@@ -1136,6 +1136,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
...
@@ -1136,6 +1136,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_YUV420P16LE
:
case
AV_PIX_FMT_YUV420P16LE
:
case
AV_PIX_FMT_YUV422P16LE
:
case
AV_PIX_FMT_YUV422P16LE
:
case
AV_PIX_FMT_YUV444P16LE
:
case
AV_PIX_FMT_YUV444P16LE
:
case
AV_PIX_FMT_GRAY10LE
:
case
AV_PIX_FMT_GRAY12LE
:
case
AV_PIX_FMT_GRAY12LE
:
case
AV_PIX_FMT_GRAY16LE
:
case
AV_PIX_FMT_GRAY16LE
:
c
->
lumToYV12
=
bswap16Y_c
;
c
->
lumToYV12
=
bswap16Y_c
;
...
@@ -1165,6 +1166,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
...
@@ -1165,6 +1166,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_YUV420P16BE
:
case
AV_PIX_FMT_YUV420P16BE
:
case
AV_PIX_FMT_YUV422P16BE
:
case
AV_PIX_FMT_YUV422P16BE
:
case
AV_PIX_FMT_YUV444P16BE
:
case
AV_PIX_FMT_YUV444P16BE
:
case
AV_PIX_FMT_GRAY10BE
:
case
AV_PIX_FMT_GRAY12BE
:
case
AV_PIX_FMT_GRAY12BE
:
case
AV_PIX_FMT_GRAY16BE
:
case
AV_PIX_FMT_GRAY16BE
:
c
->
lumToYV12
=
bswap16Y_c
;
c
->
lumToYV12
=
bswap16Y_c
;
...
...
libswscale/swscale_internal.h
View file @
f149a4a5
...
@@ -600,6 +600,8 @@ static av_always_inline int isRGB(enum AVPixelFormat pix_fmt)
...
@@ -600,6 +600,8 @@ static av_always_inline int isRGB(enum AVPixelFormat pix_fmt)
#define isGray(x) \
#define isGray(x) \
((x) == AV_PIX_FMT_GRAY8 || \
((x) == AV_PIX_FMT_GRAY8 || \
(x) == AV_PIX_FMT_YA8 || \
(x) == AV_PIX_FMT_YA8 || \
(x) == AV_PIX_FMT_GRAY10BE || \
(x) == AV_PIX_FMT_GRAY10LE || \
(x) == AV_PIX_FMT_GRAY12BE || \
(x) == AV_PIX_FMT_GRAY12BE || \
(x) == AV_PIX_FMT_GRAY12LE || \
(x) == AV_PIX_FMT_GRAY12LE || \
(x) == AV_PIX_FMT_GRAY16BE || \
(x) == AV_PIX_FMT_GRAY16BE || \
...
...
libswscale/swscale_unscaled.c
View file @
f149a4a5
...
@@ -1097,6 +1097,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
...
@@ -1097,6 +1097,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGR555
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGR555
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGR565
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGR565
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGRA64
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGRA64
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY10
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY12
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY12
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY16
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY16
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_YA16
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_YA16
)
||
...
...
libswscale/utils.c
View file @
f149a4a5
...
@@ -108,6 +108,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
...
@@ -108,6 +108,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_RGBA
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGBA
]
=
{
1
,
1
},
[
AV_PIX_FMT_ABGR
]
=
{
1
,
1
},
[
AV_PIX_FMT_ABGR
]
=
{
1
,
1
},
[
AV_PIX_FMT_BGRA
]
=
{
1
,
1
},
[
AV_PIX_FMT_BGRA
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY10BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY10LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY12BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY12BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY12LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY12LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY16BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GRAY16BE
]
=
{
1
,
1
},
...
...
libswscale/version.h
View file @
f149a4a5
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define LIBSWSCALE_VERSION_MAJOR 5
#define LIBSWSCALE_VERSION_MAJOR 5
#define LIBSWSCALE_VERSION_MINOR 0
#define LIBSWSCALE_VERSION_MINOR 0
#define LIBSWSCALE_VERSION_MICRO
0
#define LIBSWSCALE_VERSION_MICRO
1
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \
LIBSWSCALE_VERSION_MINOR, \
...
...
tests/ref/fate/filter-pixdesc-gray10be
0 → 100644
View file @
f149a4a5
pixdesc-gray10be 64bfd85801ed894c86337d2c7a7efaff
tests/ref/fate/filter-pixdesc-gray10le
0 → 100644
View file @
f149a4a5
pixdesc-gray10le c1aa37491db157f32d589e66f020adee
tests/ref/fate/filter-pixfmts-copy
View file @
f149a4a5
...
@@ -25,6 +25,8 @@ gbrp12le 654861b1837d312569395f598da1a2a1
...
@@ -25,6 +25,8 @@ gbrp12le 654861b1837d312569395f598da1a2a1
gbrp9be cbe1bf8ead497a92362a749bd4b0a57e
gbrp9be cbe1bf8ead497a92362a749bd4b0a57e
gbrp9le f88c68df5d699a4a7f1b0152df9f25fe
gbrp9le f88c68df5d699a4a7f1b0152df9f25fe
gray 8c941e9bbf6da5336384c57f15a4a454
gray 8c941e9bbf6da5336384c57f15a4a454
gray10be 69c8af356c3861792f9695fdff966629
gray10le a97b97107bf03f27136abbaca074aa88
gray12be aecffce8ea67ab93527dc74c1a523454
gray12be aecffce8ea67ab93527dc74c1a523454
gray12le eac4b15c8686f04ea73751294f40b8e0
gray12le eac4b15c8686f04ea73751294f40b8e0
gray16be 43bda75c197b0d59a9b87ee941553644
gray16be 43bda75c197b0d59a9b87ee941553644
...
...
tests/ref/fate/filter-pixfmts-null
View file @
f149a4a5
...
@@ -25,6 +25,8 @@ gbrp12le 654861b1837d312569395f598da1a2a1
...
@@ -25,6 +25,8 @@ gbrp12le 654861b1837d312569395f598da1a2a1
gbrp9be cbe1bf8ead497a92362a749bd4b0a57e
gbrp9be cbe1bf8ead497a92362a749bd4b0a57e
gbrp9le f88c68df5d699a4a7f1b0152df9f25fe
gbrp9le f88c68df5d699a4a7f1b0152df9f25fe
gray 8c941e9bbf6da5336384c57f15a4a454
gray 8c941e9bbf6da5336384c57f15a4a454
gray10be 69c8af356c3861792f9695fdff966629
gray10le a97b97107bf03f27136abbaca074aa88
gray12be aecffce8ea67ab93527dc74c1a523454
gray12be aecffce8ea67ab93527dc74c1a523454
gray12le eac4b15c8686f04ea73751294f40b8e0
gray12le eac4b15c8686f04ea73751294f40b8e0
gray16be 43bda75c197b0d59a9b87ee941553644
gray16be 43bda75c197b0d59a9b87ee941553644
...
...
tests/ref/fate/filter-pixfmts-scale
View file @
f149a4a5
...
@@ -25,6 +25,8 @@ gbrp12le 735061c07442657580577d1cede3a636
...
@@ -25,6 +25,8 @@ gbrp12le 735061c07442657580577d1cede3a636
gbrp9be 01c837e1def99abec205b80d21b68bf0
gbrp9be 01c837e1def99abec205b80d21b68bf0
gbrp9le dd982d59c3d71c3b201f2d9363d8952c
gbrp9le dd982d59c3d71c3b201f2d9363d8952c
gray 4c571fb634a75f177b64cee168fbf3a1
gray 4c571fb634a75f177b64cee168fbf3a1
gray10be 6131685ecaf830d08d2e0dee7f9c9d41
gray10le 6d398a3189f6b029a098393576af989c
gray12be d237d56e08482038ebc5f3943d6ec8d5
gray12be d237d56e08482038ebc5f3943d6ec8d5
gray12le dcd15a0ed89bd019cc367b552fc9b1c0
gray12le dcd15a0ed89bd019cc367b552fc9b1c0
gray16be 9b57ff7d2090b47e4427bee79dba0d9e
gray16be 9b57ff7d2090b47e4427bee79dba0d9e
...
...
tests/ref/fate/filter-pixfmts-vflip
View file @
f149a4a5
...
@@ -25,6 +25,8 @@ gbrp12le b7b27715bc9054a93ba81f110cf42ee5
...
@@ -25,6 +25,8 @@ gbrp12le b7b27715bc9054a93ba81f110cf42ee5
gbrp9be 2ae8f0d3b079d6550a2b1d4a7c4a6e4b
gbrp9be 2ae8f0d3b079d6550a2b1d4a7c4a6e4b
gbrp9le c62df0f386c957cc9cacb3c8014542eb
gbrp9le c62df0f386c957cc9cacb3c8014542eb
gray 684ba667effbbf5983f46a9bea4afaae
gray 684ba667effbbf5983f46a9bea4afaae
gray10be 394b31c05242c3a381f444a84bb327a1
gray10le 21e14d72eb5b5d1adb2375e0a7417252
gray12be e33397832d19ec628f3e887e0a16ccc7
gray12be e33397832d19ec628f3e887e0a16ccc7
gray12le c8a8d7267e2595a0c4ce5d582bea23a1
gray12le c8a8d7267e2595a0c4ce5d582bea23a1
gray16be 112077b2f1c85cbd44907ed271901b28
gray16be 112077b2f1c85cbd44907ed271901b28
...
...
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