Lines Matching refs:hor_stride

482                                      RK_S32 hor_stride, RK_S32 pix_w, FILE *fp)  in read_with_pixel_width()  argument
487 if (hor_stride < width * pix_w) { in read_with_pixel_width()
489 8 * pix_w, hor_stride, width, pix_w); in read_with_pixel_width()
493 hor_stride = width * pix_w; in read_with_pixel_width()
497 RK_S32 read_size = fread(buf + row * hor_stride, 1, width * pix_w, fp); in read_with_pixel_width()
513 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt) in read_image() argument
519 RK_U8 *buf_u = buf_y + hor_stride * ver_stride; // NOTE: diff from gen_yuv_image in read_image()
520 RK_U8 *buf_v = buf_u + hor_stride * ver_stride / 4; // NOTE: diff from gen_yuv_image in read_image()
577 read_size = fread(buf_y + row * hor_stride, 1, width, fp); in read_image()
587 read_size = fread(buf_u + row * hor_stride, 1, width, fp); in read_image()
596 read_size = fread(buf_y + row * hor_stride, 1, width, fp); in read_image()
606 read_size = fread(buf_u + row * hor_stride / 2, 1, width / 2, fp); in read_image()
614 read_size = fread(buf_v + row * hor_stride / 2, 1, width / 2, fp); in read_image()
627 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 4, fp); in read_image()
642 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 2, fp); in read_image()
648 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 3, fp); in read_image()
651 ret = read_with_pixel_width(buf_y, width, height, hor_stride, 1, fp); in read_image()
665 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV420SP() argument
673 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV420SP()
679 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV420SP()
680 for (y = 0; y < height / 2; y++, p += hor_stride) { in fill_MPP_FMT_YUV420SP()
689 RK_U32 hor_stride, RK_U32 ver_stride, in fill_MPP_FMT_YUV422SP() argument
697 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV422SP()
703 p = buf + hor_stride * ver_stride; in fill_MPP_FMT_YUV422SP()
704 for (y = 0; y < height; y++, p += hor_stride) { in fill_MPP_FMT_YUV422SP()
1048 RK_S32 hor_stride, RK_S32 pixel_size) in util_check_stride_by_pixel() argument
1050 if (!workaround && hor_stride < width * pixel_size) { in util_check_stride_by_pixel()
1052 hor_stride, width, pixel_size); in util_check_stride_by_pixel()
1054 hor_stride, pixel_size, hor_stride * pixel_size); in util_check_stride_by_pixel()
1061 static RK_S32 util_check_8_pixel_aligned(RK_S32 workaround, RK_S32 hor_stride, in util_check_8_pixel_aligned() argument
1065 if (!workaround && hor_stride != MPP_ALIGN_GEN(hor_stride, pixel_aign * pixel_size)) { in util_check_8_pixel_aligned()
1069 MPP_ALIGN_GEN(hor_stride, pixel_aign * pixel_size)); in util_check_8_pixel_aligned()
1077 RK_U32 hor_stride, RK_U32 ver_stride, MppFrameFormat fmt, in fill_image() argument
1082 RK_U8 *buf_c = buf + hor_stride * ver_stride; in fill_image()
1089 fill_MPP_FMT_YUV420SP(buf, width, height, hor_stride, ver_stride, frame_count); in fill_image()
1092 fill_MPP_FMT_YUV422SP(buf, width, height, hor_stride, ver_stride, frame_count); in fill_image()
1097 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1104 for (y = 0; y < height / 2; y++, p += hor_stride / 2) { in fill_image()
1110 p = buf_c + hor_stride * ver_stride / 4; in fill_image()
1111 for (y = 0; y < height / 2; y++, p += hor_stride / 2) { in fill_image()
1120 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1127 for (y = 0; y < height / 2; y++, p += hor_stride) { in fill_image()
1137 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1144 for (y = 0; y < height; y++, p += hor_stride / 2) { in fill_image()
1150 p = buf_c + hor_stride * ver_stride / 2; in fill_image()
1151 for (y = 0; y < height; y++, p += hor_stride / 2) { in fill_image()
1160 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1167 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1177 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1189 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1201 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1213 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1225 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1234 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1240 p = buf + hor_stride * ver_stride; in fill_image()
1241 for (y = 0; y < height; y++, p += hor_stride * 2) { in fill_image()
1251 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1256 p = buf + hor_stride * ver_stride; in fill_image()
1257 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1262 p = buf + hor_stride * ver_stride * 2; in fill_image()
1263 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1279 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1280 hor_stride *= pix_w; in fill_image()
1284 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1286 hor_stride = MPP_ALIGN(hor_stride, 16); in fill_image()
1290 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1309 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1310 hor_stride *= pix_w; in fill_image()
1314 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1316 hor_stride = MPP_ALIGN(hor_stride, 32); in fill_image()
1320 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()
1335 if (util_check_stride_by_pixel(is_pixel_stride, width, hor_stride, pix_w)) { in fill_image()
1336 hor_stride *= pix_w; in fill_image()
1340 if (util_check_8_pixel_aligned(not_8_pixel, hor_stride, in fill_image()
1342 hor_stride = MPP_ALIGN_GEN(hor_stride, 24); in fill_image()
1346 for (y = 0; y < height; y++, p += hor_stride) { in fill_image()