Lines Matching refs:hor_stride
442 RK_S32 hor_stride, RK_S32 pix_w, FILE *fp) in read_with_pixel_width() argument
447 if (hor_stride < width * pix_w) { in read_with_pixel_width()
449 8 * pix_w, hor_stride, width, pix_w); in read_with_pixel_width()
453 hor_stride = width * pix_w; in read_with_pixel_width()
457 RK_S32 read_size = fread(buf + row * hor_stride, 1, width * pix_w, fp); in read_with_pixel_width()
473 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt) in read_image() argument
479 RK_U8 *buf_u = buf_y + hor_stride * ver_stride; // NOTE: diff from gen_yuv_image in read_image()
480 RK_U8 *buf_v = buf_u + hor_stride * ver_stride / 4; // NOTE: diff from gen_yuv_image in read_image()
536 read_size = fread(buf_y + row * hor_stride, 1, width, fp); in read_image()
544 read_size = fread(buf_u + row * hor_stride, 1, width, fp); in read_image()
553 read_size = fread(buf_y + row * hor_stride, 1, width, fp); in read_image()
561 read_size = fread(buf_u + row * hor_stride / 2, 1, width / 2, fp); in read_image()
569 read_size = fread(buf_v + row * hor_stride / 2, 1, width / 2, fp); in read_image()
582 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 4, fp); in read_image()
596 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 2, fp); in read_image()
602 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 3, fp); in read_image()
616 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV420SP() argument
624 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV420SP()
630 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV420SP()
631 for (y = 0; y < height / 2; y++, p += hor_stride) { in fill_MPP_FMT_YUV420SP()
640 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV422SP() argument
648 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV422SP()
654 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV422SP()
655 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV422SP()
999 RK_S32 hor_stride, RK_S32 pixel_size) in util_check_stride_by_pixel() argument
1001 if (!workaround && hor_stride < width * pixel_size) { in util_check_stride_by_pixel()
1003 hor_stride, width, pixel_size); in util_check_stride_by_pixel()
1005 hor_stride, pixel_size, hor_stride * pixel_size); in util_check_stride_by_pixel()
1012 static RK_S32 util_check_8_pixel_aligned(RK_S32 workaround, RK_S32 hor_stride, in util_check_8_pixel_aligned() argument
1016 if (!workaround && hor_stride != MPP_ALIGN(hor_stride, pixel_aign * pixel_size)) { in util_check_8_pixel_aligned()
1020 MPP_ALIGN(hor_stride, pixel_aign * pixel_size)); in util_check_8_pixel_aligned()
1028 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt, in fill_image() argument
1033 RK_U8 *buf_c = buf + hor_stride * ver_stride; in fill_image()
1040 fill_MPP_FMT_YUV420SP(buf, width, height, hor_stride, ver_stride, frame_count); in fill_image()
1043 fill_MPP_FMT_YUV422SP(buf, width, height, hor_stride, ver_stride, frame_count); in fill_image()
1048 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1055 for (y = 0; y < height / 2; y++, p += hor_stride / 2) { in fill_image()
1061 p = buf_c + hor_stride * ver_stride / 4; in fill_image()
1062 for (y = 0; y < height / 2; y++, p += hor_stride / 2) { in fill_image()
1071 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1078 for (y = 0; y < height / 2; y++, p += hor_stride) { in fill_image()
1088 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1095 for (y = 0; y < height; y++, p += hor_stride / 2) { in fill_image()
1101 p = buf_c + hor_stride * ver_stride / 2; in fill_image()
1102 for (y = 0; y < height; y++, p += hor_stride / 2) { in fill_image()
1111 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1118 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1128 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1140 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1152 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1164 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1176 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1185 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1191 p = buf + hor_stride * ver_stride; in fill_image()
1192 for (y = 0; y < height; y++, p += hor_stride * 2) { in fill_image()
1202 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1207 p = buf + hor_stride * ver_stride; in fill_image()
1208 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1213 p = buf + hor_stride * ver_stride * 2; in fill_image()
1214 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1230 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1231 hor_stride *= pix_w; in fill_image()
1235 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1237 hor_stride = MPP_ALIGN(hor_stride, 16); in fill_image()
1241 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1260 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1261 hor_stride *= pix_w; in fill_image()
1265 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1267 hor_stride = MPP_ALIGN(hor_stride, 32); in fill_image()
1271 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1286 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1287 hor_stride *= pix_w; in fill_image()
1291 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1293 hor_stride = MPP_ALIGN(hor_stride, 24); in fill_image()
1297 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()