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.

About DM365 H.264 decoder and resizer

Hi,

  I need to decode video stream and resize the video to display device. According to the H.264 decoder user guide, for a 704x576 H.264 stream, the output video buffer is padded into (704+48+16)x(576+96). The VALID video data begins at the 24th byte of each line(This is verified by DMAI examples). But the resizer requires the input data to be 32 bytes aligned. So the decoded video can't applied directly into the resizer. Any solutions? Thanks

Regards

lcj

5 Replies

  • Hi,

    You can choose a pointer which is aligned to 32 bytes, i.e. give the base pointer itself(without the 24 byte offset) to the resizer. After resizing, you can calculate the valid area in the frame and then give it for display.

    regards

    Yashwant

  • In reply to Yashwant Dutt:

    But the target buffer for resizer is the buffer of a FBDEV.  For example, to resize the 720x576 video to 1024x768 frame buffer

    If I set the source pointer to offset 0(not 24)the resizer will resize a 768x576 video to frame buffer. This will left black strips at the left/right edge on display device.

    Regards

    lcj

  • hi kickgame.

    i have a pretty similiar problem for resizer becacue of 32 bytes aligned.

    The decoded data has a offset so i couldn't meet the align.

    how do you solve the problem?

    please let me know it.

     

  • In reply to jay:

    hi, melon

    No, I didn't solve it. I aborted

  • In reply to kickgame:

    hi, Melon, Kickgame

    i just want to know if you guys get it solved.

    regards, Mike

    thanks

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.