If I have a rgba (or rgb0) frame 1280x720 and I want to convert to yuv420p I tried to use RGBAToI420 function but I don't understand what I have to put in the stride parameters.
libyuv.RGBAToI420( curFrame.data, 1280, planY, 1280, planU, 1280 / 2, planV, 1280 / 2, 1280, 720 );

this is the result
If I have a rgba (or rgb0) frame 1280x720 and I want to convert to yuv420p I tried to use RGBAToI420 function but I don't understand what I have to put in the stride parameters.
libyuv.RGBAToI420( curFrame.data, 1280, planY, 1280, planU, 1280 / 2, planV, 1280 / 2, 1280, 720 );this is the result