/third_party/ffmpeg/libswscale/ |
H A D | hscale_fast_bilinear.c | 24 const uint8_t *src, int srcW, int xInc) in ff_hyscale_fast_c() 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() 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() 23 ff_hyscale_fast_c(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc) ff_hyscale_fast_c() argument 38 ff_hcscale_fast_c(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) ff_hcscale_fast_c() argument
|
H A D | utils.c | 367 int *outFilterSize, int xInc, int srcW, in initFilter() 379 const int64_t fone = 1LL << (54 - FFMIN(av_log2(srcW/dstW), 8)); in initFilter() 454 filterSize = 1 + (sizeFactor * srcW + dstW - 1) / dstW; in initFilter() 456 filterSize = FFMIN(filterSize, srcW - 2); in initFilter() 472 d = d * dstW / srcW; in initFilter() 685 if ((*filterPos)[i] + filterSize > srcW) { in initFilter() 686 int shift = (*filterPos)[i] + FFMIN(filterSize - srcW, 0); in initFilter() 690 if ((*filterPos)[i] + j >= srcW) { in initFilter() 704 filter[i * filterSize + srcW - 1 - (*filterPos)[i]] += acc; in initFilter() 707 av_assert0((*filterPos)[i] < srcW); in initFilter() 366 initFilter(int16_t **outFilter, int32_t **filterPos, int *outFilterSize, int xInc, int srcW, int dstW, int filterAlign, int one, int flags, int cpu_flags, SwsVector *srcFilter, SwsVector *dstFilter, double param[2], int srcPos, int dstPos) initFilter() argument 972 int srcW = c->srcW; sws_setColorspaceDetails() local 1299 int srcW = c->srcW; sws_init_context() local 2025 sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, const double *param) sws_alloc_set_opts() argument 2050 sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) sws_getContext() argument 2456 sws_getCachedContext(struct SwsContext *context, int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) sws_getCachedContext() argument [all...] |
H A D | hscale.c | 41 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 c->hcscale_fast(c, (uint16_t*)dst1[dst_pos1+i], (uint16_t*)dst2[dst_pos2+i], dstW, src1[src_pos1+i], src2[src_pos2+i], srcW, xIn in chr_h_scale() local 204 int srcW = AV_CEIL_RSHIFT(desc->src->width, desc->src->h_chr_sub_sample); chr_convert() local [all...] |
H A D | swscale_unscaled.c | 149 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, srcSlice in planarToUyvyWrapper() [all...] |
H A D | gamma.c | 34 int srcW = desc->src->width; in gamma_convert() local 43 for (j = 0; j < srcW; ++j) { in gamma_convert()
|
H A D | swscale_internal.h | 320 int srcW; ///< Width of source luma/alpha planes. member 605 const uint8_t *src, int srcW, int xInc); 609 int srcW, int xInc); 973 const uint8_t *src, int srcW, int xInc); 976 const uint8_t *src2, int srcW, int xInc); 982 int srcW, int xInc); 985 const uint8_t *src2, int srcW, int xInc); 994 struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, 1097 int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative);
|
H A D | swscale.h | 176 * @param srcW the width of the source image 193 struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, 390 int srcW, int srcH, enum AVPixelFormat srcFormat,
|
H A D | slice.c | 147 int ff_init_slice_from_src(SwsSlice * s, uint8_t *src[4], int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative) 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()
|
H A D | alphablend.c | 50 int w = plane ? c->chrSrcW : c->srcW; in ff_sws_alphablendaway() 130 int w = c->srcW; in ff_sws_alphablendaway()
|
H A D | options.c | 54 { "srcw", "source width", OFFSET(srcW), AV_OPT_TYPE_INT, { .i64 = 16 }, 1, INT_MAX, VE },
|
H A D | swscale.c | 357 ff_init_slice_from_src(src_slice, (uint8_t**)src, srcStride, c->srcW, in swscale() 971 memcpy(base + srcStride[0]*y, src2[0] + srcStride[0]*y, 4*c->srcW); in scale_internal() 972 for (x=c->src0Alpha-1; x<4*c->srcW; x+=4) { in scale_internal() 979 if (c->srcXYZ && !(c->dstXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in scale_internal() 1047 if (c->dstXYZ && !(c->srcXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in scale_internal()
|
/third_party/ffmpeg/libswscale/tests/ |
H A D | swscale.c | 85 int srcW, int srcH, int dstW, int dstH, int flags, in doTest() 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 / in selfTest() 83 doTest(const uint8_t * const ref[4], int refStride[4], int w, int h, enum AVPixelFormat srcFormat, enum AVPixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags, struct Results *r) doTest() argument 316 int srcW = 0, srcH = 0; fileTest() local [all...] |
/third_party/skia/gm/ |
H A D | gpu_blur_utils.cpp | 206 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/ in run() [all...] |
/third_party/skia/src/core/ |
H A D | SkMaskBlurFilter.cpp | 553 const uint8_t* src, int srcW, 560 for (; x <= srcW - 8; x += 8) { 573 int srcTail = srcW - x; 596 const uint8_t* src, size_t srcStride, int srcW, 607 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); 614 const uint8_t* src, size_t srcStride, int srcW, 619 blur_x_rect(blur_x_radius_1, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); 623 blur_x_rect(blur_x_radius_2, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); 627 blur_x_rect(blur_x_radius_3, gauss, src, srcStride, srcW, dst, dstStride, dstW, dstH); 631 blur_x_rect(blur_x_radius_4, gauss, src, srcStride, srcW, ds [all...] |
H A D | SkScalerContext.cpp | 466 int srcW = mask.fBounds.width(); in generateMask() local 468 int dstW = srcW; in generateMask() 484 dstH = srcW; in generateMask()
|
/third_party/ffmpeg/libswscale/x86/ |
H A D | hscale_fast_bilinear_simd.c | 195 int srcW, int xInc) in ff_hyscale_fast_mmxext() 279 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) in ff_hyscale_fast_mmxext() 280 dst[i] = src[srcW-1]*128; in ff_hyscale_fast_mmxext() 285 const uint8_t *src2, int srcW, int xInc) in ff_hcscale_fast_mmxext() 356 for (i=dstWidth-1; (i*xInc)>>16 >=srcW-1; i--) { in ff_hcscale_fast_mmxext() 357 dst1[i] = src1[srcW-1]*128; in ff_hcscale_fast_mmxext() 358 dst2[i] = src2[srcW-1]*128; in ff_hcscale_fast_mmxext() 193 ff_hyscale_fast_mmxext(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc) ff_hyscale_fast_mmxext() argument 283 ff_hcscale_fast_mmxext(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) ff_hcscale_fast_mmxext() argument
|
/third_party/ffmpeg/libswscale/arm/ |
H A D | swscale_unscaled.c | 44 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)) { in get_unscaled_swscale_neon()
|
/third_party/skia/src/image/ |
H A D | SkRescaleAndReadPixels.cpp | 24 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/aarch64/ |
H A D | swscale_unscaled.c | 45 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/ |
H A D | yuv2yuv_altivec.c | 40 // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, in yv12toyuy2_unscaled_altivec() 45 const int width = c->srcW; in yv12toyuy2_unscaled_altivec() 116 // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, in yv12touyvy_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()
|
H A D | yuv2rgb_altivec.c | 302 int w = c->srcW; \ 478 int w = c->srcW; in altivec_uyvy_rgb32() 548 if ((c->srcW & 0xf) != 0) in ff_yuv2rgb_init_ppc()
|
H A D | swscale_vsx.c | 1670 const uint8_t *src, int srcW, int xInc) in hyscale_fast_vsx() 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() 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() 1669 hyscale_fast_vsx(SwsContext *c, int16_t *dst, int dstWidth, const uint8_t *src, int srcW, int xInc) hyscale_fast_vsx() argument 1784 hcscale_fast_vsx(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) hcscale_fast_vsx() argument
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkBlurImageFilter.cpp | 709 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()
|
H A D | SkDisplacementMapImageFilter.cpp | 207 const int srcW = src.width(); in compute_displacement() local 223 *dstPtr++ = ((srcX < 0) || (srcX >= srcW) || (srcY < 0) || (srcY >= srcH)) ? in compute_displacement()
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
H A D | xa_renderer.c | 284 float srcW, in setup_vertex_data_yuv() 296 spt1[0] = srcX + srcW; in setup_vertex_data_yuv() 281 setup_vertex_data_yuv(struct xa_context *r, float srcX, float srcY, float srcW, float srcH, float dstX, float dstY, float dstW, float dstH, struct xa_surface *srf[]) setup_vertex_data_yuv() argument
|