avoid going uint_8 -> unsigned int -> uint8_t

silence compiler warnings about going narrowing conversion
YUV offsets are int only in VideoFrame

silence warning about narrowing conversing when ptrdiff_t != int