Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Main
Synchronet
Commits
30a163fa
Commit
30a163fa
authored
6 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Don't use the C99 restrict keyword because MSVC is apparently still
more than 25 years behind the C standard.
parent
51ce7e6f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6882
passed
6 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/scale.c
+5
-5
5 additions, 5 deletions
src/conio/scale.c
with
5 additions
and
5 deletions
src/conio/scale.c
+
5
−
5
View file @
30a163fa
...
...
@@ -755,7 +755,7 @@ struct YCoCg_data {
};
static
void
RGB_to_YCoCg
(
const
uint32_t
RGB
,
struct
YCoCg_data
*
restrict
YCoCg
)
RGB_to_YCoCg
(
const
uint32_t
RGB
,
struct
YCoCg_data
*
YCoCg
)
{
signed
R
,
G
,
B
,
tmp
;
...
...
@@ -770,7 +770,7 @@ RGB_to_YCoCg(const uint32_t RGB, struct YCoCg_data *restrict YCoCg)
}
static
uint32_t
YCoCg_to_RGB
(
struct
YCoCg_data
*
restrict
YCoCg
)
YCoCg_to_RGB
(
struct
YCoCg_data
*
YCoCg
)
{
signed
Ri
,
Gi
,
Bi
,
tmp
;
unsigned
R
,
G
,
B
;
...
...
@@ -810,7 +810,7 @@ blend_YCoCg(const uint32_t c1, const uint32_t c2, const uint16_t weight)
* pixels.
*/
static
void
interpolate_width
(
uint32_t
*
restrict
src
,
uint32_t
*
dst
,
int
width
,
int
height
,
int
newwidth
)
interpolate_width
(
uint32_t
*
src
,
uint32_t
*
dst
,
int
width
,
int
height
,
int
newwidth
)
{
int
x
,
y
;
const
double
mult
=
(
double
)
width
/
newwidth
;
...
...
@@ -852,7 +852,7 @@ interpolate_width(uint32_t*restrict src, uint32_t* dst, int width, int height, i
* pixels.
*/
static
void
interpolate_height
(
uint32_t
*
restrict
src
,
uint32_t
*
restrict
dst
,
int
width
,
int
height
,
int
newheight
)
interpolate_height
(
uint32_t
*
src
,
uint32_t
*
dst
,
int
width
,
int
height
,
int
newheight
)
{
int
x
,
y
;
const
double
mult
=
(
double
)
height
/
newheight
;
...
...
@@ -925,7 +925,7 @@ fail:
}
static
void
multiply_scale
(
uint32_t
*
src
,
uint32_t
*
restrict
dst
,
int
width
,
int
height
,
int
xmult
,
int
ymult
)
multiply_scale
(
uint32_t
*
src
,
uint32_t
*
dst
,
int
width
,
int
height
,
int
xmult
,
int
ymult
)
{
int
x
,
y
;
int
mx
,
my
;
...
...
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