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

Function mp_gradient

libavcodec/motionpixels.c:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static int mp_gradient(MotionPixelsContext *mp, int component, int v)
131{
132 int delta;
133
134 delta = (v - 7) * mp->gradient_scale[component];
135 mp->gradient_scale[component] = (v == 0 || v == 14) ? 2 : 1;
136 return delta;
137}
138
139static YuvPixel mp_get_yuv_from_rgb(MotionPixelsContext *mp, int x, int y)
140{

Callers 2

mp_decode_lineFunction · 0.85
mp_decode_frame_helperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected