Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a5b3b65d
Commit
a5b3b65d
authored
Jun 02, 2022
by
rcombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/colorspace: add ff_matrix_mul_3x3_vec
Signed-off-by:
rcombs
<
rcombs@rcombs.me
>
parent
b3e261ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
colorspace.c
libavfilter/colorspace.c
+11
-0
colorspace.h
libavfilter/colorspace.h
+1
-0
No files found.
libavfilter/colorspace.c
View file @
a5b3b65d
...
@@ -62,6 +62,17 @@ void ff_matrix_mul_3x3(double dst[3][3],
...
@@ -62,6 +62,17 @@ void ff_matrix_mul_3x3(double dst[3][3],
src2
[
m
][
1
]
*
src1
[
1
][
n
]
+
src2
[
m
][
1
]
*
src1
[
1
][
n
]
+
src2
[
m
][
2
]
*
src1
[
2
][
n
];
src2
[
m
][
2
]
*
src1
[
2
][
n
];
}
}
void
ff_matrix_mul_3x3_vec
(
double
dst
[
3
],
const
double
vec
[
3
],
const
double
mat
[
3
][
3
])
{
int
m
;
for
(
m
=
0
;
m
<
3
;
m
++
)
dst
[
m
]
=
vec
[
0
]
*
mat
[
m
][
0
]
+
vec
[
1
]
*
mat
[
m
][
1
]
+
vec
[
2
]
*
mat
[
m
][
2
];
}
/*
/*
* see e.g. http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
* see e.g. http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
*/
*/
...
...
libavfilter/colorspace.h
View file @
a5b3b65d
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
void
ff_matrix_invert_3x3
(
const
double
in
[
3
][
3
],
double
out
[
3
][
3
]);
void
ff_matrix_invert_3x3
(
const
double
in
[
3
][
3
],
double
out
[
3
][
3
]);
void
ff_matrix_mul_3x3
(
double
dst
[
3
][
3
],
void
ff_matrix_mul_3x3
(
double
dst
[
3
][
3
],
const
double
src1
[
3
][
3
],
const
double
src2
[
3
][
3
]);
const
double
src1
[
3
][
3
],
const
double
src2
[
3
][
3
]);
void
ff_matrix_mul_3x3_vec
(
double
dst
[
3
],
const
double
vec
[
3
],
const
double
mat
[
3
][
3
]);
void
ff_fill_rgb2xyz_table
(
const
AVPrimaryCoefficients
*
coeffs
,
void
ff_fill_rgb2xyz_table
(
const
AVPrimaryCoefficients
*
coeffs
,
const
AVWhitepointCoefficients
*
wp
,
const
AVWhitepointCoefficients
*
wp
,
double
rgb2xyz
[
3
][
3
]);
double
rgb2xyz
[
3
][
3
]);
...
...
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