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
1e3e547a
Commit
1e3e547a
authored
Dec 30, 2019
by
Zhao Zhili
Committed by
Michael Niedermayer
Dec 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/utils: remove access of AV_PIX_FMT_NB
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
f1353ce2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utils.c
libswscale/utils.c
+4
-4
No files found.
libswscale/utils.c
View file @
1e3e547a
...
...
@@ -95,7 +95,7 @@ typedef struct FormatEntry {
uint8_t
is_supported_endianness
:
1
;
}
FormatEntry
;
static
const
FormatEntry
format_entries
[
AV_PIX_FMT_NB
]
=
{
static
const
FormatEntry
format_entries
[]
=
{
[
AV_PIX_FMT_YUV420P
]
=
{
1
,
1
},
[
AV_PIX_FMT_YUYV422
]
=
{
1
,
1
},
[
AV_PIX_FMT_RGB24
]
=
{
1
,
1
},
...
...
@@ -270,19 +270,19 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
int
sws_isSupportedInput
(
enum
AVPixelFormat
pix_fmt
)
{
return
(
unsigned
)
pix_fmt
<
AV_PIX_FMT_NB
?
return
(
unsigned
)
pix_fmt
<
FF_ARRAY_ELEMS
(
format_entries
)
?
format_entries
[
pix_fmt
].
is_supported_in
:
0
;
}
int
sws_isSupportedOutput
(
enum
AVPixelFormat
pix_fmt
)
{
return
(
unsigned
)
pix_fmt
<
AV_PIX_FMT_NB
?
return
(
unsigned
)
pix_fmt
<
FF_ARRAY_ELEMS
(
format_entries
)
?
format_entries
[
pix_fmt
].
is_supported_out
:
0
;
}
int
sws_isSupportedEndiannessConversion
(
enum
AVPixelFormat
pix_fmt
)
{
return
(
unsigned
)
pix_fmt
<
AV_PIX_FMT_NB
?
return
(
unsigned
)
pix_fmt
<
FF_ARRAY_ELEMS
(
format_entries
)
?
format_entries
[
pix_fmt
].
is_supported_endianness
:
0
;
}
...
...
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