You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/vf_hue: replace rint by lrint
avoids float to int cast. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
@@ -105,8 +105,8 @@ static inline void compute_sin_and_cos(HueContext *hue)
|
|||||||
* the saturation.
|
* the saturation.
|
||||||
* This will be useful in the apply_lut function.
|
* This will be useful in the apply_lut function.
|
||||||
*/
|
*/
|
||||||
hue->hue_sin = rint(sin(hue->hue) * (1 << 16) * hue->saturation);
|
hue->hue_sin = lrint(sin(hue->hue) * (1 << 16) * hue->saturation);
|
||||||
hue->hue_cos = rint(cos(hue->hue) * (1 << 16) * hue->saturation);
|
hue->hue_cos = lrint(cos(hue->hue) * (1 << 16) * hue->saturation);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void create_luma_lut(HueContext *h)
|
static inline void create_luma_lut(HueContext *h)
|
||||||
|
Reference in New Issue
Block a user