/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/deps/ncnn/tests/ |
H A D | test_mat_pixel_resize.cpp | 95 ncnn::Mat b(target_width, target_height, 1, (size_t)ch, ch); in test_mat_pixel_resize() 97 if (ch == 1) resize_bilinear_c1(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 98 if (ch == 2) resize_bilinear_c2(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 99 if (ch == 3) resize_bilinear_c3(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 100 if (ch == 4) resize_bilinear_c4(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 114 ncnn::resize_bilinear(c, e, target_width, target_height); in test_mat_pixel_resize() 147 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_gray() 178 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgb() 209 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_bgr() 239 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgba() [all …]
|
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ncnn/tests/ |
H A D | test_mat_pixel_resize.cpp | 95 ncnn::Mat b(target_width, target_height, 1, (size_t)ch, ch); in test_mat_pixel_resize() 97 if (ch == 1) resize_bilinear_c1(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 98 if (ch == 2) resize_bilinear_c2(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 99 if (ch == 3) resize_bilinear_c3(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 100 if (ch == 4) resize_bilinear_c4(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 114 ncnn::resize_bilinear(c, e, target_width, target_height); in test_mat_pixel_resize() 147 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_gray() 178 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgb() 209 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_bgr() 239 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgba() [all …]
|
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/tests/ |
H A D | test_mat_pixel_resize.cpp | 95 ncnn::Mat b(target_width, target_height, 1, (size_t)ch, ch); in test_mat_pixel_resize() 97 if (ch == 1) resize_bilinear_c1(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 98 if (ch == 2) resize_bilinear_c2(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 99 if (ch == 3) resize_bilinear_c3(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 100 if (ch == 4) resize_bilinear_c4(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 114 ncnn::resize_bilinear(c, e, target_width, target_height); in test_mat_pixel_resize() 147 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_gray() 178 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgb() 209 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_bgr() 239 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgba() [all …]
|
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/tests/ |
H A D | test_mat_pixel_resize.cpp | 95 ncnn::Mat b(target_width, target_height, 1, (size_t)ch, ch); in test_mat_pixel_resize() 97 if (ch == 1) resize_bilinear_c1(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 98 if (ch == 2) resize_bilinear_c2(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 99 if (ch == 3) resize_bilinear_c3(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 100 if (ch == 4) resize_bilinear_c4(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 114 ncnn::resize_bilinear(c, e, target_width, target_height); in test_mat_pixel_resize() 147 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_gray() 178 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgb() 209 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_bgr() 239 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgba() [all …]
|
/dports/graphics/timg/timg-1.4.0/src/ |
H A D | image-source.cc | 66 *target_width = img_width; in CalcScaleToFitDisplay() 71 *target_width *= 2; in CalcScaleToFitDisplay() 77 *target_width = options.width; in CalcScaleToFitDisplay() 87 *target_width = (int) roundf(larger_fraction * img_width); in CalcScaleToFitDisplay() 94 *target_width = (int) roundf(height_fraction * img_width); in CalcScaleToFitDisplay() 105 *target_width = (int) roundf(smaller_fraction * img_width); in CalcScaleToFitDisplay() 110 *target_width *= width_stretch; in CalcScaleToFitDisplay() 119 *target_width = *target_width / options.cell_x_px * options.cell_x_px; in CalcScaleToFitDisplay() 124 if (*target_width <= 0) *target_width = 1; in CalcScaleToFitDisplay() 128 *target_width > img_width && *target_height > img_height) { in CalcScaleToFitDisplay() [all …]
|
/dports/misc/ncnn/ncnn-20211208/tests/ |
H A D | test_mat_pixel_resize.cpp | 98 ncnn::Mat b(target_width, target_height, 1, (size_t)ch, ch); in test_mat_pixel_resize() 100 if (ch == 1) resize_bilinear_c1(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 101 if (ch == 2) resize_bilinear_c2(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 102 if (ch == 3) resize_bilinear_c3(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 103 if (ch == 4) resize_bilinear_c4(a, w, h, b, target_width, target_height); in test_mat_pixel_resize() 117 ncnn::resize_bilinear(c, e, target_width, target_height, opt); in test_mat_pixel_resize() 153 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_gray() 187 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgb() 221 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_bgr() 254 if (memcmp(m, d2, target_width * target_height * d2.c) != 0) in test_mat_pixel_roi_resize_rgba() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libaom/source/libaom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 97 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 104 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 107 outbuf_u = outbuf + target_width * target_height; in main() 108 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 113 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 114 target_width / 2, target_height, target_width); in main() 115 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/firefox-esr/firefox-91.8.0/media/libvpx/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/aom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/net-im/tg_owt/tg_owt-d578c76/src/third_party/libvpx/source/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/multimedia/libvpx/libvpx-1.11.0/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/lang/spidermonkey60/firefox-60.9.0/media/libvpx/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/aom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/libaom/source/libaom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/libvpx/source/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/firefox/firefox-99.0/media/libvpx/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/firefox/firefox-99.0/third_party/aom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/aom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libvpx/source/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/multimedia/aom/aom-3.2.0/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 97 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 104 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 107 outbuf_u = outbuf + target_width * target_height; in main() 108 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 113 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 114 target_width / 2, target_height, target_width); in main() 115 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/aom/examples/ |
H A D | resize_util.c | 55 int width, height, target_width, target_height; in main() local 72 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 96 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 103 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 106 outbuf_u = outbuf + target_width * target_height; in main() 107 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 112 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 113 target_width / 2, target_height, target_width); in main() 114 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/mail/thunderbird/thunderbird-91.8.0/media/libvpx/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/lang/spidermonkey78/firefox-78.9.0/media/libvpx/libvpx/examples/ |
H A D | resize_util.c | 54 int width, height, target_width, target_height; in main() local 71 if (!parse_dim(argv[3], &target_width, &target_height)) { in main() 95 printf("Target size: %dx%d, Frames: ", target_width, target_height); in main() 102 outbuf = (uint8_t *)malloc(target_width * target_height * 3 / 2); in main() 105 outbuf_u = outbuf + target_width * target_height; in main() 106 outbuf_v = outbuf_u + target_width * target_height / 4; in main() 111 width, outbuf, target_width, outbuf_u, outbuf_v, in main() 112 target_width / 2, target_height, target_width); in main() 113 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
|
/dports/graphics/p5-Image-Scale/Image-Scale-0.12/ |
H A D | Scale.xs | 73 RETVAL = im->target_width; in resized_width() 96 if (im->target_width) { in resize() 97 im->target_width = 0; in resize() 113 if (!im->target_width && !im->target_height) { in resize() 172 im->target_height = im->target_width; in resize() 173 im->target_width = 0; in resize() 175 else if (!im->target_width) { in resize() 177 im->target_width = im->target_height; in resize() 188 else if (!im->target_width) { in resize() 191 if (im->target_width < 1) in resize() [all …]
|