I am trying to rewrite the function in common_utils.cpp:
mfxStatus ReadPlaneData(mfxU16 w, mfxU16 h, mfxU8 *buf, mfxU8 *ptr, mfxU16 pitch, mfxU16 offset, FILE* fSource)
How can a YUV frame have a pitch to it, defined as the distance between two consecutive rows in a frame when Y is 4 times bigger than U or V?
Is it the distance between the Y and U or U and V? I appears to be U and V but I can't completely tell.