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
0ca0924c
Commit
0ca0924c
authored
Apr 01, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: add endianness conversion for AV_PIX_FMT_BGRA64|RGBA64
parent
c6111483
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
swscale_unscaled.c
libswscale/swscale_unscaled.c
+2
-0
utils.c
libswscale/utils.c
+4
-4
No files found.
libswscale/swscale_unscaled.c
View file @
0ca0924c
...
...
@@ -1051,11 +1051,13 @@ void ff_get_unscaled_swscale(SwsContext *c)
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_BGR48
)
||
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_BGRA64
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_GRAY16
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_RGB444
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_RGB48
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_RGB555
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_RGB565
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_RGBA64
)
||
IS_DIFFERENT_ENDIANESS
(
srcFormat
,
dstFormat
,
AV_PIX_FMT_XYZ12
))
c
->
swscale
=
packed_16bpc_bswap
;
...
...
libswscale/utils.c
View file @
0ca0924c
...
...
@@ -133,8 +133,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_YUVA444P16LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGB48BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGB48LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGBA64BE
]
=
{
0
,
0
},
[
AV_PIX_FMT_RGBA64LE
]
=
{
0
,
0
},
[
AV_PIX_FMT_RGBA64BE
]
=
{
0
,
0
,
1
},
[
AV_PIX_FMT_RGBA64LE
]
=
{
0
,
0
,
1
},
[
AV_PIX_FMT_RGB565BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGB565LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGB555BE
]
=
{
1
,
1
},
...
...
@@ -156,8 +156,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_Y400A
]
=
{
1
,
0
},
[
AV_PIX_FMT_BGR48BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_BGR48LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_BGRA64BE
]
=
{
0
,
0
},
[
AV_PIX_FMT_BGRA64LE
]
=
{
0
,
0
},
[
AV_PIX_FMT_BGRA64BE
]
=
{
0
,
0
,
1
},
[
AV_PIX_FMT_BGRA64LE
]
=
{
0
,
0
,
1
},
[
AV_PIX_FMT_YUV420P9BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_YUV420P9LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_YUV420P10BE
]
=
{
1
,
1
},
...
...
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