Home
last modified time | relevance | path

Searched refs:dstW (Results 1 – 25 of 54) sorted by relevance

123

/third_party/ffmpeg/libswscale/
Doutput.c145 yuv2plane1_16_c_template(const int32_t *src, uint16_t *dest, int dstW, in yuv2plane1_16_c_template() argument
152 for (i = 0; i < dstW; i++) { in yuv2plane1_16_c_template()
160 const int32_t **src, uint16_t *dest, int dstW, in yuv2planeX_16_c_template() argument
167 for (i = 0; i < dstW; i++) { in yuv2planeX_16_c_template()
214 yuv2plane1_float_c_template(const int32_t *src, float *dest, int dstW) in yuv2plane1_float_c_template() argument
222 for (i = 0; i < dstW; ++i){ in yuv2plane1_float_c_template()
230 yuv2plane1_float_bswap_c_template(const int32_t *src, uint32_t *dest, int dstW) in yuv2plane1_float_bswap_c_template() argument
238 for (i = 0; i < dstW; ++i){ in yuv2plane1_float_bswap_c_template()
247 float *dest, int dstW) in yuv2planeX_float_c_template() argument
255 for (i = 0; i < dstW; ++i){ in yuv2planeX_float_c_template()
[all …]
Dutils.c339 int dstW, int filterAlign, int one, in initFilter() argument
350 const int64_t fone = 1LL << (54 - FFMIN(av_log2(srcW/dstW), 8)); in initFilter()
356 if (!FF_ALLOC_TYPED_ARRAY(*filterPos, dstW + 3)) in initFilter()
362 if (!FF_ALLOCZ_TYPED_ARRAY(filter, dstW * filterSize)) in initFilter()
365 for (i = 0; i < dstW; i++) { in initFilter()
373 if (!FF_ALLOC_TYPED_ARRAY(filter, dstW * filterSize)) in initFilter()
377 for (i = 0; i < dstW; i++) { in initFilter()
389 if (!FF_ALLOC_TYPED_ARRAY(filter, dstW * filterSize)) in initFilter()
393 for (i = 0; i < dstW; i++) { in initFilter()
425 filterSize = 1 + (sizeFactor * srcW + dstW - 1) / dstW; in initFilter()
[all …]
Dvscale.c43 int dstW = desc->dst->width; in lum_planar_vscale() local
53 inst->pfn.yuv2planar1((const int16_t*)src[0], dst[0], dstW, c->lumDither8, 0); in lum_planar_vscale()
55 …inst->pfn.yuv2planarX(filter, inst->filter_size, (const int16_t**)src, dst[0], dstW, c->lumDither8… in lum_planar_vscale()
65 inst->pfn.yuv2planar1((const int16_t*)src[0], dst[0], dstW, c->lumDither8, 0); in lum_planar_vscale()
67 …inst->pfn.yuv2planarX(filter, inst->filter_size, (const int16_t**)src, dst[0], dstW, c->lumDither8… in lum_planar_vscale()
80 int dstW = AV_CEIL_RSHIFT(desc->dst->width, desc->dst->h_chr_sub_sample); in chr_planar_vscale() local
95 …hrDither8, filter, inst->filter_size, (const int16_t**)src1, (const int16_t**)src2, dst1[0], dstW); in chr_planar_vscale()
97 inst->pfn.yuv2planar1((const int16_t*)src1[0], dst1[0], dstW, c->chrDither8, 0); in chr_planar_vscale()
98 inst->pfn.yuv2planar1((const int16_t*)src2[0], dst2[0], dstW, c->chrDither8, 3); in chr_planar_vscale()
100 …inst->pfn.yuv2planarX(filter, inst->filter_size, (const int16_t**)src1, dst1[0], dstW, c->chrDithe… in chr_planar_vscale()
[all …]
Dhscale.c42 int dstW = desc->dst->width; in lum_h_scale() local
54 c->hyscale_fast(c, (int16_t*)dst[dst_pos], dstW, src[src_pos], srcW, xInc); in lum_h_scale()
56 … c->hyScale(c, (int16_t*)dst[dst_pos], dstW, (const uint8_t *)src[src_pos], instance->filter, in lum_h_scale()
61 c->lumConvertRange((int16_t*)dst[dst_pos], dstW); in lum_h_scale()
75 c->hyscale_fast(c, (int16_t*)dst[dst_pos], dstW, src[src_pos], srcW, xInc); in lum_h_scale()
77 … c->hyScale(c, (int16_t*)dst[dst_pos], dstW, (const uint8_t *)src[src_pos], instance->filter, in lum_h_scale()
170 int dstW = AV_CEIL_RSHIFT(desc->dst->width, desc->dst->h_chr_sub_sample); in chr_h_scale() local
187 …c->hcscale_fast(c, (uint16_t*)dst1[dst_pos1+i], (uint16_t*)dst2[dst_pos2+i], dstW, src1[src_pos1+i… in chr_h_scale()
189 …c->hcScale(c, (uint16_t*)dst1[dst_pos1+i], dstW, src1[src_pos1+i], instance->filter, instance->fil… in chr_h_scale()
190 …c->hcScale(c, (uint16_t*)dst2[dst_pos2+i], dstW, src2[src_pos2+i], instance->filter, instance->fil… in chr_h_scale()
[all …]
Dswscale_internal.h99 typedef void (*yuv2planar1_fn)(const int16_t *src, uint8_t *dest, int dstW,
116 const int16_t **src, uint8_t *dest, int dstW,
141 uint8_t *dest, int dstW);
176 int dstW, int uvalpha, int y);
210 int dstW, int yalpha, int uvalpha, int y);
243 int dstW, int y);
277 int dstW, int y);
481 int dstW; ///< Width of destination luma/alpha planes. member
611 void (*hyScale)(struct SwsContext *c, int16_t *dst, int dstW,
614 void (*hcScale)(struct SwsContext *c, int16_t *dst, int dstW,
[all …]
Dswscale.c67 static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW, in hScale16To19_c() argument
84 for (i = 0; i < dstW; i++) { in hScale16To19_c()
97 static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW, in hScale16To15_c() argument
112 for (i = 0; i < dstW; i++) { in hScale16To15_c()
126 static void hScale8To15_c(SwsContext *c, int16_t *dst, int dstW, in hScale8To15_c() argument
131 for (i = 0; i < dstW; i++) { in hScale8To15_c()
142 static void hScale8To19_c(SwsContext *c, int16_t *_dst, int dstW, in hScale8To19_c() argument
148 for (i = 0; i < dstW; i++) { in hScale8To19_c()
244 const int dstW = c->dstW; in swscale() local
354 ff_init_slice_from_src(vout_slice, (uint8_t**)dst, dstStride, c->dstW, in swscale()
[all …]
Dswscale.h187 int dstW, int dstH, enum AVPixelFormat dstFormat,
296 int dstW, int dstH, enum AVPixelFormat dstFormat,
/third_party/ffmpeg/tests/checkasm/
Dsw_scale.c42 const int16_t **src, uint8_t *dest, int dstW, in ref_function() argument
47 for ( i = 0; i < dstW; i++) { in ref_function()
66 int dstW; in check_yuv2yuvX() local
76 int dstW, const uint8_t *dither, int offset); in check_yuv2yuvX()
98 dstW = input_sizes[isi]; in check_yuv2yuvX()
110 if (check_func(ctx->yuv2planeX, "yuv2yuvX_%d_%d_%d", filter_sizes[fsi], osi, dstW)){ in check_yuv2yuvX()
118 … ref_function(&filter_coeff[0], filter_sizes[fsi], src, dst0, dstW - osi, dither, osi); in check_yuv2yuvX()
121 … call_new((const int16_t*)vFilterData, filter_sizes[fsi], src, dst1, dstW - osi, dither, osi); in check_yuv2yuvX()
124 if(dstW == LARGEST_INPUT_SIZE) in check_yuv2yuvX()
125 … bench_new((const int16_t*)vFilterData, filter_sizes[fsi], src, dst1, dstW - osi, dither, osi); in check_yuv2yuvX()
[all …]
/third_party/ffmpeg/libswscale/x86/
Dswscale_template.c263 uint8_t *dest, int dstW, int dstY) in RENAME()
266 x86_reg dstW_reg = dstW; in RENAME()
296 uint8_t *dest, int dstW, int dstY) in RENAME()
299 x86_reg dstW_reg = dstW; in RENAME()
325 uint8_t *dest, int dstW, int dstY) in RENAME()
328 x86_reg dstW_reg = dstW; in RENAME()
382 uint8_t *dest, int dstW, int dstY) in RENAME()
385 x86_reg dstW_reg = dstW; in RENAME()
406 uint8_t *dest, int dstW, int dstY) in RENAME()
409 x86_reg dstW_reg = dstW; in RENAME()
[all …]
Dswscale.c194 uint8_t *dest, int dstW, \
197 const int16_t **src, uint8_t *dest, int dstW, \
200 if(dstW > 0) \
201 … ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, dstW + offset, dither, offset); \
207 uint8_t *dest, int dstW, \
210 const int16_t **src, uint8_t *dest, int dstW, \
213 int remainder = (dstW % step); \
214 int pixelsProcessed = dstW - remainder; \
216 yuv2yuvX_mmx(filter, filterSize, src, dest, dstW, dither, offset); \
243 int dstW, const uint8_t *src, \
[all …]
Dhscale_fast_bilinear_simd.c30 av_cold int ff_init_hscaler_mmxext(int dstW, int xInc, uint8_t *filterCode, in ff_init_hscaler_mmxext() argument
134 for (i = 0; i < dstW / numSplits; i++) { in ff_init_hscaler_mmxext()
167 if (i + 4 - inc >= dstW) in ff_init_hscaler_mmxext()
/third_party/ffmpeg/libswscale/ppc/
Dswscale_altivec.c118 yuv2plane1_float_u(const int32_t *src, float *dest, int dstW, int start) in yuv2plane1_float_u() argument
126 for (i = start; i < dstW; ++i){ in yuv2plane1_float_u()
134 yuv2plane1_float_bswap_u(const int32_t *src, uint32_t *dest, int dstW, int start) in yuv2plane1_float_bswap_u() argument
142 for (i = start; i < dstW; ++i){ in yuv2plane1_float_bswap_u()
149 static void yuv2plane1_float_altivec(const int32_t *src, float *dest, int dstW) in yuv2plane1_float_altivec() argument
167 for (i = dst_u; i < dstW - 3; i += 4) { in yuv2plane1_float_altivec()
179 yuv2plane1_float_u(src, dest, dstW, i); in yuv2plane1_float_altivec()
182 static void yuv2plane1_float_bswap_altivec(const int32_t *src, uint32_t *dest, int dstW) in yuv2plane1_float_bswap_altivec() argument
202 for (i = dst_u; i < dstW - 3; i += 4) { in yuv2plane1_float_bswap_altivec()
217 yuv2plane1_float_bswap_u(src, dest, dstW, i); in yuv2plane1_float_bswap_altivec()
[all …]
Dswscale_ppc_template.c70 const int16_t **src, uint8_t *dest, int dstW, in yuv2planeX_u() argument
75 for (i = x; i < dstW; i++) { in yuv2planeX_u()
84 const int16_t **src, uint8_t *dest, int dstW, in FUNC()
92 for (i = dst_u; i < dstW - 15; i += 16) in FUNC()
96 yuv2planeX_u(filter, filterSize, src, dest, dstW, dither, offset, i); in FUNC()
99 static void FUNC(hScale_real)(SwsContext *c, int16_t *dst, int dstW, in FUNC()
107 for (i = 0; i < dstW; i++) { in FUNC()
118 for (i = 0; i < dstW; i++) { in FUNC()
136 for (i = 0; i < dstW; i++) { in FUNC()
155 for (i = 0; i < dstW; i++) { in FUNC()
[all …]
Dswscale_vsx.c91 static void yuv2plane1_8_u(const int16_t *src, uint8_t *dest, int dstW, in yuv2plane1_8_u() argument
95 for (i = start; i < dstW; i++) { in yuv2plane1_8_u()
101 static void yuv2plane1_8_vsx(const int16_t *src, uint8_t *dest, int dstW, in yuv2plane1_8_vsx() argument
120 for (i = dst_u; i < dstW - 15; i += 16) { in yuv2plane1_8_vsx()
134 yuv2plane1_8_u(src, dest, dstW, dither, offset, i); in yuv2plane1_8_vsx()
146 static void yuv2plane1_nbps_u(const int16_t *src, uint16_t *dest, int dstW, in yuv2plane1_nbps_u() argument
152 for (i = start; i < dstW; i++) { in yuv2plane1_nbps_u()
159 uint16_t *dest, int dstW, in yuv2plane1_nbps_vsx() argument
176 for (i = dst_u; i < dstW - 7; i += 8) { in yuv2plane1_nbps_vsx()
185 yuv2plane1_nbps_u(src, dest, dstW, big_endian, output_bits, i); in yuv2plane1_nbps_vsx()
[all …]
/third_party/vk-gl-cts/framework/opengl/
DgluTextureTestUtil.cpp481 float dstW = (float)dst.getWidth(); in sampleTextureProjected() local
496 float nx = wx / dstW; in sampleTextureProjected()
500 float triWx = triNdx ? dstW - wx : wx; in sampleTextureProjected()
522 float dstW = (float)dst.getWidth(); in sampleTextureProjected() local
540 float nx = wx / dstW; in sampleTextureProjected()
544 float triWx = triNdx ? dstW - wx : wx; in sampleTextureProjected()
660 const float dstW = float(dstSize.x()); in sampleTextureCube() local
678 const float nx = wx / dstW; in sampleTextureCube()
688 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy), in sampleTextureCube()
689 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy), in sampleTextureCube()
[all …]
/third_party/ffmpeg/libswscale/tests/
Dswscale.c85 int srcW, int srcH, int dstW, int dstH, int flags, in doTest() argument
144 res = av_image_fill_linesizes(dstStride, dstFormat, dstW); in doTest()
168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest()
179 desc_dst->name, dstW, dstH, in doTest()
205 outContext = sws_getContext(dstW, dstH, dstFormat, w, h, in doTest()
263 const int dstW[] = { srcW - srcW / 3, srcW, srcW + srcW / 3, 0 }; in selfTest() local
291 for (i = 0; dstW[i] && !res; i++) in selfTest()
295 srcW, srcH, dstW[i], dstH[j], flags[k], in selfTest()
319 int dstW = 0, dstH = 0; in fileTest() local
326 srcStr, &srcW, &srcH, dstStr, &dstW, &dstH, in fileTest()
[all …]
/third_party/flutter/skia/src/core/
DSkMask.cpp65 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination() local
69 size_t toAlloc = safe.mul(dstW, dstH); in PrepareDestination()
72 if (!SkTFitsIn<int>(dstW) || !SkTFitsIn<int>(dstH) || toAlloc > INT_MAX || !safe) { in PrepareDestination()
78 dst.fBounds.set(0, 0, SkTo<int>(dstW), SkTo<int>(dstH)); in PrepareDestination()
81 dst.fRowBytes = SkTo<uint32_t>(dstW); in PrepareDestination()
DSkMaskBlurFilter.cpp551 uint8_t* dst, int dstW) { in blur_row() argument
575 int dstTail = std::min(8, dstW - x); in blur_row()
584 int dstTail = dstW - x; in blur_row()
594 uint8_t* dst, size_t dstStride, int dstW, int dstH) { in blur_x_rect() argument
604 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
612 uint8_t* dst, size_t dstStride, int dstW, int dstH) { in direct_blur_x() argument
616 blur_x_rect(blur_x_radius_1, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
620 blur_x_rect(blur_x_radius_2, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
624 blur_x_rect(blur_x_radius_3, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
628 blur_x_rect(blur_x_radius_4, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
[all …]
/third_party/skia/src/core/
DSkMask.cpp65 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination() local
69 size_t toAlloc = safe.mul(dstW, dstH); in PrepareDestination()
72 if (!SkTFitsIn<int>(dstW) || !SkTFitsIn<int>(dstH) || toAlloc > INT_MAX || !safe) { in PrepareDestination()
78 dst.fBounds.setWH(SkTo<int>(dstW), SkTo<int>(dstH)); in PrepareDestination()
81 dst.fRowBytes = SkTo<uint32_t>(dstW); in PrepareDestination()
DSkMaskBlurFilter.cpp554 uint8_t* dst, int dstW) { in blur_row() argument
578 int dstTail = std::min(8, dstW - x); in blur_row()
587 int dstTail = dstW - x; in blur_row()
597 uint8_t* dst, size_t dstStride, int dstW, int dstH) { in blur_x_rect() argument
607 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
615 uint8_t* dst, size_t dstStride, int dstW, int dstH) { in direct_blur_x() argument
619 blur_x_rect(blur_x_radius_1, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
623 blur_x_rect(blur_x_radius_2, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
627 blur_x_rect(blur_x_radius_3, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
631 blur_x_rect(blur_x_radius_4, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); in direct_blur_x()
[all …]
/third_party/ffmpeg/libswscale/arm/
Dswscale.c24 void ff_hscale_8_to_15_neon(SwsContext *c, int16_t *dst, int dstW,
29 const int16_t **src, uint8_t *dest, int dstW,
/third_party/ffmpeg/libswscale/aarch64/
Dswscale.c24 void ff_hscale_8_to_15_neon(SwsContext *c, int16_t *dst, int dstW,
29 const int16_t **src, uint8_t *dest, int dstW,
/third_party/flutter/skia/gm/
Dasyncrescaleandread.cpp60 const SkIRect& srcRect, int dstW, int dstH, in do_read_and_scale_yuv() argument
63 SkASSERT(!(dstW & 0b1) && !(dstH & 0b1)); in do_read_and_scale_yuv()
81 } context(dstW, dstH); in do_read_and_scale_yuv()
97 surface->asyncRescaleAndReadPixelsYUV420(yuvCS, SkColorSpace::MakeSRGB(), srcRect, dstW, dstH, in do_read_and_scale_yuv()
132 return SkImage::MakeFromYUVATextures(gr, yuvCS, backendTextures, indices, {dstW, dstH}, in do_read_and_scale_yuv()
/third_party/flutter/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp411 dstW = dstBounds.width(), in copy_image_with_bounds() local
414 SkImageInfo dstInfo = SkImageInfo::Make(dstW, dstH, inputBM.colorType(), inputBM.alphaType()); in copy_image_with_bounds()
424 size_t dstWBytes = dstW * sizeof(uint32_t); in copy_image_with_bounds()
487 dstW = dstBounds.width(), in cpu_blur() local
490 SkImageInfo dstInfo = inputBM.info().makeWH(dstW, dstH); in cpu_blur()
542 intermediateWidth = dstW; in cpu_blur()
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DETC_Decoder.cpp677 bool ETC_Decoder::Decode(const unsigned char* src, unsigned char *dst, int w, int h, int dstW, int … in Decode() argument
693 …ETC2::DecodeBlock(sources, dstRow + (x * dstBpp), 1, x, y, dstW, dstH, dstPitch, inputType == ETC_… in Decode()
705 …ETC2::DecodeBlock(sources, dstRow + (x * dstBpp), 2, x, y, dstW, dstH, dstPitch, inputType == ETC_… in Decode()
716 …sources[0]->decodeBlock(dstRow + (x * dstBpp), x, y, dstW, dstH, dstPitch, alphaValues, inputType … in Decode()
727 ETC2::DecodeBlock(&sources[0], &(alphaValues[0][0]), 1, x, y, dstW, dstH, 4, false, false); in Decode()
731 sources[0]->decodeBlock(dstRow + (x * dstBpp), x, y, dstW, dstH, dstPitch, alphaValues, false); in Decode()

123