MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / mp_gradient

Function mp_gradient

libavcodec/motionpixels.c:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static av_always_inline int mp_gradient(MotionPixelsContext *mp, int component, int v)
176{
177 int delta;
178
179 delta = (v - 7) * mp->gradient_scale[component];
180 mp->gradient_scale[component] = (v == 0 || v == 14) ? 2 : 1;
181 return delta;
182}
183
184static YuvPixel mp_get_yuv_from_rgb(MotionPixelsContext *mp, int x, int y)
185{

Callers 2

mp_decode_lineFunction · 0.85
mp_decode_frame_helperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected