Home
last modified time | relevance | path

Searched refs:srcW (Results 1 – 25 of 34) sorted by relevance

12

/third_party/ffmpeg/libswscale/
Dhscale_fast_bilinear.c24 const uint8_t *src, int srcW, int xInc) in ff_hyscale_fast_c() argument
34 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) in ff_hyscale_fast_c()
35 dst[i] = src[srcW-1]*128; in ff_hyscale_fast_c()
40 const uint8_t *src2, int srcW, int xInc) in ff_hcscale_fast_c() argument
51 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { in ff_hcscale_fast_c()
52 dst1[i] = src1[srcW-1]*128; in ff_hcscale_fast_c()
53 dst2[i] = src2[srcW-1]*128; in ff_hcscale_fast_c()
Dhscale.c41 int srcW = desc->src->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()
75 c->hyscale_fast(c, (int16_t*)dst[dst_pos], dstW, src[src_pos], srcW, xInc); in lum_h_scale()
88 int srcW = desc->src->width; in lum_convert() local
108 c->lumToYV12(dst, src[0], src[1], src[2], srcW, pal); in lum_convert()
110 c->readLumPlanar(dst, src, srcW, c->input_rgb2yuv_table); in lum_convert()
117 c->alpToYV12(dst, src[3], src[1], src[2], srcW, pal); in lum_convert()
119 c->readAlpPlanar(dst, src, srcW, NULL); in lum_convert()
169 int srcW = AV_CEIL_RSHIFT(desc->src->width, desc->src->h_chr_sub_sample); in chr_h_scale() local
187 …t1[dst_pos1+i], (uint16_t*)dst2[dst_pos2+i], dstW, src1[src_pos1+i], src2[src_pos2+i], srcW, xInc); in chr_h_scale()
[all …]
Dutils.c337 int *outFilterSize, int xInc, int srcW, in initFilter() argument
349 const int64_t fone = 1LL << (54 - FFMIN(av_log2(srcW/dstW), 8)); in initFilter()
423 filterSize = 1 + (sizeFactor * srcW + dstW - 1) / dstW; in initFilter()
425 filterSize = FFMIN(filterSize, srcW - 2); in initFilter()
442 d = d * dstW / srcW; in initFilter()
655 if ((*filterPos)[i] + filterSize > srcW) { in initFilter()
656 int shift = (*filterPos)[i] + FFMIN(filterSize - srcW, 0); in initFilter()
660 if ((*filterPos)[i] + j >= srcW) { in initFilter()
674 filter[i * filterSize + srcW - 1 - (*filterPos)[i]] += acc; in initFilter()
677 av_assert0((*filterPos)[i] < srcW); in initFilter()
[all …]
Dswscale_unscaled.c149 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in planarToNv12Wrapper()
170 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in nv12ToPlanarWrapper()
190 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in planarToNv24Wrapper()
211 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in nv24ToPlanarWrapper()
252 for (x = c->srcW; x > 0; x--) { in planarToP01xWrapper()
262 for (x = c->srcW / 2; x > 0; x--) { in planarToP01xWrapper()
298 for (x = c->srcW; x > 0; x--) { in planar8ToP01xleWrapper()
309 for (x = c->srcW / 2; x > 0; x--) { in planar8ToP01xleWrapper()
332 yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], in planarToYuy2Wrapper()
344 yv12touyvy(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], in planarToUyvyWrapper()
[all …]
Dgamma.c34 int srcW = desc->src->width; in gamma_convert() local
43 for (j = 0; j < srcW; ++j) { in gamma_convert()
Dswscale_internal.h291 int srcW; ///< Width of source luma/alpha planes. member
570 const uint8_t *src, int srcW, int xInc);
574 int srcW, int xInc);
881 const uint8_t *src, int srcW, int xInc);
884 const uint8_t *src2, int srcW, int xInc);
890 int srcW, int xInc);
893 const uint8_t *src2, int srcW, int xInc);
902 struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat,
1005 int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lu…
Dswscale.h186 struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
295 int srcW, int srcH, enum AVPixelFormat srcFormat,
Dslice.c147 int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lu… in ff_init_slice_from_src() argument
166 s->width = srcW; in ff_init_slice_from_src()
302 res = alloc_lines(&c->slice[i], FFALIGN(c->srcW*2+78, 16), c->srcW); in ff_init_filters()
Dalphablend.c50 int w = plane ? c->chrSrcW : c->srcW; in ff_sws_alphablendaway()
129 int w = c->srcW; in ff_sws_alphablendaway()
Dswscale.c350 ff_init_slice_from_src(src_slice, (uint8_t**)src, srcStride, c->srcW, in swscale()
920 memcpy(base + srcStride[0]*y, src2[0] + srcStride[0]*y, 4*c->srcW); in sws_scale()
921 for (x=c->src0Alpha-1; x<4*c->srcW; x+=4) { in sws_scale()
928 if (c->srcXYZ && !(c->dstXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in sws_scale()
971 if (c->dstXYZ && !(c->srcXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in sws_scale()
Doptions.c56 …{ "srcw", "source width", OFFSET(srcW), AV_OPT_TYPE_INT, { .i6…
/third_party/skia/gm/
Dgpu_blur_utils.cpp206 int srcW = srcRect.width(); in run() local
213 srcRect.makeOutset(srcW/5, srcH/5) in run()
218 SkIRect::MakeXYWH(srcRect.x(), srcRect.y() + 3*srcH/4, srcW, srcH), in run()
219 SkIRect::MakeXYWH(srcRect.x(), srcRect.y() - 3*srcH/4, srcW, srcH) in run()
225 srcRect.makeOffset( srcW, 0), in run()
227 srcRect.makeOffset(-srcW, 0), in run()
232 SkIRect::MakeXYWH(-6.f*srcW/8.f, -7.f*srcH/8.f, 4.f*srcW/8.f, 20.f*srcH/8.f) in run()
234 SkIRect::MakeXYWH(-1.f*srcW/8.f, -7.f*srcH/8.f, 16.f*srcW/8.f, 2.f*srcH/8.f) in run()
236 SkIRect::MakeXYWH(10.f*srcW/8.f, -3.f*srcH/8.f, 4.f*srcW/8.f, 16.f*srcH/8.f) in run()
238 SkIRect::MakeXYWH(-7.f*srcW/8.f, 14.f*srcH/8.f, 18.f*srcW/8.f, 1.f*srcH/8.f) in run()
[all …]
/third_party/ffmpeg/libswscale/tests/
Dswscale.c85 int srcW, int srcH, int dstW, int dstH, int flags, in doTest() argument
104 if (cur_srcFormat != srcFormat || cur_srcW != srcW || cur_srcH != srcH) { in doTest()
111 res = av_image_fill_linesizes(srcStride, srcFormat, srcW); in doTest()
126 srcContext = sws_getContext(w, h, AV_PIX_FMT_YUVA420P, srcW, srcH, in doTest()
140 cur_srcW = srcW; in doTest()
168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest()
178 desc_src->name, srcW, srcH, in doTest()
261 const int srcW = w; in selfTest() local
263 const int dstW[] = { srcW - srcW / 3, srcW, srcW + srcW / 3, 0 }; in selfTest()
295 srcW, srcH, dstW[i], dstH[j], flags[k], in selfTest()
[all …]
/third_party/flutter/skia/src/core/
DSkMaskBlurFilter.cpp550 const uint8_t* src, int srcW, in blur_row() argument
557 for (; x <= srcW - 8; x += 8) { in blur_row()
570 int srcTail = srcW - x; in blur_row()
593 const uint8_t* src, size_t srcStride, int srcW, in blur_x_rect() argument
604 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
611 const uint8_t* src, size_t srcStride, int srcW, 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/
DSkMaskBlurFilter.cpp553 const uint8_t* src, int srcW, in blur_row() argument
560 for (; x <= srcW - 8; x += 8) { in blur_row()
573 int srcTail = srcW - x; in blur_row()
596 const uint8_t* src, size_t srcStride, int srcW, in blur_x_rect() argument
607 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
614 const uint8_t* src, size_t srcStride, int srcW, 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/skia/src/image/
DSkRescaleAndReadPixels.cpp24 int srcW = srcRect.width(); in SkRescaleAndReadPixels() local
27 float sx = (float)resultInfo.width() / srcW; in SkRescaleAndReadPixels()
76 auto ii = SkImageInfo::Make(srcW, srcH, kRGBA_F16_SkColorType, bmp.info().alphaType(), in SkRescaleAndReadPixels()
101 nextW = srcW * 2; in SkRescaleAndReadPixels()
125 srcImage.get(), SkRect::Make(SkIRect::MakeXYWH(srcX, srcY, srcW, srcH)), in SkRescaleAndReadPixels()
130 srcW = nextW; in SkRescaleAndReadPixels()
/third_party/ffmpeg/libswscale/x86/
Dhscale_fast_bilinear_simd.c193 int srcW, int xInc) in ff_hyscale_fast_mmxext() argument
277 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) in ff_hyscale_fast_mmxext()
278 dst[i] = src[srcW-1]*128; in ff_hyscale_fast_mmxext()
283 const uint8_t *src2, int srcW, int xInc) in ff_hcscale_fast_mmxext() argument
354 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { in ff_hcscale_fast_mmxext()
355 dst1[i] = src1[srcW-1]*128; in ff_hcscale_fast_mmxext()
356 dst2[i] = src2[srcW-1]*128; in ff_hcscale_fast_mmxext()
/third_party/ffmpeg/libswscale/arm/
Dswscale_unscaled.c44 context->srcW, srcSliceH, in rgbx_to_nv12_neon_32_wrapper()
58 context->srcW, srcSliceH, in rgbx_to_nv12_neon_16_wrapper()
86 ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
121 ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
148 && !(c->srcW & 15) \
165 && (c->srcW >= 16)) {
/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp449 int srcW = srcRect.width(); in rescale() local
466 float sx = (float)info.width() / srcW; in rescale()
491 SkBackingFit::kExact, srcW, srcH, GrColorType::kRGBA_F16, cs, 1, GrMipMapped::kNo, in rescale()
498 SkRect::MakeWH(srcW, srcH), GrAA::kNo, GrQuadAAFlags::kNone, in rescale()
514 nextW = srcW * 2; in rescale()
549 matrix.setScaleTranslate((float)srcW / nextW, (float)srcH / nextH, srcX, srcY); in rescale()
552 if (nextW == srcW) { in rescale()
557 if (srcW != texProxy->width() || srcH != texProxy->height()) { in rescale()
559 SkIRect::MakeXYWH(srcX, srcY, srcW, srcH), GrTextureDomain::kClamp_Mode); in rescale()
575 auto srcSubset = SkRect::MakeXYWH(srcX, srcY, srcW, srcH); in rescale()
[all …]
/third_party/ffmpeg/libswscale/aarch64/
Dswscale_unscaled.c45 ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
79 ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
106 && !(c->srcW & 15) \
/third_party/flutter/skia/src/image/
DSkSurface.cpp103 int srcW = srcRect.width(); in onAsyncRescaleAndReadPixels() local
105 float sx = (float)info.width() / srcW; in onAsyncRescaleAndReadPixels()
139 auto ii = SkImageInfo::Make(srcW, srcH, kRGBA_F16_SkColorType, in onAsyncRescaleAndReadPixels()
165 nextW = srcW * 2; in onAsyncRescaleAndReadPixels()
189 src->makeImageSnapshot(), SkIRect::MakeXYWH(srcX, srcY, srcW, srcH), in onAsyncRescaleAndReadPixels()
193 srcW = nextW; in onAsyncRescaleAndReadPixels()
/third_party/flutter/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp410 auto srcW = srcBounds.width(), in copy_image_with_bounds() local
437 srcW * sizeof(uint32_t)); in copy_image_with_bounds()
439 dstPtr += srcW; in copy_image_with_bounds()
440 x += srcW; in copy_image_with_bounds()
485 auto srcW = srcBounds.width(), in cpu_blur() local
515 auto intermediateWidth = srcW; in cpu_blur()
/third_party/ffmpeg/libswscale/ppc/
Dyuv2yuv_altivec.c45 const int width = c->srcW; in yv12toyuy2_unscaled_altivec()
121 const int width = c->srcW; in yv12touyvy_unscaled_altivec()
193 if (!(c->srcW & 15) && !(c->flags & SWS_BITEXACT) && in ff_get_unscaled_swscale_ppc()
Dyuv2rgb_altivec.c291 int w = c->srcW; \
467 int w = c->srcW; in altivec_uyvy_rgb32()
537 if ((c->srcW & 0xf) != 0) in ff_yuv2rgb_init_ppc()
/third_party/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp709 auto srcW = srcBounds.width(), in copy_image_with_bounds() local
736 srcW * sizeof(uint32_t)); in copy_image_with_bounds()
738 dstPtr += srcW; in copy_image_with_bounds()
739 x += srcW; in copy_image_with_bounds()
798 auto srcW = srcBounds.width(), in cpu_blur() local
823 auto intermediateWidth = srcW; in cpu_blur()

12