Hi, Experts
I am test the commponet OMX.TI.VPSSM3.VFPC.INDTXSCWB.
My test input video is 1408 * 720 and the right edge has 128 pixels random data, looks as:
I want to test if the component can process the stride, the output image is 640 x 360.
If I set
inPortDef.format.video.nFrameWidth
= 1408;
inPortDef.format.video.nFrameHeight
= 720;
inPortDef.format.video.nStride
= 1408;
chResolution.Frm0Width = 1408;
chResolution.Frm0Height = 720;
chResolution.Frm0Pitch = 1408;
chResolution.Frm1Width = 0;
chResolution.Frm1Height = 0;
chResolution.Frm1Pitch = 0;
chResolution.FrmStartX = 0;
chResolution.FrmStartY = 0;
chResolution.FrmCropWidth = 0;
chResolution.FrmCropHeight = 0;
chResolution.eDir = OMX_DirInput;
chResolution.nChId = 0;
the scale works well, but if I set
inPortDef.format.video.nFrameWidth
= 1280;
inPortDef.format.video.nFrameHeight
= 720;
inPortDef.format.video.nStride
= 1408;
chResolution.Frm0Width = 1280;
chResolution.Frm0Height = 720;
chResolution.Frm0Pitch = 1408;
chResolution.Frm1Width = 0;
chResolution.Frm1Height = 0;
chResolution.Frm1Pitch = 0;
chResolution.FrmStartX = 0;
chResolution.FrmStartY = 0;
chResolution.FrmCropWidth = 0;
chResolution.FrmCropHeight = 0;
chResolution.eDir = OMX_DirInput;
chResolution.nChId = 0;
The scaled picture looked as:
I believe the component can support stride does not equal width, but I can not know why the result is not right.