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
f7f18352
Commit
f7f18352
authored
Nov 24, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: fix failing fate tests.
isGray() is left as a FIXME for later.
parent
185655c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
pixdesc.c
libavutil/pixdesc.c
+1
-2
swscale_internal.h
libswscale/swscale_internal.h
+9
-0
No files found.
libavutil/pixdesc.c
View file @
f7f18352
...
...
@@ -219,7 +219,6 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
.
comp
=
{
{
0
,
0
,
1
,
0
,
7
},
/* Y */
},
.
flags
=
PIX_FMT_PAL
,
},
[
PIX_FMT_MONOWHITE
]
=
{
.
name
=
"monow"
,
...
...
@@ -567,7 +566,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
{
0
,
5
,
3
,
0
,
15
},
/* G */
{
0
,
5
,
5
,
0
,
15
},
/* B */
},
.
flags
=
PIX_FMT_BE
,
.
flags
=
PIX_FMT_
RGB
|
PIX_FMT_
BE
,
},
[
PIX_FMT_RGB48LE
]
=
{
.
name
=
"rgb48le"
,
...
...
libswscale/swscale_internal.h
View file @
f7f18352
...
...
@@ -552,9 +552,18 @@ const char *sws_format_name(enum PixelFormat format);
#define isRGB(x) \
(av_pix_fmt_descriptors[x].flags & PIX_FMT_RGB)
#if 0 // FIXME
#define isGray(x) \
(!(av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) && \
av_pix_fmt_descriptors[x].nb_components <= 2)
#else
#define isGray(x) ( \
(x)==PIX_FMT_GRAY8 \
|| (x)==PIX_FMT_Y400A \
|| (x)==PIX_FMT_GRAY16BE \
|| (x)==PIX_FMT_GRAY16LE \
)
#endif
#define isRGBinInt(x) ( \
(x)==PIX_FMT_RGB48BE \
...
...
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