Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
d2a2bc9a
Commit
d2a2bc9a
authored
7 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
avfilter/vf_lut: add support for gray formats
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
e3b2c850
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavfilter/vf_lut.c
+5
-1
5 additions, 1 deletion
libavfilter/vf_lut.c
tests/ref/fate/filter-pixfmts-lut
+5
-0
5 additions, 0 deletions
tests/ref/fate/filter-pixfmts-lut
with
10 additions
and
1 deletion
libavfilter/vf_lut.c
+
5
−
1
View file @
d2a2bc9a
...
...
@@ -135,9 +135,13 @@ static av_cold void uninit(AVFilterContext *ctx)
AV_PIX_FMT_GBRP16LE, AV_PIX_FMT_GBRAP12LE, \
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
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
)
{
...
...
This diff is collapsed.
Click to expand it.
tests/ref/fate/filter-pixfmts-lut
+
5
−
0
View file @
d2a2bc9a
...
...
@@ -12,6 +12,11 @@ gbrp12le c5a4b89571f7095eb737ad9fd6b1ee08
gbrp14le bdfdfd6f36c60497d1cdae791f3cc117
gbrp16le df095ef3a20995935cfcaf144afc68b6
gbrp9le a8c4e29f4cb627db81ba053e0853e702
gray 20b14b5e26cd11300ed1249e04082170
gray10le 8f4140b55e847cc423002b89666db5ea
gray12le ea89c02f6b3af49ddaf13364ed33d86d
gray16le aa10599924fb2440fa12b76e90f57dcb
gray9le 7d9cc9ad6118674c547a54281d10cf05
rgb24 a356171207723a580e7d277078072005
rgb48le 5c7dd8575836d18c91e09f1915cf9aa9
rgba 7bc854c2698b78af3e9159a19c2d9d21
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment