Hello,
I would like to pad a centered frame with blank data using the scaler. No scaling is done for the original frame.
Can you please give some guidelines as to how it should be done ? I couldn't find a demonstration for that.
Thanks,
Ran
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.
Hi Sujith,
Thank you very much for the detailed answer.
As I understand, the offset in 2, and pitch in 3 is part of channel info. Both startX, and startY should be updated. The pitch is relevant only for rows numbers, right (i.e. top , bottom pad is not par of pitch) ? about 4. , Why did you multiply all the pixels of (actual width + margin on left + margin on right) with 1.5 ?
typedef struct
{
UInt32 bufType; /**< see System_BufType */
UInt32 codingformat; /**< Video coding format - IVIDEO_H264BP, IVIDEO_H264MP,...*/
UInt32 dataFormat; /**< see System_VideoDataFormat */
UInt32 memType; /**< see System_MemoryType - Tiled / non-tiled */
UInt32 startX; /**< Start x position */
UInt32 startY; /**< Start x position */
UInt32 width; /**< channel resolution - width */
UInt32 height; /**< channel resolution - height */
UInt32 pitch[SYSTEM_MAX_PLANES]; /**< Pitch for various formats / planes */
UInt32 scanFormat; /**< see System_VideoScanFormat */
} System_LinkChInfo;
If you can please provide a demo for this feature it will be very much helpful.
Thanks,
Ran
Hi Sujith,
Did you mean in the previous post that we should create a new Link ?
Can padding & scaling parameters (startx,starty,pitch,scaling value) be changed dynamically ?
Is there a demo for that ? it seems that SCLR_LINK_CMD_SET_OUTPUTRESOLUTION might partly achieve that.
Thanks, Ran
Hi Sujith,
>You could customize existing link to do that
Is the idea you suggested before(start with blank frame, etc.) is to customize scaler Link (or to use the existing scaler) ?
Isn't pitch, startX,startY already supported in scaler ? What is not supported in scaler with regards to padding of the centered scaled frame ?
Is pitch affect how the image is stored in memory, or how the image is displayed ?
Thanks, Ran
Hi Sujith,
I think that for supporting aspect ration capability in DM8168, as done in other MPEG encoders, it is important maybe to add padding support feature in the future. I don't see this capability in codec itself, so the HDVPSS is where such pre-processing for supporting aspect ratio change should be done.
Thanks,
Ran