This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Resize and resample from 720x576 YUV422 to 720x288 YUV420SP

Hi,

   my video driver acquires interlaced PAL frames with resolution 576i, the color space is YUV422. The odd and even fields are interlaced in the acquired frame buffer.

I can use the resizer to get a 576i YUV420SP image.

Then I can use the H.264 encoder (two calls) to encode the two fields.

My questions are:

1) can the resizer be used both for scaling and color resampling from 720x576 YUV422  to 720x288 YUV420SP?

2) do I need to call the resizer twice, one time for each operation (720x576 YUV422  -> 720x576 YUV420 -> 720x288 YUV420SP, or maybe faster 720x576 YUV422  -> 720x288 YUV422 -> 720x288 YUV420SP) ?

3)  what about encoding (H.264) only the first field of the  720x576 YUV420 image?

Thank you in advance for your support.

  • 1) can the resizer be used both for scaling and color resampling from 720x576 YUV422  to 720x288 YUV420SP?

    Yes. This is supported by HW and I believe driver should also support it. 

    2) do I need to call the resizer twice, one time for each operation (720x576 YUV422  -> 720x576 YUV420 -> 720x288 YUV420SP, or maybe faster 720x576 YUV422  -> 720x288 YUV422 -> 720x288 YUV420SP) ?

    No. One pass shall achieve both resizing and color downsampling

    3)  what about encoding (H.264) only the first field of the  720x576 YUV420 image?

    I don't see any issue there either.

  • Thank you for the answer Xiangdong Fu

    1) can the resizer be used both for scaling and color resampling from 720x576 YUV422  to 720x288 YUV420SP?

    Yes. This is supported by HW and I believe driver should also support it. 

    This sounds good.

    2) do I need to call the resizer twice, one time for each operation (720x576 YUV422  -> 720x576 YUV420 -> 720x288 YUV420SP, or maybe faster 720x576 YUV422  -> 720x288 YUV422 -> 720x288 YUV420SP) ?

    No. One pass shall achieve both resizing and color downsampling

    I don't know the reason but when I try to do this in one pass I get an half horizontal resolution image (350x288SP). I am using the udworks driver and I have checked and rechecked the input and output windows several times.

    3)  what about encoding (H.264) only the first field of the  720x576 YUV420 image?

    I don't see any issue there either.

    I tried this solution but the thecoder seems to be unable to decode the stream I get in this way.