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
d2a2bc9a
Commit
d2a2bc9a
authored
Dec 22, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_lut: add support for gray formats
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
e3b2c850
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
vf_lut.c
libavfilter/vf_lut.c
+5
-1
filter-pixfmts-lut
tests/ref/fate/filter-pixfmts-lut
+5
-0
No files found.
libavfilter/vf_lut.c
View file @
d2a2bc9a
...
@@ -135,9 +135,13 @@ static av_cold void uninit(AVFilterContext *ctx)
...
@@ -135,9 +135,13 @@ static av_cold void uninit(AVFilterContext *ctx)
AV_PIX_FMT_GBRP16LE, AV_PIX_FMT_GBRAP12LE, \
AV_PIX_FMT_GBRP16LE, AV_PIX_FMT_GBRAP12LE, \
AV_PIX_FMT_GBRAP16LE
AV_PIX_FMT_GBRAP16LE
#define GRAY_FORMATS \
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9LE, AV_PIX_FMT_GRAY10LE, \
AV_PIX_FMT_GRAY12LE, AV_PIX_FMT_GRAY16LE
static
const
enum
AVPixelFormat
yuv_pix_fmts
[]
=
{
YUV_FORMATS
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
yuv_pix_fmts
[]
=
{
YUV_FORMATS
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
rgb_pix_fmts
[]
=
{
RGB_FORMATS
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
rgb_pix_fmts
[]
=
{
RGB_FORMATS
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
all_pix_fmts
[]
=
{
RGB_FORMATS
,
YUV_FORMATS
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
all_pix_fmts
[]
=
{
RGB_FORMATS
,
YUV_FORMATS
,
GRAY_FORMATS
,
AV_PIX_FMT_NONE
};
static
int
query_formats
(
AVFilterContext
*
ctx
)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
{
...
...
tests/ref/fate/filter-pixfmts-lut
View file @
d2a2bc9a
...
@@ -12,6 +12,11 @@ gbrp12le c5a4b89571f7095eb737ad9fd6b1ee08
...
@@ -12,6 +12,11 @@ gbrp12le c5a4b89571f7095eb737ad9fd6b1ee08
gbrp14le bdfdfd6f36c60497d1cdae791f3cc117
gbrp14le bdfdfd6f36c60497d1cdae791f3cc117
gbrp16le df095ef3a20995935cfcaf144afc68b6
gbrp16le df095ef3a20995935cfcaf144afc68b6
gbrp9le a8c4e29f4cb627db81ba053e0853e702
gbrp9le a8c4e29f4cb627db81ba053e0853e702
gray 20b14b5e26cd11300ed1249e04082170
gray10le 8f4140b55e847cc423002b89666db5ea
gray12le ea89c02f6b3af49ddaf13364ed33d86d
gray16le aa10599924fb2440fa12b76e90f57dcb
gray9le 7d9cc9ad6118674c547a54281d10cf05
rgb24 a356171207723a580e7d277078072005
rgb24 a356171207723a580e7d277078072005
rgb48le 5c7dd8575836d18c91e09f1915cf9aa9
rgb48le 5c7dd8575836d18c91e09f1915cf9aa9
rgba 7bc854c2698b78af3e9159a19c2d9d21
rgba 7bc854c2698b78af3e9159a19c2d9d21
...
...
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