Home
last modified time | relevance | path

Searched refs:srcW (Results 1 – 25 of 30) 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()
Dutils.c338 int *outFilterSize, int xInc, int srcW, in initFilter() argument
350 const int64_t fone = 1LL << (54 - FFMIN(av_log2(srcW/dstW), 8)); in initFilter()
425 filterSize = 1 + (sizeFactor * srcW + dstW - 1) / dstW; in initFilter()
427 filterSize = FFMIN(filterSize, srcW - 2); in initFilter()
443 d = d * dstW / srcW; in initFilter()
656 if ((*filterPos)[i] + filterSize > srcW) { in initFilter()
657 int shift = (*filterPos)[i] + FFMIN(filterSize - srcW, 0); in initFilter()
661 if ((*filterPos)[i] + j >= srcW) { in initFilter()
675 filter[i * filterSize + srcW - 1 - (*filterPos)[i]] += acc; in initFilter()
678 av_assert0((*filterPos)[i] < srcW); in initFilter()
[all …]
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 …]
Dswscale_unscaled.c150 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in planarToNv12Wrapper()
171 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in nv12ToPlanarWrapper()
191 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in planarToNv24Wrapper()
212 copyPlane(src[0], srcStride[0], srcSliceY, srcSliceH, c->srcW, in nv24ToPlanarWrapper()
253 for (x = c->srcW; x > 0; x--) { in planarToP01xWrapper()
263 for (x = c->srcW / 2; x > 0; x--) { in planarToP01xWrapper()
299 for (x = c->srcW; x > 0; x--) { in planar8ToP01xleWrapper()
310 for (x = c->srcW / 2; x > 0; x--) { in planar8ToP01xleWrapper()
333 yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], in planarToYuy2Wrapper()
345 yv12touyvy(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], in planarToUyvyWrapper()
[all …]
Dswscale_internal.h294 int srcW; ///< Width of source luma/alpha planes. member
573 const uint8_t *src, int srcW, int xInc);
577 int srcW, int xInc);
891 const uint8_t *src, int srcW, int xInc);
894 const uint8_t *src2, int srcW, int xInc);
900 int srcW, int xInc);
903 const uint8_t *src2, int srcW, int xInc);
912 struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat,
1015 int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lu…
Dgamma.c34 int srcW = desc->src->width; in gamma_convert() local
43 for (j = 0; j < srcW; ++j) { in gamma_convert()
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
161 s->width = srcW; in ff_init_slice_from_src()
301 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()
130 int w = c->srcW; in ff_sws_alphablendaway()
Dswscale.c351 ff_init_slice_from_src(src_slice, (uint8_t**)src, srcStride, c->srcW, in swscale()
921 memcpy(base + srcStride[0]*y, src2[0] + srcStride[0]*y, 4*c->srcW); in sws_scale()
922 for (x=c->src0Alpha-1; x<4*c->srcW; x+=4) { in sws_scale()
929 if (c->srcXYZ && !(c->dstXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in sws_scale()
972 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/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 …]
DSkScalerContext.cpp466 int srcW = mask.fBounds.width(); in generateMask() local
468 int dstW = srcW; in generateMask()
484 dstH = srcW; in generateMask()
/third_party/ffmpeg/libswscale/x86/
Dhscale_fast_bilinear_simd.c194 int srcW, int xInc) in ff_hyscale_fast_mmxext() argument
278 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) in ff_hyscale_fast_mmxext()
279 dst[i] = src[srcW-1]*128; in ff_hyscale_fast_mmxext()
284 const uint8_t *src2, int srcW, int xInc) in ff_hcscale_fast_mmxext() argument
355 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { in ff_hcscale_fast_mmxext()
356 dst1[i] = src1[srcW-1]*128; in ff_hcscale_fast_mmxext()
357 dst2[i] = src2[srcW-1]*128; in ff_hcscale_fast_mmxext()
/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/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/ffmpeg/libswscale/aarch64/
Dswscale_unscaled.c45 return ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
78 return ff_##ifmt##_to_##ofmt##_neon(c->srcW, srcSliceH, \
103 && !(c->srcW & 15) \
/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.c302 int w = c->srcW; \
478 int w = c->srcW; in altivec_uyvy_rgb32()
548 if ((c->srcW & 0xf) != 0) in ff_yuv2rgb_init_ppc()
Dswscale_vsx.c1670 const uint8_t *src, int srcW, int xInc) in hyscale_fast_vsx() argument
1757 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) in hyscale_fast_vsx()
1758 dst[i] = src[srcW-1]*128; in hyscale_fast_vsx()
1786 const uint8_t *src2, int srcW, int xInc) in hcscale_fast_vsx() argument
1853 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { in hcscale_fast_vsx()
1854 dst1[i] = src1[srcW-1]*128; in hcscale_fast_vsx()
1855 dst2[i] = src2[srcW-1]*128; in hcscale_fast_vsx()
2091 if (c->flags & SWS_FAST_BILINEAR && c->dstW >= c->srcW && c->chrDstW >= c->chrSrcW) { in ff_sws_init_swscale_vsx()
/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()
DSkDisplacementMapImageFilter.cpp205 const int srcW = src.width(); in compute_displacement() local
221 *dstPtr++ = ((srcX < 0) || (srcX >= srcW) || (srcY < 0) || (srcY >= srcH)) ? in compute_displacement()
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_renderer.c284 float srcW, in setup_vertex_data_yuv() argument
296 spt1[0] = srcX + srcW; in setup_vertex_data_yuv()

12