Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osu-fpga
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
Model registry
Operate
Environments
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
Fang Lu
osu-fpga
Commits
48af2096
Commit
48af2096
authored
7 years ago
by
Fang Lu
Browse files
Options
Downloads
Patches
Plain Diff
osufs - fix ffmpeg command
parent
b82d9b1e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
osufs/osufs/imgenc.c
+2
-2
2 additions, 2 deletions
osufs/osufs/imgenc.c
with
2 additions
and
2 deletions
osufs/osufs/imgenc.c
+
2
−
2
View file @
48af2096
...
...
@@ -19,7 +19,7 @@ uint16_t img_write_dither128(const char *filename, mdev *dev, uint16_t addr) {
system
(
"rm -f /tmp/source.png /tmp/plt.png /tmp/dither.png"
);
// Resize
sprintf
(
cbuf
,
"ffmpeg -i
%s
-vf
\"
scale=640:480
\"
/tmp/source.png"
,
filename
);
sprintf
(
cbuf
,
"ffmpeg -i
\"
%s
\"
-vf
\"
scale=640:480
\"
/tmp/source.png"
,
filename
);
ret
=
system
(
cbuf
);
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"ffmpeg resize failed with exit code: %d
\n
"
,
ret
);
...
...
@@ -90,7 +90,7 @@ size_t img_write_rgb16(const char *filename, mdev *dev, uint16_t addr) {
system
(
"rm -f /tmp/source.bmp"
);
// Resize
sprintf
(
cbuf
,
"ffmpeg -i
%s
-vf
\"
scale=640:480
\"
-pix_fmt rgb24 /tmp/source.png"
,
filename
);
sprintf
(
cbuf
,
"ffmpeg -i
\"
%s
\"
-vf
\"
scale=640:480
\"
-pix_fmt rgb24 /tmp/source.png"
,
filename
);
ret
=
system
(
cbuf
);
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"ffmpeg resize failed with exit code: %d
\n
"
,
ret
);
...
...
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