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
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
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.
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.
hi, melon
No, I didn't solve it. I aborted
hi, Melon, Kickgame
i just want to know if you guys get it solved.
regards, Mike
thanks