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
e9c10459
Commit
e9c10459
authored
May 09, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rotozoom: Drop some unnecessary parentheses.
parent
f628559d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rotozoom.c
tests/rotozoom.c
+5
-5
No files found.
tests/rotozoom.c
View file @
e9c10459
...
...
@@ -135,13 +135,13 @@ static void pgmyuv_save(const char *filename, int w, int h,
unsigned
char
*
lum_tab
,
*
cb_tab
,
*
cr_tab
;
lum_tab
=
malloc
(
w
*
h
);
cb_tab
=
malloc
(
(
w
*
h
)
/
4
);
cr_tab
=
malloc
(
(
w
*
h
)
/
4
);
cb_tab
=
malloc
(
w
*
h
/
4
);
cr_tab
=
malloc
(
w
*
h
/
4
);
rgb24_to_yuv420p
(
lum_tab
,
cb_tab
,
cr_tab
,
rgb_tab
,
w
,
h
);
f
=
fopen
(
filename
,
"wb"
);
fprintf
(
f
,
"P5
\n
%d %d
\n
%d
\n
"
,
w
,
(
h
*
3
)
/
2
,
255
);
fprintf
(
f
,
"P5
\n
%d %d
\n
%d
\n
"
,
w
,
h
*
3
/
2
,
255
);
fwrite
(
lum_tab
,
1
,
w
*
h
,
f
);
h2
=
h
/
2
;
w2
=
w
/
2
;
...
...
@@ -264,8 +264,8 @@ static void init_demo(const char *filename)
for
(
i
=
0
;
i
<
360
;
i
++
)
{
radian
=
2
*
i
*
MY_PI
/
360
;
h
=
2
*
FIXP
+
int_sin
(
radian
);
h_cos
[
i
]
=
(
h
*
int_sin
(
radian
+
MY_PI
/
2
)
)
/
2
/
FIXP
;
h_sin
[
i
]
=
(
h
*
int_sin
(
radian
)
)
/
2
/
FIXP
;
h_cos
[
i
]
=
h
*
int_sin
(
radian
+
MY_PI
/
2
)
/
2
/
FIXP
;
h_sin
[
i
]
=
h
*
int_sin
(
radian
)
/
2
/
FIXP
;
}
}
...
...
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