/** @enum UTILS_ENCDEC_GET_PADDED_WIDTH
* @brief Macro that padded width for given width */
#define UTILS_ENCDEC_GET_PADDED_WIDTH(width) \
(((width) + (2 * UTILS_ENCDEC_H264PADX) + 127) & 0xFFFFFF80)
/** @enum UTILS_ENCDEC_GET_PADDED_HEIGHT
* @brief Macro that padded height for given height */
#define UTILS_ENCDEC_GET_PADDED_HEIGHT(height) \
((height) + (4 * UTILS_ENCDEC_H264PADY))
why need padded?
HI,
i use the DM8168 and DVRRDK4.0, and use the VDEC_VDIS Demo. In the usecase, it is 1920*1080 bitstream, and In the Video M3 core, after the DEC Link is the IPC_OUT Link, i send the physical address of decoded YUV420SP video frame, to A8 Core, A8 Core use its addr and send to C6678 by PCIe interface, in the C6678, i must Sobel processing for the YUV420SP video frame as it is 2048*1176,so it can be correct, and send to C6678 also need 2048*1176.
that is to say, 1920*1080 decode to 2048*1176, i do not know why, i find the code in utils_encdec.h,so why need padded?
Best Regards.