/third_party/ffmpeg/libswscale/tests/ |
H A D | swscale.c | 85 int srcW, int srcH, int dstW, int dstH, int flags, in doTest() 159 dst[i] = av_mallocz(dstStride[i] * dstH + 16); in doTest() 168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest() 179 desc_dst->name, dstW, dstH, in doTest() 187 dstStride[i] * dstH); in doTest() 205 outContext = sws_getContext(dstW, dstH, dstFormat, w, h, in doTest() 215 sws_scale(outContext, (const uint8_t * const *) dst, dstStride, 0, dstH, in doTest() 264 const int dstH[] = { srcH - srcH / 3, srcH, srcH + srcH / 3, 0 }; in selfTest() local 292 for (j = 0; dstH[j] && !res; j++) in selfTest() 295 srcW, srcH, dstW[i], dstH[ 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 319 int dstW = 0, dstH = 0; fileTest() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_image.cpp | 181 float dstH; member 201 tempRectF.SetAll(0.f, (imageParameter.dstH - imageParameter.srcH) / CENTER_ALIGNED_FACTOR, in ApplyImageFitSwitch() 206 (imageParameter.dstH - imageParameter.srcH) / CENTER_ALIGNED_FACTOR, in ApplyImageFitSwitch() 211 (imageParameter.dstH - imageParameter.srcH) / CENTER_ALIGNED_FACTOR, in ApplyImageFitSwitch() 215 tempRectF.SetAll(0.f, imageParameter.dstH - imageParameter.srcH, imageParameter.srcW, imageParameter.srcH); in ApplyImageFitSwitch() 219 imageParameter.dstH - imageParameter.srcH, imageParameter.srcW, imageParameter.srcH); in ApplyImageFitSwitch() 222 tempRectF.SetAll(imageParameter.dstW - imageParameter.srcW, imageParameter.dstH - imageParameter.srcH, in ApplyImageFitSwitch() 229 imageParameter.dstH = imageParameter.srcH; in ApplyImageFitSwitch() 233 imageParameter.dstH = std::max(imageParameter.frameH, imageParameter.frameW / imageParameter.ratio); in ApplyImageFitSwitch() 236 imageParameter.dstH in ApplyImageFitSwitch() 281 float dstH = frameH; ApplyImageFit() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_yuv_ext.cpp | 91 bool PixelYuvExt::resize(int32_t dstW, int32_t dstH) in resize() argument 93 scale(dstW, dstH); in resize() 106 void PixelYuvExt::scale(int32_t dstW, int32_t dstH) in scale() argument 120 scale(dstW, dstH, operation); in scale() 149 int32_t dstH = (imageInfo.size.height * yAxis + ROUND_FLOAT_NUMBER); in scale() local 151 auto m = CreateMemory(imageInfo.pixelFormat, "Trans ImageData", dstW, dstH, dstStrides); in scale() 167 imageInfo.size.height = dstH; in scale() 173 void PixelYuvExt::scale(int32_t dstW, int32_t dstH, const AntiAliasingOption &option) in scale() argument 176 IMAGE_LOGI("%{public}s (%{public}d, %{public}d)", __func__, dstW, dstH); in scale() 181 auto m = CreateMemory(imageInfo.pixelFormat, "Trans ImageData", dstW, dstH, dstStride in scale() [all...] |
H A D | pixel_yuv.cpp | 365 void PixelYuv::scale(int32_t dstW, int32_t dstH) in scale() argument 368 return scale(dstW, dstH, AntiAliasingOption::NONE); in scale() 371 bool PixelYuv::resize(int32_t dstW, int32_t dstH) in resize() argument 374 scale(dstW, dstH, AntiAliasingOption::NONE); in resize() 397 int32_t dstH = imageInfo.size.height * yAxis; in scale() local 399 auto dstMemory = CreateMemory(imageInfo.pixelFormat, "scale ImageData", dstW, dstH, dstStrides); in scale() 410 dstW, dstH, imageInfo_.pixelFormat, yuvDataInfo}; in scale() 416 imageInfo.size.height = dstH; in scale() 425 void PixelYuv::scale(int32_t dstW, int32_t dstH, const AntiAliasingOption &option) in scale() argument 433 if (imageInfo.size.width == dstW && imageInfo.size.height == dstH in scale() [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluTextureTestUtil.cpp | 482 float dstH = (float)dst.getHeight(); in sampleTextureProjected() local 497 float ny = wy / dstH; in sampleTextureProjected() 501 float triWy = triNdx ? dstH - wy : wy; in sampleTextureProjected() 523 float dstH = (float)dst.getHeight(); in sampleTextureProjected() local 541 float ny = wy / dstH; in sampleTextureProjected() 545 float triWy = triNdx ? dstH - wy : wy; in sampleTextureProjected() 661 const float dstH = float(dstSize.y()); in sampleTextureCube() local 679 const float ny = wy / dstH; in sampleTextureCube() 691 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx), in sampleTextureCube() 692 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triN in sampleTextureCube() 867 float dstH = (float)dst.getHeight(); sampleTextureProjected() local 937 const float dstH = (float)dst.getHeight(); sampleTextureCubeArray() local 1311 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 1427 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 1644 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 1841 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 2018 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 2126 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 2324 const float dstH = float(dstSize.y()); computeTextureLookupDiff() local 2504 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 2619 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 2743 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 2857 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 2963 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 3072 const float dstH = float(dstSize.y()); computeTextureCompareDiff() local 3184 const float dstH = float(dst.getHeight()); compareGenMipmapBilinear() local 3220 const float dstH = float(dst.getHeight()); compareGenMipmapBox() local 3257 const float dstH = float(dst.getHeight()); compareGenMipmapVeryLenient() local [all...] |
/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | pixel_yuv_ext.h | 37 NATIVEEXPORT void scale(int32_t dstW, int32_t dstH); 38 NATIVEEXPORT void scale(int32_t dstW, int32_t dstH, const AntiAliasingOption &option); 40 NATIVEEXPORT bool resize(int32_t dstW, int32_t dstH);
|
H A D | pixel_yuv.h | 55 NATIVEEXPORT void scale(int32_t dstW, int32_t dstH); 56 NATIVEEXPORT void scale(int32_t dstW, int32_t dstH, const AntiAliasingOption &option); 58 NATIVEEXPORT bool resize(int32_t dstW, int32_t dstH);
|
/third_party/skia/src/core/ |
H A D | SkMask.cpp | 66 // dstH = srcH + 2 * radiusY; in PrepareDestination() 67 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); 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()
|
H A D | SkMaskBlurFilter.cpp | 597 uint8_t* dst, size_t dstStride, int dstW, int dstH) { 606 for (int y = 0; y < dstH; y++) { 615 uint8_t* dst, size_t dstStride, int dstW, int dstH) { 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, dst, dstStride, dstW, dstH); 911 dstH = dst->fBounds.height(); 950 dst->fImage, dstRB, dstW, dstH); 985 dstH [all...] |
H A D | SkScalerContext.cpp | 469 int dstH = srcH; in generateMask() local 483 dstW = 4*dstH - 8; in generateMask() 484 dstH = srcW; in generateMask() 508 clip.setRect(SkIRect::MakeWH(dstW, dstH)); in generateMask() 510 const SkImageInfo info = SkImageInfo::MakeA8(dstW, dstH); in generateMask()
|
/third_party/ffmpeg/libswscale/ |
H A D | utils.c | 969 c->srcW && c->srcH && c->dstW && c->dstH) { in sws_setColorspaceDetails() 975 int dstH = c->dstH; in sws_setColorspaceDetails() local 993 if (srcW*srcH > dstW*dstH) { in sws_setColorspaceDetails() 995 tmp_height = dstH; in sws_setColorspaceDetails() 1022 dstW, dstH, c->dstFormat, in sws_setColorspaceDetails() 1302 int dstH = c->dstH; in sws_init_context() local 1327 unscaled = (srcW == dstW && srcH == dstH); in sws_init_context() 1379 if (dstW < srcW && dstH < src in sws_init_context() 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 | swscale.c | 239 const int scale_dst = dstSliceY > 0 || dstSliceH < c->dstH; in swscale() 244 int dstH = c->dstH; in swscale() local 304 DEBUG_BUFFERS("srcSliceY: %d srcSliceH: %d dstY: %d dstH: %d\n", in swscale() 305 srcSliceY, srcSliceH, dstY, dstH); in swscale() 337 dstH = dstY + dstSliceH; in swscale() 376 for (; dstY < dstH; dstY++) { in swscale() 382 const int firstLumSrcY2 = FFMAX(1 - vLumFilterSize, vLumFilterPos[FFMIN(dstY | ((1 << c->chrDstVSubSample) - 1), c->dstH - 1)]); in swscale() 486 if (dstY >= c->dstH - 2) { in swscale() 842 c->cascaded1_tmp, c->cascaded1_tmpStride, 0, c->dstH); in scale_gamma() [all...] |
H A D | slice.c | 222 int dstH = c->dstH; in get_min_buffer_size() local 233 for (lumY = 0; lumY < dstH; lumY++) { in get_min_buffer_size() 234 int chrY = (int64_t)lumY * chrDstH / dstH; in get_min_buffer_size() 314 res = alloc_slice(&c->slice[i], c->dstFormat, c->dstH, c->chrDstH, c->chrDstHSubSample, c->chrDstVSubSample, 0); in ff_init_filters()
|
H A D | swscale.h | 180 * @param dstH the height of the destination image 194 int dstW, int dstH, enum AVPixelFormat dstFormat, 391 int dstW, int dstH, enum AVPixelFormat dstFormat,
|
H A D | options.c | 57 { "dsth", "destination height", OFFSET(dstH), AV_OPT_TYPE_INT, { .i64 = 16 }, 1, INT_MAX, VE },
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | ETC_Decoder.cpp | 677 bool ETC_Decoder::Decode(const unsigned char* src, unsigned char *dst, int w, int h, int dstW, int dstH, int dstPitch, int dstBpp, InputType inputType) in Decode() argument 693 ETC2::DecodeBlock(sources, dstRow + (x * dstBpp), 1, x, y, dstW, dstH, dstPitch, inputType == ETC_R_SIGNED, true); in Decode() 705 ETC2::DecodeBlock(sources, dstRow + (x * dstBpp), 2, x, y, dstW, dstH, dstPitch, inputType == ETC_RG_SIGNED, true); in Decode() 716 sources[0]->decodeBlock(dstRow + (x * dstBpp), x, y, dstW, dstH, dstPitch, alphaValues, inputType == ETC_RGB_PUNCHTHROUGH_ALPHA); 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()
|
H A D | ETC_Decoder.hpp | 35 /// @param dstH dst image height 40 static bool Decode(const unsigned char* src, unsigned char *dst, int w, int h, int dstW, int dstH, int dstPitch, int dstBpp, InputType inputType);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_ext_utils.cpp | 139 std::unique_ptr<uint8_t[]> tmpPixels = std::make_unique<uint8_t[]>(GetImageSize(size.dstW, size.dstH)); in NV12Rotate() 143 uint8_t *tmpU = tmpPixels.get()+ GetYSize(size.dstW, size.dstH); in NV12Rotate() 144 uint8_t *tmpV = tmpPixels.get()+ GetVOffset(size.dstW, size.dstH); in NV12Rotate() 164 int dstHeight = size.dstH; in NV12Rotate() 196 uint16_t* rotateU = rotatePixels.get() + GetYSize(size.dstW, size.dstH); in NV12P010Rotate() 197 uint16_t* rotateV = rotatePixels.get() + GetVOffset(size.dstW, size.dstH); in NV12P010Rotate() 212 dstbufferY, dstYStride, dstbufferUV, dstUVStride, size.dstW, size.dstH) == -1) { in NV12P010Rotate()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/ |
H A D | pixel_yuv_utils.h | 52 int32_t dstH = 0; member
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | command_parser.h | 91 int32_t dstH; member
|
H A D | command_parser.cpp | 421 coordinate >> waterMark.dstX >> c >> waterMark.dstY >> c >> waterMark.dstW >> c >> waterMark.dstH; in ParseWaterMark() 470 TLOGI("dstX %d, dstY %d, dstW %d, dstH %d", in Print() 471 waterMark.dstX, waterMark.dstY, waterMark.dstW, waterMark.dstH); in Print()
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkBlurImageFilter.cpp | 711 dstH = dstBounds.height(); in copy_image_with_bounds() local 713 SkImageInfo dstInfo = SkImageInfo::Make(dstW, dstH, inputBM.colorType(), inputBM.alphaType()); in copy_image_with_bounds() 801 dstH = dstBounds.height(); in cpu_blur() local 803 SkImageInfo dstInfo = inputBM.info().makeWH(dstW, dstH); in cpu_blur()
|
/third_party/mesa3d/src/gallium/frontends/xa/ |
H A D | xa_renderer.c | 288 float dstW, float dstH, struct xa_surface *srf[]) in setup_vertex_data_yuv() 310 add_vertex_1tex(r, dstX + dstW, dstY + dstH, s1, t1); in setup_vertex_data_yuv() 312 add_vertex_1tex(r, dstX, dstY + dstH, s0, t1); 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
|
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
H A D | es2aVaryingInterpolationTests.cpp | 67 float dstH = (float)dst.getHeight(); in renderReference() local 81 float ny = wy / dstH; in renderReference()
|
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
H A D | es3aVaryingInterpolationTests.cpp | 69 float dstH = (float)dst.getHeight(); in renderReference() local 83 float ny = wy / dstH; in renderReference()
|