Home
last modified time | relevance | path

Searched refs:src_width (Results 1 – 25 of 106) sorted by relevance

12345

/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_to_argb.cc35 int src_width, int src_height, in ConvertToARGB() argument
40 int aligned_src_width = (src_width + 1) & ~1; in ConvertToARGB()
60 src_width <= 0 || crop_width <= 0 || in ConvertToARGB()
93 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
94 r = RGB24ToARGB(src, src_width * 3, in ConvertToARGB()
99 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
100 r = RAWToARGB(src, src_width * 3, in ConvertToARGB()
105 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
106 r = ARGBToARGB(src, src_width * 4, in ConvertToARGB()
111 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
[all …]
Dconvert_to_i420.cc34 int src_width, int src_height, in ConvertToI420() argument
39 int aligned_src_width = (src_width + 1) & ~1; in ConvertToI420()
60 src_width <= 0 || crop_width <= 0 || in ConvertToI420()
103 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
104 r = RGB565ToI420(src, src_width * 2, in ConvertToI420()
111 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
112 r = ARGB1555ToI420(src, src_width * 2, in ConvertToI420()
119 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
120 r = ARGB4444ToI420(src, src_width * 2, in ConvertToI420()
127 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
Dscale.cc36 static void ScalePlaneDown2(int src_width, int src_height, in ScalePlaneDown2() argument
108 static void ScalePlaneDown2_16(int src_width, int src_height, in ScalePlaneDown2_16() argument
162 static void ScalePlaneDown4(int src_width, int src_height, in ScalePlaneDown4() argument
222 static void ScalePlaneDown4_16(int src_width, int src_height, in ScalePlaneDown4_16() argument
269 static void ScalePlaneDown34(int src_width, int src_height, in ScalePlaneDown34() argument
366 static void ScalePlaneDown34_16(int src_width, int src_height, in ScalePlaneDown34_16() argument
461 static void ScalePlaneDown38(int src_width, int src_height, in ScalePlaneDown38() argument
557 static void ScalePlaneDown38_16(int src_width, int src_height, in ScalePlaneDown38_16() argument
731 static void ScalePlaneBox(int src_width, int src_height, in ScalePlaneBox() argument
742 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, in ScalePlaneBox()
[all …]
Dscale_argb.cc33 static void ScaleARGBDown2(int src_width, int src_height, in ScaleARGBDown2() argument
93 static void ScaleARGBDown4Box(int src_width, int src_height, in ScaleARGBDown4Box() argument
140 static void ScaleARGBDownEven(int src_width, int src_height, in ScaleARGBDownEven() argument
152 assert(IS_ALIGNED(src_width, 2)); in ScaleARGBDownEven()
187 static void ScaleARGBBilinearDown(int src_width, int src_height, in ScaleARGBBilinearDown() argument
199 (src_width >= 32768) ? ScaleARGBFilterCols64_C : ScaleARGBFilterCols_C; in ScaleARGBBilinearDown()
207 if (xr > src_width) { in ScaleARGBBilinearDown()
208 xr = src_width; in ScaleARGBBilinearDown()
247 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScaleARGBBilinearDown()
289 static void ScaleARGBBilinearUp(int src_width, int src_height, in ScaleARGBBilinearUp() argument
[all …]
Dscale_common.cc653 void ScaleAddRow_C(const uint8* src_ptr, uint16* dst_ptr, int src_width) { in ScaleAddRow_C() argument
655 assert(src_width > 0); in ScaleAddRow_C()
656 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_C()
662 if (src_width & 1) { in ScaleAddRow_C()
667 void ScaleAddRow_16_C(const uint16* src_ptr, uint32* dst_ptr, int src_width) { in ScaleAddRow_16_C() argument
669 assert(src_width > 0); in ScaleAddRow_16_C()
670 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_16_C()
676 if (src_width & 1) { in ScaleAddRow_16_C()
1033 enum FilterMode ScaleFilterReduce(int src_width, int src_height, in ScaleFilterReduce() argument
1036 if (src_width < 0) { in ScaleFilterReduce()
[all …]
/external/libyuv/files/source/
Dconvert_to_argb.cc38 int src_width, in ConvertToARGB() argument
45 int aligned_src_width = (src_width + 1) & ~1; in ConvertToARGB()
64 if (crop_argb == NULL || sample == NULL || src_width <= 0 || in ConvertToARGB()
95 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
96 r = RGB24ToARGB(src, src_width * 3, crop_argb, argb_stride, crop_width, in ConvertToARGB()
100 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
101 r = RAWToARGB(src, src_width * 3, crop_argb, argb_stride, crop_width, in ConvertToARGB()
106 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
107 r = ARGBToARGB(src, src_width * 4, crop_argb, argb_stride, crop_width, in ConvertToARGB()
112 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
[all …]
Dconvert_to_i420.cc38 int src_width, in ConvertToI420() argument
45 int aligned_src_width = (src_width + 1) & ~1; in ConvertToI420()
66 if (!y || !u || !v || !sample || src_width <= 0 || crop_width <= 0 || in ConvertToI420()
103 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
104 r = RGB565ToI420(src, src_width * 2, y, y_stride, u, u_stride, v, in ConvertToI420()
108 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
109 r = ARGB1555ToI420(src, src_width * 2, y, y_stride, u, u_stride, v, in ConvertToI420()
113 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
114 r = ARGB4444ToI420(src, src_width * 2, y, y_stride, u, u_stride, v, in ConvertToI420()
118 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
Dscale.cc36 static void ScalePlaneDown2(int src_width, in ScalePlaneDown2() argument
53 (void)src_width; in ScalePlaneDown2()
140 static void ScalePlaneDown2_16(int src_width, in ScalePlaneDown2_16() argument
157 (void)src_width; in ScalePlaneDown2_16()
203 static void ScalePlaneDown4(int src_width, in ScalePlaneDown4() argument
217 (void)src_width; in ScalePlaneDown4()
277 static void ScalePlaneDown4_16(int src_width, in ScalePlaneDown4_16() argument
291 (void)src_width; in ScalePlaneDown4_16()
329 static void ScalePlaneDown34(int src_width, in ScalePlaneDown34() argument
344 (void)src_width; in ScalePlaneDown34()
[all …]
Dscale_argb.cc33 static void ScaleARGBDown2(int src_width, in ScaleARGBDown2() argument
54 (void)src_width; in ScaleARGBDown2()
128 static void ScaleARGBDown4Box(int src_width, in ScaleARGBDown4Box() argument
150 (void)src_width; in ScaleARGBDown4Box()
186 static void ScaleARGBDownEven(int src_width, in ScaleARGBDownEven() argument
205 (void)src_width; in ScaleARGBDownEven()
207 assert(IS_ALIGNED(src_width, 2)); in ScaleARGBDownEven()
252 static void ScaleARGBBilinearDown(int src_width, in ScaleARGBBilinearDown() argument
271 (src_width >= 32768) ? ScaleARGBFilterCols64_C : ScaleARGBFilterCols_C; in ScaleARGBBilinearDown()
279 if (xr > src_width) { in ScaleARGBBilinearDown()
[all …]
Dscale_common.cc747 void ScaleAddRow_C(const uint8* src_ptr, uint16* dst_ptr, int src_width) { in ScaleAddRow_C() argument
749 assert(src_width > 0); in ScaleAddRow_C()
750 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_C()
756 if (src_width & 1) { in ScaleAddRow_C()
761 void ScaleAddRow_16_C(const uint16* src_ptr, uint32* dst_ptr, int src_width) { in ScaleAddRow_16_C() argument
763 assert(src_width > 0); in ScaleAddRow_16_C()
764 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_16_C()
770 if (src_width & 1) { in ScaleAddRow_16_C()
1180 enum FilterMode ScaleFilterReduce(int src_width, in ScaleFilterReduce() argument
1185 if (src_width < 0) { in ScaleFilterReduce()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_gather.c82 unsigned src_width, in lp_build_gather_elem() argument
90 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem()
121 } else if (!util_is_power_of_two(src_width)) { in lp_build_gather_elem()
132 if (((src_width / 24) * 24 == src_width) && in lp_build_gather_elem()
133 util_is_power_of_two(src_width / 24)) { in lp_build_gather_elem()
134 LLVMSetAlignment(res, src_width / 24); in lp_build_gather_elem()
140 assert(src_width <= dst_width); in lp_build_gather_elem()
141 if (src_width < dst_width) { in lp_build_gather_elem()
146 LLVMConstInt(dst_elem_type, dst_width - src_width, 0), ""); in lp_build_gather_elem()
166 unsigned src_width, in lp_build_gather_elem_vec() argument
[all …]
/external/libyuv/files/unit_test/
Drotate_test.cc19 static void I420TestRotate(int src_width, in I420TestRotate() argument
27 if (src_width < 1) { in I420TestRotate()
28 src_width = 1; in I420TestRotate()
39 int src_i420_y_size = src_width * Abs(src_height); in I420TestRotate()
40 int src_i420_uv_size = ((src_width + 1) / 2) * ((Abs(src_height) + 1) / 2); in I420TestRotate()
56 I420Rotate(src_i420, src_width, src_i420 + src_i420_y_size, in I420TestRotate()
57 (src_width + 1) / 2, src_i420 + src_i420_y_size + src_i420_uv_size, in I420TestRotate()
58 (src_width + 1) / 2, dst_i420_c, dst_width, in I420TestRotate()
61 (dst_width + 1) / 2, src_width, src_height, mode); in I420TestRotate()
66 src_i420, src_width, src_i420 + src_i420_y_size, (src_width + 1) / 2, in I420TestRotate()
[all …]
Dscale_argb_test.cc26 static int ARGBTestFilter(int src_width, in ARGBTestFilter() argument
34 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in ARGBTestFilter()
41 (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2) * 4LL; in ARGBTestFilter()
42 int src_stride_argb = (b * 2 + Abs(src_width)) * 4; in ARGBTestFilter()
66 src_width, src_height, dst_argb_c + (dst_stride_argb * b) + b * 4, in ARGBTestFilter()
70 src_width, src_height, dst_argb_opt + (dst_stride_argb * b) + b * 4, in ARGBTestFilter()
76 src_width, src_height, dst_argb_c + (dst_stride_argb * b) + b * 4, in ARGBTestFilter()
85 src_width, src_height, in ARGBTestFilter()
121 int src_width, in TileARGBScale() argument
138 int r = ARGBScaleClip(src_argb, src_stride_argb, src_width, src_height, in TileARGBScale()
[all …]
Drotate_argb_test.cc19 void TestRotateBpp(int src_width, in TestRotateBpp() argument
28 if (src_width < 1) { in TestRotateBpp()
29 src_width = 1; in TestRotateBpp()
40 int src_stride_argb = src_width * kBpp; in TestRotateBpp()
57 src_width, src_height, mode); in TestRotateBpp()
62 src_width, src_height, mode); in TestRotateBpp()
67 src_width, src_height, mode); in TestRotateBpp()
72 src_width, src_height, mode); in TestRotateBpp()
86 static void ARGBTestRotate(int src_width, in ARGBTestRotate() argument
94 TestRotateBpp(src_width, src_height, dst_width, dst_height, mode, in ARGBTestRotate()
[all …]
Dscale_test.cc24 static int TestFilter(int src_width, in TestFilter() argument
32 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in TestFilter()
38 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter()
41 int64 src_y_plane_size = (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2); in TestFilter()
44 int src_stride_y = b * 2 + Abs(src_width); in TestFilter()
84 src_v + (src_stride_uv * b) + b, src_stride_uv, src_width, in TestFilter()
96 src_v + (src_stride_uv * b) + b, src_stride_uv, src_width, in TestFilter()
152 static int TestFilter_16(int src_width, in TestFilter_16() argument
158 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in TestFilter_16()
164 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter_16()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_copy_image.c43 int src_width, int src_height) in copy_image_with_memcpy() argument
54 assert(src_width % src_bw == 0); in copy_image_with_memcpy()
72 map_x2 = MAX2(src_x, dst_x) + src_width; in copy_image_with_memcpy()
89 src_x, src_y, src_width, src_height, in copy_image_with_memcpy()
92 dst_x, dst_y, src_width, src_height, in copy_image_with_memcpy()
96 src_width /= (int)src_bw; in copy_image_with_memcpy()
100 memcpy(dst_mapped, src_mapped, src_width * cpp); in copy_image_with_memcpy()
119 int src_width, int src_height) in copy_miptrees() argument
128 src_width, src_height); in copy_miptrees()
151 if (src_width < bw) in copy_miptrees()
[all …]
/external/webp/src/utils/
Drescaler_utils.c22 void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height, in WebPRescalerInit() argument
26 const int x_add = src_width, x_sub = dst_width; in WebPRescalerInit()
28 wrk->x_expand = (src_width < dst_width); in WebPRescalerInit()
30 wrk->src_width = src_width; in WebPRescalerInit()
77 int WebPRescalerGetScaledDimensions(int src_width, int src_height, in WebPRescalerGetScaledDimensions() argument
89 (int)(((uint64_t)src_width * height + src_height / 2) / src_height); in WebPRescalerGetScaledDimensions()
94 (int)(((uint64_t)src_height * width + src_width / 2) / src_width); in WebPRescalerGetScaledDimensions()
/external/libvpx/libvpx/test/
Dvp9_scale_test.cc63 const int src_width = kSizesToTest[w]; in RunTest() local
70 const int dst_width = src_width * sf_up / sf_down; in RunTest()
82 if (src_width > 4 * dst_width || src_height > 4 * dst_height) { in RunTest()
86 src_width, src_height, dst_width, dst_height)); in RunTest()
95 filter_type, phase_scaler, src_width, src_height, in RunTest()
154 const int src_width = 1280; in TEST_P() local
163 const int dst_width = src_width * sf_up / sf_down; in TEST_P()
173 ResetScaleImages(src_width, src_height, dst_width, dst_height)); in TEST_P()
193 filter_type, phase_scaler, src_width, src_height, dst_width, in TEST_P()
/external/libyuv/files/include/libyuv/
Dscale.h33 int src_width,
44 int src_width,
69 int src_width,
88 int src_width,
109 int src_width,
124 int src_width,
/external/libvpx/libvpx/third_party/libyuv/include/libyuv/
Dscale.h32 int src_width, int src_height,
39 int src_width, int src_height,
58 int src_width, int src_height,
69 int src_width, int src_height,
81 int src_width, int src_height,
89 int ScaleOffset(const uint8* src_i420, int src_width, int src_height,
/external/libyuv/files/docs/
Dfiltering.md16 If scaling down, the stepping rate is always src_width / dst_width.
18 dx = src_width / dst_width;
45 **Point** upsampling use stepping rate of src_width / dst_width and a starting coordinate of 0.
48 dx = src_width / dst_width;
55 dx = (src_width - 1) / (dst_width - 1);
64 dx = (src_width - 1) / (dst_width - 1);
70 dx = FixedDiv((src_width << 16) - 0x00010001, (dst << 16) - 0x00010000);
81 void ScaleSlope(int src_width, int src_height,
89 assert(src_width != 0);
95 *dx = FixedDiv(Abs(src_width), dst_width);
[all …]
/external/webrtc/talk/media/base/
Dvideoframe.cc107 int32_t src_width = static_cast<int>(GetWidth()); in CopyToPlanes() local
115 src_width, src_height) == 0; in CopyToPlanes()
164 size_t src_width = GetWidth(); in StretchToPlanes() local
166 if (width == src_width && height == src_height) { in StretchToPlanes()
176 if (src_width * height > src_height * width) { in StretchToPlanes()
178 src_width = ROUNDTO2(src_height * width / height); in StretchToPlanes()
179 int32_t iwidth_offset = ROUNDTO2((GetWidth() - src_width) / 2); in StretchToPlanes()
183 } else if (src_width * height < src_height * width) { in StretchToPlanes()
185 src_height = src_width * height / width; in StretchToPlanes()
198 static_cast<int>(src_width), static_cast<int>(src_height), in StretchToPlanes()
/external/webrtc/webrtc/common_video/libyuv/
Dscaler_unittest.cc29 int src_width, int src_height,
342 int src_width, int src_height, in ScaleSequence() argument
345 EXPECT_EQ(0, test_scaler_.Set(src_width, src_height, in ScaleSequence()
359 size_t src_required_size = CalcBufferSize(kI420, src_width, src_height); in ScaleSequence()
361 int size_y = src_width * src_height; in ScaleSequence()
362 int size_uv = ((src_width + 1) / 2) * ((src_height + 1) / 2); in ScaleSequence()
373 src_width, src_height, in ScaleSequence()
374 src_width, (src_width + 1) / 2, in ScaleSequence()
375 (src_width + 1) / 2); in ScaleSequence()
388 src_width, src_height, dst_width, dst_height); in ScaleSequence()
/external/mesa3d/src/mesa/main/
Dtexcompress_bptc.c1107 int src_width, int src_height, in write_rgb_indices_unorm() argument
1132 for (x = 0; x < src_width; x++) { in write_rgb_indices_unorm()
1150 if (src_width < BLOCK_SIZE) in write_rgb_indices_unorm()
1151 write_bits(writer, 2 * (BLOCK_SIZE - src_width), 0); in write_rgb_indices_unorm()
1153 src += src_rowstride - src_width * 4; in write_rgb_indices_unorm()
1163 int src_width, int src_height, in write_alpha_indices_unorm() argument
1178 for (x = 0; x < src_width; x++) { in write_alpha_indices_unorm()
1195 if (src_width < BLOCK_SIZE) in write_alpha_indices_unorm()
1196 write_bits(writer, 3 * (BLOCK_SIZE - src_width), 0); in write_alpha_indices_unorm()
1198 src += src_rowstride - src_width * 4; in write_alpha_indices_unorm()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_blit.c267 unsigned src_width, unsigned src_height, in emit_draw_packet() argument
277 calc_tex_coords(src_width, src_height, in emit_draw_packet()
338 unsigned src_width, in r100_blit() argument
367 if (reg_width + src_x_offset > src_width) in r100_blit()
368 reg_width = src_width - src_x_offset; in r100_blit()
387 src_width, src_height, src_pitch, src_offset, in r100_blit()
408 emit_tx_setup(r100, src_mesaformat, src_bo, src_offset, src_width, src_height, src_pitch); in r100_blit()
412 emit_draw_packet(r100, src_width, src_height, in r100_blit()

12345