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
935ecfb0
Commit
935ecfb0
authored
Oct 20, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/scaling_video: remove unnecessary intermediary variable in fill_yuv_frame()
parent
7bc533c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
scaling_video.c
doc/examples/scaling_video.c
+4
-6
No files found.
doc/examples/scaling_video.c
View file @
935ecfb0
...
...
@@ -32,20 +32,18 @@
static
void
fill_yuv_image
(
uint8_t
*
data
[
4
],
int
linesize
[
4
],
int
width
,
int
height
,
int
frame_index
)
{
int
x
,
y
,
i
;
i
=
frame_index
;
int
x
,
y
;
/* Y */
for
(
y
=
0
;
y
<
height
;
y
++
)
for
(
x
=
0
;
x
<
width
;
x
++
)
data
[
0
][
y
*
linesize
[
0
]
+
x
]
=
x
+
y
+
i
*
3
;
data
[
0
][
y
*
linesize
[
0
]
+
x
]
=
x
+
y
+
frame_index
*
3
;
/* Cb and Cr */
for
(
y
=
0
;
y
<
height
/
2
;
y
++
)
{
for
(
x
=
0
;
x
<
width
/
2
;
x
++
)
{
data
[
1
][
y
*
linesize
[
1
]
+
x
]
=
128
+
y
+
i
*
2
;
data
[
2
][
y
*
linesize
[
2
]
+
x
]
=
64
+
x
+
i
*
5
;
data
[
1
][
y
*
linesize
[
1
]
+
x
]
=
128
+
y
+
frame_index
*
2
;
data
[
2
][
y
*
linesize
[
2
]
+
x
]
=
64
+
x
+
frame_index
*
5
;
}
}
}
...
...
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