Home
last modified time | relevance | path

Searched refs:srcH (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/gm/
Dgpu_blur_utils.cpp207 int srcH = srcRect.height(); 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()
224 srcRect.makeOffset( 0, srcH), in run()
226 srcRect.makeOffset( 0, -srcH), 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()
119 src[p] = av_mallocz(srcStride[p] * srcH + 16); in doTest()
126 srcContext = sws_getContext(w, h, AV_PIX_FMT_YUVA420P, srcW, srcH, in doTest()
141 cur_srcH = srcH; in doTest()
168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest()
178 desc_src->name, srcW, srcH, in doTest()
183 sws_scale(dstContext, (const uint8_t * const*)src, srcStride, 0, srcH, dst, dstStride); in doTest()
262 const int srcH = h; in selfTest() local
264 const int dstH[] = { srcH - srcH / 3, srcH, srcH + srcH / 3, 0 }; in selfTest()
[all …]
/third_party/skia/src/image/
DSkRescaleAndReadPixels.cpp25 int srcH = srcRect.height(); in SkRescaleAndReadPixels() local
28 float sy = (float)resultInfo.height() / srcH; in SkRescaleAndReadPixels()
76 auto ii = SkImageInfo::Make(srcW, srcH, kRGBA_F16_SkColorType, bmp.info().alphaType(), in SkRescaleAndReadPixels()
110 nextH = srcH * 2; in SkRescaleAndReadPixels()
125 srcImage.get(), SkRect::Make(SkIRect::MakeXYWH(srcX, srcY, srcW, srcH)), in SkRescaleAndReadPixels()
131 srcH = nextH; in SkRescaleAndReadPixels()
/third_party/flutter/skia/src/core/
DSkMaskBlurFilter.cpp767 const uint8_t* src, size_t srcRB, int srcH, in blur_column() argument
779 for (int y = 0; y < srcH; y += 1) { in blur_column()
806 const uint8_t *src, size_t srcRB, int srcW, int srcH, in blur_y_rect() argument
819 src, srcRB, srcH, in blur_y_rect()
829 src, srcRB, srcH, in blur_y_rect()
836 const uint8_t* src, size_t srcRB, int srcW, int srcH, in direct_blur_y() argument
842 src, srcRB, srcW, srcH, in direct_blur_y()
848 src, srcRB, srcW, srcH, in direct_blur_y()
854 src, srcRB, srcW, srcH, in direct_blur_y()
860 src, srcRB, srcW, srcH, in direct_blur_y()
[all …]
DSkScalerContext.cpp460 int srcH = mask.fBounds.height(); in generateMask() local
462 int dstH = srcH; in generateMask()
/third_party/skia/src/core/
DSkMaskBlurFilter.cpp770 const uint8_t* src, size_t srcRB, int srcH, in blur_column() argument
782 for (int y = 0; y < srcH; y += 1) { in blur_column()
809 const uint8_t *src, size_t srcRB, int srcW, int srcH, in blur_y_rect() argument
822 src, srcRB, srcH, in blur_y_rect()
832 src, srcRB, srcH, in blur_y_rect()
839 const uint8_t* src, size_t srcRB, int srcW, int srcH, in direct_blur_y() argument
845 src, srcRB, srcW, srcH, in direct_blur_y()
851 src, srcRB, srcW, srcH, in direct_blur_y()
857 src, srcRB, srcW, srcH, in direct_blur_y()
863 src, srcRB, srcW, srcH, in direct_blur_y()
[all …]
DSkGpuBlurUtils.cpp368 int srcH = srcBounds.height(); in two_pass_gaussian() local
371 srcTop -= srcH; in two_pass_gaussian()
372 srcH *= 2; in two_pass_gaussian()
375 float floatH = srcH; in two_pass_gaussian()
378 int topClip = srcTop + n*srcH; in two_pass_gaussian()
383 int bottomClip = srcBounds.bottom() + n*srcH; in two_pass_gaussian()
DSkScalerContext.cpp467 int srcH = mask.fBounds.height(); in generateMask() local
469 int dstH = srcH; in generateMask()
/third_party/ffmpeg/libswscale/
Dutils.c918 c->srcW && c->srcH && c->dstW && c->dstH) { in sws_setColorspaceDetails()
922 int srcH = c->srcH; in sws_setColorspaceDetails() local
942 if (srcW*srcH > dstW*dstH) { in sws_setColorspaceDetails()
947 tmp_height = srcH; in sws_setColorspaceDetails()
955 c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, c->srcFormat, in sws_setColorspaceDetails()
1178 int srcH = c->srcH; in sws_init_context() local
1197 unscaled = (srcW == dstW && srcH == dstH); in sws_init_context()
1249 if (dstW < srcW && dstH < srcH) in sws_init_context()
1251 else if (dstW > srcW && dstH > srcH) in sws_init_context()
1262 if (srcW < 1 || srcH < 1 || dstW < 1 || dstH < 1) { in sws_init_context()
[all …]
Dswscale.h186 struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
295 int srcW, int srcH, enum AVPixelFormat srcFormat,
Dswscale.c380 int lastLumSrcY = FFMIN(c->srcH, firstLumSrcY + vLumFilterSize) - 1; in swscale()
381 int lastLumSrcY2 = FFMIN(c->srcH, firstLumSrcY2 + vLumFilterSize) - 1; in swscale()
771 ((srcSliceH& (macro_height-1)) && srcSliceY + srcSliceH != c->srcH) || in sws_scale()
772 srcSliceY + srcSliceH > c->srcH) { in sws_scale()
801 if (c->cascaded_context[0] && srcSliceY == 0 && srcSliceH == c->cascaded_context[0]->srcH) { in sws_scale()
829 if (c->sliceDir == 0 && srcSliceY != 0 && srcSliceY + srcSliceH != c->srcH) { in sws_scale()
928 if (c->srcXYZ && !(c->dstXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in sws_scale()
961 srcSliceY_internal = c->srcH-srcSliceY-srcSliceH; in sws_scale()
967 if (srcSliceY_internal + srcSliceH == c->srcH) in sws_scale()
971 if (c->dstXYZ && !(c->srcXYZ && c->srcW==c->dstW && c->srcH==c->dstH)) { in sws_scale()
Doptions.c57 …{ "srch", "source height", OFFSET(srcH), AV_OPT_TYPE_INT, { .i6…
Dswscale_internal.h292 int srcH; ///< Height of source luma/alpha planes. member
902 struct SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat,
Dslice.c297 …res = alloc_slice(&c->slice[0], c->srcFormat, c->srcH, c->chrSrcH, c->chrSrcHSubSample, c->chrSrcV… in ff_init_filters()
/third_party/flutter/skia/src/gpu/
DGrSurfaceContext.cpp450 int srcH = srcRect.height(); in rescale() local
467 float sy = (float)info.height() / srcH; 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()
523 nextH = srcH * 2; in rescale()
549 matrix.setScaleTranslate((float)srcW / nextW, (float)srcH / nextH, srcX, srcY); in rescale()
554 } else if (nextH == srcH) { 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/flutter/skia/src/image/
DSkSurface.cpp104 int srcH = srcRect.height(); in onAsyncRescaleAndReadPixels() local
106 float sy = (float)info.height() / srcH; in onAsyncRescaleAndReadPixels()
139 auto ii = SkImageInfo::Make(srcW, srcH, kRGBA_F16_SkColorType, in onAsyncRescaleAndReadPixels()
174 nextH = srcH * 2; in onAsyncRescaleAndReadPixels()
189 src->makeImageSnapshot(), SkIRect::MakeXYWH(srcX, srcY, srcW, srcH), in onAsyncRescaleAndReadPixels()
194 srcH = nextH; in onAsyncRescaleAndReadPixels()
/third_party/flutter/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp268 const uint32_t* src, int srcXStride, int srcYStride, int srcH, in blur_one_direction() argument
308 for (auto y = 0; y < srcH; y++) { in blur_one_direction()
486 srcH = srcBounds.height(), in cpu_blur() local
548 static_cast<uint32_t *>(src.getPixels()), 1, src.rowBytesAsPixels(), srcH, in cpu_blur()
DSkDisplacementMapEffect.cpp257 const int srcH = src.height(); in compute_displacement() local
272 *dstPtr++ = ((srcX < 0) || (srcX >= srcW) || (srcY < 0) || (srcY >= srcH)) ? in compute_displacement()
/third_party/ffmpeg/libswscale/aarch64/
Dswscale_unscaled.c105 && !(c->srcH & 1) \
/third_party/ffmpeg/libswscale/arm/
Dswscale_unscaled.c147 && !(c->srcH & 1) \
/third_party/skia/src/effects/imagefilters/
DSkDisplacementMapImageFilter.cpp206 const int srcH = src.height(); in compute_displacement() local
221 *dstPtr++ = ((srcX < 0) || (srcX >= srcW) || (srcY < 0) || (srcY >= srcH)) ? in compute_displacement()
DSkBlurImageFilter.cpp799 srcH = srcBounds.height(), in cpu_blur() local
856 for (auto y = 0; y < srcH; y++) { in cpu_blur()
/third_party/ffmpeg/libswscale/x86/
Dswscale.c117 if (firstLumSrcY < 0 || firstLumSrcY + vLumFilterSize > c->srcH) { in ff_updateMMXDitherTables()
120 int neg = -firstLumSrcY, i, end = FFMIN(c->srcH - firstLumSrcY, vLumFilterSize); in ff_updateMMXDitherTables()
/third_party/ffmpeg/libswscale/ppc/
Dyuv2rgb_altivec.c547 if ((c->srcH & 0x1) != 0) in ff_yuv2rgb_init_ppc()
/third_party/flutter/skia/dm/
DDMSrcSink.cpp1755 static SkISize auto_compute_translate(SkMatrix* matrix, int srcW, int srcH) { in auto_compute_translate() argument
1756 SkRect bounds = SkRect::MakeIWH(srcW, srcH); in auto_compute_translate()

12