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
0c3b4efc
Commit
0c3b4efc
authored
May 24, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/movenc: Remove float use from rgb_to_yuv()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
28134d6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
movenc.c
libavformat/movenc.c
+3
-3
No files found.
libavformat/movenc.c
View file @
0c3b4efc
...
...
@@ -4877,9 +4877,9 @@ static uint32_t rgb_to_yuv(uint32_t rgb)
g
=
(
rgb
>>
8
)
&
0xFF
;
b
=
(
rgb
)
&
0xFF
;
y
=
av_clip_uint8
(
16
.
+
0
.
257
*
r
+
0
.
504
*
g
+
0
.
098
*
b
);
cb
=
av_clip_uint8
(
128
.
-
0
.
148
*
r
-
0
.
291
*
g
+
0
.
439
*
b
);
cr
=
av_clip_uint8
(
128
.
+
0
.
439
*
r
-
0
.
368
*
g
-
0
.
071
*
b
);
y
=
av_clip_uint8
(
(
16000
+
257
*
r
+
504
*
g
+
98
*
b
)
/
1000
);
cb
=
av_clip_uint8
(
(
128000
-
148
*
r
-
291
*
g
+
439
*
b
)
/
1000
);
cr
=
av_clip_uint8
(
(
128000
+
439
*
r
-
368
*
g
-
71
*
b
)
/
1000
);
return
(
y
<<
16
)
|
(
cr
<<
8
)
|
cb
;
}
...
...
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