From: Johann Date: Thu, 1 Nov 2018 21:45:38 +0000 (-0700) Subject: clang-tidy: fix vpx_img_wrap align X-Git-Tag: v1.8.0~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b08582a02ec6fc7ce6ede7488873349f13753c1b;p=libvpx clang-tidy: fix vpx_img_wrap align This function specifically only aligns the stride and not the base buffer like vpx_img_alloc does. BUG=webm:1444 Change-Id: I3092827eeec3c9e16306a3973534d3a362a337e8 --- diff --git a/vpx/vpx_image.h b/vpx/vpx_image.h index a1b7ce688..98be5966a 100644 --- a/vpx/vpx_image.h +++ b/vpx/vpx_image.h @@ -150,21 +150,21 @@ vpx_image_t *vpx_img_alloc(vpx_image_t *img, vpx_img_fmt_t fmt, * storage for descriptor has been allocated elsewhere, and a descriptor is * desired to "wrap" that storage. * - * \param[in] img Pointer to storage for descriptor. If this parameter - * is NULL, the storage for the descriptor will be - * allocated on the heap. - * \param[in] fmt Format for the image - * \param[in] d_w Width of the image - * \param[in] d_h Height of the image - * \param[in] align Alignment, in bytes, of each row in the image. - * \param[in] img_data Storage to use for the image + * \param[in] img Pointer to storage for descriptor. If this + * parameter is NULL, the storage for the descriptor + * will be allocated on the heap. + * \param[in] fmt Format for the image + * \param[in] d_w Width of the image + * \param[in] d_h Height of the image + * \param[in] stride_align Alignment, in bytes, of each row in the image. + * \param[in] img_data Storage to use for the image * * \return Returns a pointer to the initialized image descriptor. If the img * parameter is non-null, the value of the img parameter will be * returned. */ vpx_image_t *vpx_img_wrap(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, - unsigned int d_h, unsigned int align, + unsigned int d_h, unsigned int stride_align, unsigned char *img_data); /*!\brief Set the rectangle identifying the displayed portion of the image