Home
last modified time | relevance | path

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

12345

/external/libyuv/files/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/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()
58 src_width <= 0 || crop_width <= 0 || in ConvertToI420()
104 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
105 r = RGB565ToI420(src, src_width * 2, in ConvertToI420()
112 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
113 r = ARGB1555ToI420(src, src_width * 2, in ConvertToI420()
120 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
121 r = ARGB4444ToI420(src, src_width * 2, in ConvertToI420()
128 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
732 static void ScalePlaneBox(int src_width, int src_height, in ScalePlaneBox() argument
743 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()
255 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScaleARGBBilinearDown()
297 static void ScaleARGBBilinearUp(int src_width, int src_height, in ScaleARGBBilinearUp() argument
[all …]
Dscale_common.cc624 void ScaleAddRow_C(const uint8* src_ptr, uint16* dst_ptr, int src_width) { in ScaleAddRow_C() argument
626 assert(src_width > 0); in ScaleAddRow_C()
627 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_C()
633 if (src_width & 1) { in ScaleAddRow_C()
638 void ScaleAddRow_16_C(const uint16* src_ptr, uint32* dst_ptr, int src_width) { in ScaleAddRow_16_C() argument
640 assert(src_width > 0); in ScaleAddRow_16_C()
641 for (x = 0; x < src_width - 1; x += 2) { in ScaleAddRow_16_C()
647 if (src_width & 1) { in ScaleAddRow_16_C()
1011 enum FilterMode ScaleFilterReduce(int src_width, int src_height, in ScaleFilterReduce() argument
1014 if (src_width < 0) { in ScaleFilterReduce()
[all …]
/external/libyuv/files/unit_test/
Drotate_test.cc19 static void I420TestRotate(int src_width, int src_height, in I420TestRotate() argument
24 if (src_width < 1) { in I420TestRotate()
25 src_width = 1; in I420TestRotate()
36 int src_i420_y_size = src_width * Abs(src_height); in I420TestRotate()
37 int src_i420_uv_size = ((src_width + 1) / 2) * ((Abs(src_height) + 1) / 2); in I420TestRotate()
53 I420Rotate(src_i420, src_width, in I420TestRotate()
54 src_i420 + src_i420_y_size, (src_width + 1) / 2, in I420TestRotate()
55 src_i420 + src_i420_y_size + src_i420_uv_size, (src_width + 1) / 2, in I420TestRotate()
60 src_width, src_height, mode); in I420TestRotate()
64 I420Rotate(src_i420, src_width, in I420TestRotate()
[all …]
Dscale_argb_test.cc26 static int ARGBTestFilter(int src_width, int src_height, in ARGBTestFilter() argument
30 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in ARGBTestFilter()
36 int64 src_argb_plane_size = (Abs(src_width) + b * 2) * in ARGBTestFilter()
38 int src_stride_argb = (b * 2 + Abs(src_width)) * 4; in ARGBTestFilter()
62 src_width, src_height, in ARGBTestFilter()
67 src_width, src_height, in ARGBTestFilter()
74 src_width, src_height, in ARGBTestFilter()
84 src_width, src_height, in ARGBTestFilter()
119 int src_width, int src_height, in TileARGBScale() argument
134 src_width, src_height, in TileARGBScale()
[all …]
Drotate_argb_test.cc19 void TestRotateBpp(int src_width, int src_height, in TestRotateBpp() argument
26 if (src_width < 1) { in TestRotateBpp()
27 src_width = 1; in TestRotateBpp()
38 int src_stride_argb = src_width * kBpp; in TestRotateBpp()
56 src_width, src_height, mode); in TestRotateBpp()
62 src_width, src_height, mode); in TestRotateBpp()
68 src_width, src_height, mode); in TestRotateBpp()
74 src_width, src_height, mode); in TestRotateBpp()
88 static void ARGBTestRotate(int src_width, int src_height, in ARGBTestRotate() argument
94 TestRotateBpp(src_width, src_height, in ARGBTestRotate()
[all …]
Dscale_test.cc24 static int TestFilter(int src_width, int src_height, in TestFilter() argument
28 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in TestFilter()
34 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter()
37 int64 src_y_plane_size = (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2); in TestFilter()
40 int src_stride_y = b * 2 + Abs(src_width); in TestFilter()
80 src_width, src_height, in TestFilter()
93 src_width, src_height, in TestFilter()
152 static int TestFilter_16(int src_width, int src_height, in TestFilter_16() argument
155 if (!SizeValid(src_width, src_height, dst_width, dst_height)) { in TestFilter_16()
161 int src_width_uv = (Abs(src_width) + 1) >> 1; in TestFilter_16()
[all …]
/external/webp/src/utils/
Drescaler.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()
73 int WebPRescalerGetScaledDimensions(int src_width, int src_height, in WebPRescalerGetScaledDimensions() argument
84 width = (src_width * height + src_height / 2) / src_height; in WebPRescalerGetScaledDimensions()
88 height = (src_height * width + src_width / 2) / src_width; in WebPRescalerGetScaledDimensions()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_gather.c76 unsigned src_width, in lp_build_gather_elem() argument
82 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem()
94 assert(src_width <= dst_width); in lp_build_gather_elem()
95 if (src_width > dst_width) in lp_build_gather_elem()
97 if (src_width < dst_width) in lp_build_gather_elem()
118 unsigned src_width, in lp_build_gather() argument
128 src_width, dst_width, in lp_build_gather()
142 src_width, dst_width, in lp_build_gather()
/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,
Dscale_argb.h24 int src_width, int src_height,
32 int src_width, int src_height,
45 int src_width, int src_height,
/external/libyuv/files/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,
Dscale_argb.h24 int src_width, int src_height,
32 int src_width, int src_height,
44 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/drivers/dri/radeon/
Dradeon_blit.c275 unsigned src_width, unsigned src_height, in emit_draw_packet() argument
285 calc_tex_coords(src_width, src_height, in emit_draw_packet()
346 unsigned src_width, in r100_blit() argument
375 if (reg_width + src_x_offset > src_width) in r100_blit()
376 reg_width = src_width - src_x_offset; in r100_blit()
395 src_width, src_height, src_pitch, src_offset, in r100_blit()
416 emit_tx_setup(r100, src_mesaformat, src_bo, src_offset, src_width, src_height, src_pitch); in r100_blit()
420 emit_draw_packet(r100, src_width, src_height, in r100_blit()
/external/webrtc/talk/media/webrtc/
Dwebrtcvideoframefactory_unittest.cc62 int src_width, in VerifyFrame() argument
67 EXPECT_EQ(dest_frame->GetWidth(), src_width); in VerifyFrame()
74 EXPECT_EQ(dest_frame->GetHeight(), src_width); in VerifyFrame()
76 EXPECT_EQ(dest_frame->GetWidth(), src_width); in VerifyFrame()

12345