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
9b26a807
Commit
9b26a807
authored
May 06, 2016
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_colorspace: add const to yuv_stride[] argument in DSP functions.
parent
431117dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
colorspacedsp.h
libavfilter/colorspacedsp.h
+5
-5
colorspacedsp_template.c
libavfilter/colorspacedsp_template.c
+3
-3
colorspacedsp_yuv2yuv_template.c
libavfilter/colorspacedsp_yuv2yuv_template.c
+2
-2
colorspacedsp_init.c
libavfilter/x86/colorspacedsp_init.c
+4
-4
No files found.
libavfilter/colorspacedsp.h
View file @
9b26a807
...
...
@@ -25,20 +25,20 @@
#include <stdint.h>
typedef
void
(
*
yuv2rgb_fn
)(
int16_t
*
rgb
[
3
],
ptrdiff_t
rgb_stride
,
uint8_t
*
yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
uint8_t
*
yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int
w
,
int
h
,
const
int16_t
yuv2rgb_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
]);
typedef
void
(
*
rgb2yuv_fn
)(
uint8_t
*
yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
typedef
void
(
*
rgb2yuv_fn
)(
uint8_t
*
yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int16_t
*
rgb
[
3
],
ptrdiff_t
rgb_stride
,
int
w
,
int
h
,
const
int16_t
rgb2yuv_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
]);
typedef
void
(
*
rgb2yuv_fsb_fn
)(
uint8_t
*
yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
typedef
void
(
*
rgb2yuv_fsb_fn
)(
uint8_t
*
yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int16_t
*
rgb
[
3
],
ptrdiff_t
rgb_stride
,
int
w
,
int
h
,
const
int16_t
rgb2yuv_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
],
int
*
rnd
[
3
][
2
]);
typedef
void
(
*
yuv2yuv_fn
)(
uint8_t
*
yuv_out
[
3
],
ptrdiff_t
yuv_out_stride
[
3
],
uint8_t
*
yuv_in
[
3
],
ptrdiff_t
yuv_in_stride
[
3
],
typedef
void
(
*
yuv2yuv_fn
)(
uint8_t
*
yuv_out
[
3
],
const
ptrdiff_t
yuv_out_stride
[
3
],
uint8_t
*
yuv_in
[
3
],
const
ptrdiff_t
yuv_in_stride
[
3
],
int
w
,
int
h
,
const
int16_t
yuv2yuv_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
2
][
8
]);
...
...
libavfilter/colorspacedsp_template.c
View file @
9b26a807
...
...
@@ -52,7 +52,7 @@
#endif
static
void
fn
(
yuv2rgb
)(
int16_t
*
rgb
[
3
],
ptrdiff_t
rgb_stride
,
uint8_t
*
_yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
uint8_t
*
_yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int
w
,
int
h
,
const
int16_t
yuv2rgb_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
])
{
...
...
@@ -127,7 +127,7 @@ static void fn(yuv2rgb)(int16_t *rgb[3], ptrdiff_t rgb_stride,
}
}
static
void
fn
(
rgb2yuv
)(
uint8_t
*
_yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
static
void
fn
(
rgb2yuv
)(
uint8_t
*
_yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int16_t
*
rgb
[
3
],
ptrdiff_t
s
,
int
w
,
int
h
,
const
int16_t
rgb2yuv_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
])
...
...
@@ -205,7 +205,7 @@ static void fn(rgb2yuv)(uint8_t *_yuv[3], ptrdiff_t yuv_stride[3],
* the rounding error is distributed over the neighbouring pixels:
* 2: 7/16th, 3: 3/16th, 4: 5/16th and 5: 1/16th
*/
static
void
fn
(
rgb2yuv_fsb
)(
uint8_t
*
_yuv
[
3
],
ptrdiff_t
yuv_stride
[
3
],
static
void
fn
(
rgb2yuv_fsb
)(
uint8_t
*
_yuv
[
3
],
const
ptrdiff_t
yuv_stride
[
3
],
int16_t
*
rgb
[
3
],
ptrdiff_t
s
,
int
w
,
int
h
,
const
int16_t
rgb2yuv_coeffs
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
8
],
...
...
libavfilter/colorspacedsp_yuv2yuv_template.c
View file @
9b26a807
...
...
@@ -37,8 +37,8 @@
#define fn2(a,b,c,d) fn3(a,b,c,d)
#define fn(a) fn2(a, IN_BIT_DEPTH, OUT_BIT_DEPTH, ss)
static
void
fn
(
yuv2yuv
)(
uint8_t
*
_dst
[
3
],
ptrdiff_t
dst_stride
[
3
],
uint8_t
*
_src
[
3
],
ptrdiff_t
src_stride
[
3
],
static
void
fn
(
yuv2yuv
)(
uint8_t
*
_dst
[
3
],
const
ptrdiff_t
dst_stride
[
3
],
uint8_t
*
_src
[
3
],
const
ptrdiff_t
src_stride
[
3
],
int
w
,
int
h
,
const
int16_t
c
[
3
][
3
][
8
],
const
int16_t
yuv_offset
[
2
][
8
])
{
...
...
libavfilter/x86/colorspacedsp_init.c
View file @
9b26a807
...
...
@@ -23,8 +23,8 @@
#include "libavfilter/colorspacedsp.h"
#define decl_yuv2yuv_fn(t) \
void ff_yuv2yuv_##t##_sse2(uint8_t *yuv_out[3], ptrdiff_t yuv_out_stride[3], \
uint8_t *yuv_in[3], ptrdiff_t yuv_in_stride[3], \
void ff_yuv2yuv_##t##_sse2(uint8_t *yuv_out[3],
const
ptrdiff_t yuv_out_stride[3], \
uint8_t *yuv_in[3],
const
ptrdiff_t yuv_in_stride[3], \
int w, int h, const int16_t yuv2yuv_coeffs[3][3][8], \
const int16_t yuv_offset[2][8])
...
...
@@ -45,7 +45,7 @@ decl_yuv2yuv_fns(444);
#define decl_yuv2rgb_fn(t) \
void ff_yuv2rgb_##t##_sse2(int16_t *rgb_out[3], ptrdiff_t rgb_stride, \
uint8_t *yuv_in[3], ptrdiff_t yuv_stride[3], \
uint8_t *yuv_in[3],
const
ptrdiff_t yuv_stride[3], \
int w, int h, const int16_t coeff[3][3][8], \
const int16_t yuv_offset[8])
...
...
@@ -59,7 +59,7 @@ decl_yuv2rgb_fns(422);
decl_yuv2rgb_fns
(
444
);
#define decl_rgb2yuv_fn(t) \
void ff_rgb2yuv_##t##_sse2(uint8_t *yuv_out[3], ptrdiff_t yuv_stride[3], \
void ff_rgb2yuv_##t##_sse2(uint8_t *yuv_out[3],
const
ptrdiff_t yuv_stride[3], \
int16_t *rgb_in[3], ptrdiff_t rgb_stride, \
int w, int h, const int16_t coeff[3][3][8], \
const int16_t yuv_offset[8])
...
...
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