[gst-devel] Regarding Resize operation

Sameer Naik sameer.subscriptions at damagehead.com
Thu Jan 7 10:06:04 CET 2010


Hello,
I have been facing a few issues using the resizer (davinci_resizer).

I have a video that is decoded using the XDM VIDDEC 0.9 API calls and
reports a resolution of 294x240 through the VIDDEC_Status output
structure.
I am using the dmai api to perform the resize operation. That is to
say that, DMAI will dynamically calculate the resize coefficients for
the resize operation.
The Resized image size that i want is 1024x768. To do this i specify
the following:

srcImage.x = 0;
srcImage.y = 0;
srcImage.width = 294;
srcImage.height = 240;
srcImage.lineLength = 294* 2;

dstImage.x = 0;
dstImage.y = 0;
dstImage.width = 1024;
dstImage.height = 768;
dstImage.lineLength = 1024 * 2;

When the resize operation is configured using Resize_config(). I get
the following
error: "Src (588) and dst (2048) must be aligned on 32 bytes"

This clearly states that srcImage.lineLength = 588; is not aligned on 32 bytes.
How can i handle this case? I dont think i can specify a
srcImage.lineLength anything orther than 294* 2 right.
This is is always present when the width and height of the decoded
video are not a multiple of 16.

I am not aware of how i can handle this case. Please help

Regards
~Sameer




More information about the gstreamer-devel mailing list