/third_party/ffmpeg/libswscale/ |
D | swscale_unscaled.c | 173 if (c->srcFormat == AV_PIX_FMT_NV12) in nv12ToPlanarWrapper() 214 if (c->srcFormat == AV_PIX_FMT_NV24) in nv24ToPlanarWrapper() 229 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in planarToP01xWrapper() 526 const enum AVPixelFormat srcFormat = c->srcFormat; in palToRgbWrapper() local 534 if (srcFormat == AV_PIX_FMT_YA8) { in palToRgbWrapper() 543 } else if (usePal(srcFormat)) { in palToRgbWrapper() 556 av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat)); in palToRgbWrapper() 710 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in Rgb16ToPlanarRgb16Wrapper() 736 switch (c->srcFormat) { in Rgb16ToPlanarRgb16Wrapper() 889 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in planarRgb16ToRgb16Wrapper() [all …]
|
D | utils.c | 873 desc_src = av_pix_fmt_desc_get(c->srcFormat); in sws_setColorspaceDetails() 877 if(!isYUV(c->srcFormat) && !isGray(c->srcFormat)) in sws_setColorspaceDetails() 903 if (need_reinit && (c->srcBpc == 8 || !isYUV(c->srcFormat))) in sws_setColorspaceDetails() 915 … ((isYUV(c->dstFormat) || isGray(c->dstFormat)) && (isYUV(c->srcFormat) || isGray(c->srcFormat))) { in sws_setColorspaceDetails() 929 if (isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) { in sws_setColorspaceDetails() 935 if (isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) { in sws_setColorspaceDetails() 955 c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, c->srcFormat, in sws_setColorspaceDetails() 1076 c->src0Alpha |= handle_0alpha(&c->srcFormat); in handle_formats() 1078 c->srcXYZ |= handle_xyz(&c->srcFormat); in handle_formats() 1183 enum AVPixelFormat srcFormat = c->srcFormat; in sws_init_context() local [all …]
|
D | swscale.c | 70 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); in hScale16To19_c() 77 if ((isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8) && desc->comp[0].depth<16) { in hScale16To19_c() 100 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); in hScale16To15_c() 106 … sh = isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8 ? 13 : (desc->comp[0].depth - 1); in hScale16To15_c() 263 int should_dither = isNBPS(c->srcFormat) || in swscale() 264 is16BPS(c->srcFormat); in swscale() 288 if (isPacked(c->srcFormat)) { in swscale() 553 enum AVPixelFormat srcFormat = c->srcFormat; in sws_init_swscale() local 578 if (!(isGray(srcFormat) || isGray(c->dstFormat) || in sws_init_swscale() 579 srcFormat == AV_PIX_FMT_MONOBLACK || srcFormat == AV_PIX_FMT_MONOWHITE)) in sws_init_swscale() [all …]
|
D | alphablend.c | 27 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); in ff_sws_alphablendaway() 30 int plane_count = isGray(c->srcFormat) ? 1 : 3; in ff_sws_alphablendaway() 62 if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { in ff_sws_alphablendaway() 103 if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { in ff_sws_alphablendaway() 135 if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { in ff_sws_alphablendaway()
|
D | swscale.h | 186 struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, 295 int srcW, int srcH, enum AVPixelFormat srcFormat,
|
D | slice.c | 265 uint32_t * pal = usePal(c->srcFormat) ? c->pal_yuv : (uint32_t*)c->input_rgb2yuv_table; in ff_init_filters() 297 …res = alloc_slice(&c->slice[0], c->srcFormat, c->srcH, c->chrSrcH, c->chrSrcHSubSample, c->chrSrcV… in ff_init_filters() 300 …res = alloc_slice(&c->slice[i], c->srcFormat, lumBufSize, chrBufSize, c->chrSrcHSubSample, c->chrS… in ff_init_filters() 306 …res = alloc_slice(&c->slice[i], c->srcFormat, lumBufSize, chrBufSize, c->chrDstHSubSample, c->chrD… in ff_init_filters()
|
/third_party/ffmpeg/libswscale/tests/ |
D | swscale.c | 84 enum AVPixelFormat srcFormat, enum AVPixelFormat dstFormat, in doTest() argument 89 const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(srcFormat); 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() 127 srcFormat, SWS_BILINEAR, NULL, NULL, NULL); in doTest() 139 cur_srcFormat = srcFormat; in doTest() 168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest() 219 if (hasChroma(srcFormat) && hasChroma(dstFormat)) { in doTest() 226 if (isALPHA(srcFormat) && isALPHA(dstFormat)) in doTest() 265 enum AVPixelFormat srcFormat, dstFormat; in selfTest() local [all …]
|
/third_party/ffmpeg/libswscale/x86/ |
D | yuv2rgb.c | 89 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86() 97 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86() 127 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86() 135 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86()
|
D | swscale.c | 413 …else if (c->srcBpc == 14 || ((c->srcFormat==AV_PIX_FMT_PAL8||isAnyRGB(c->srcFormat)) && av_pix_fmt… in ff_sws_init_swscale_x86() 455 switch (c->srcFormat) { in ff_sws_init_swscale_x86() 504 switch (c->srcFormat) { in ff_sws_init_swscale_x86() 537 switch (c->srcFormat) { in ff_sws_init_swscale_x86() 560 switch (c->srcFormat) { in ff_sws_init_swscale_x86()
|
/third_party/skia/src/codec/ |
D | SkScalingCodec.h | 15 SkScalingCodec(SkEncodedInfo&& info, XformFormat srcFormat, std::unique_ptr<SkStream> stream, 17 : INHERITED(std::move(info), srcFormat, std::move(stream), origin) {} in INHERITED() argument
|
/third_party/flutter/skia/src/codec/ |
D | SkScalingCodec.h | 15 SkScalingCodec(SkEncodedInfo&& info, XformFormat srcFormat, std::unique_ptr<SkStream> stream, 17 : INHERITED(std::move(info), srcFormat, std::move(stream), origin) {} in INHERITED() argument
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | UtilsVk.cpp | 67 bool srcIsSint = params.srcFormat->isSint(); in GetConvertVertexFlags() 68 bool srcIsUint = params.srcFormat->isUint(); in GetConvertVertexFlags() 69 bool srcIsSnorm = params.srcFormat->isSnorm(); in GetConvertVertexFlags() 70 bool srcIsUnorm = params.srcFormat->isUnorm(); in GetConvertVertexFlags() 71 bool srcIsFixed = params.srcFormat->isFixed; in GetConvertVertexFlags() 72 bool srcIsFloat = params.srcFormat->isFloat(); in GetConvertVertexFlags() 74 ((params.srcFormat->vertexAttribType == gl::VertexAttribType::UnsignedInt2101010) || in GetConvertVertexFlags() 75 (params.srcFormat->vertexAttribType == gl::VertexAttribType::Int2101010)); in GetConvertVertexFlags() 213 uint32_t GetImageCopyFlags(const vk::Format &srcFormat, const vk::Format &destFormat) in GetImageCopyFlags() argument 215 const angle::Format &srcAngleFormat = srcFormat.angleFormat(); in GetImageCopyFlags() [all …]
|
D | VertexArrayVk.cpp | 243 const angle::Format &srcFormat = vertexFormat.angleFormat(); in convertVertexBufferGPU() local 246 ASSERT(binding.getStride() % (srcFormat.pixelBytes / srcFormat.channelCount) == 0); in convertVertexBufferGPU() 248 unsigned srcFormatSize = srcFormat.pixelBytes; in convertVertexBufferGPU() 269 params.srcFormat = &srcFormat; in convertVertexBufferGPU()
|
D | FramebufferVk.cpp | 59 const VkFormat srcFormat = srcRenderTarget->getImageFormat().vkImageFormat; in HasSrcBlitFeature() local 60 return renderer->hasImageFormatFeatureBits(srcFormat, VK_FORMAT_FEATURE_BLIT_SRC_BIT); in HasSrcBlitFeature() 74 const angle::Format &srcFormat = srcRenderTarget->getImageFormat().angleFormat(); in areSrcAndDstColorChannelsBlitCompatible() local 79 ASSERT(!dstFormat.isLUMA() && !srcFormat.isLUMA()); in areSrcAndDstColorChannelsBlitCompatible() 82 ASSERT(dstFormat.redBits > 0 && srcFormat.redBits > 0); in areSrcAndDstColorChannelsBlitCompatible() 84 return (dstFormat.greenBits > 0 || srcFormat.greenBits == 0) && in areSrcAndDstColorChannelsBlitCompatible() 85 (dstFormat.blueBits > 0 || srcFormat.blueBits == 0) && in areSrcAndDstColorChannelsBlitCompatible() 86 (dstFormat.alphaBits > 0 || srcFormat.alphaBits == 0); in areSrcAndDstColorChannelsBlitCompatible() 92 const angle::Format &srcFormat = srcRenderTarget->getImageFormat().angleFormat(); in areSrcAndDstDepthStencilChannelsBlitCompatible() local 95 return (dstFormat.depthBits > 0 || srcFormat.depthBits == 0) && in areSrcAndDstDepthStencilChannelsBlitCompatible() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CopyTextureForBrowserHelper.cpp | 144 MaybeError ValidateCopyTextureFormatConversion(const wgpu::TextureFormat srcFormat, in ValidateCopyTextureFormatConversion() argument 146 switch (srcFormat) { in ValidateCopyTextureFormatConversion() 152 "Source texture format (%s) is not supported.", srcFormat); in ValidateCopyTextureFormatConversion()
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DCaps.h | 83 DXGI_FORMAT srcFormat, int srcSamplecnt) const; 86 DXGI_FORMAT srcFormat, int srcSamplecnt) const;
|
D | GrD3DCaps.cpp | 67 DXGI_FORMAT srcFormat, int srcSampleCnt) const { in canCopyTexture() argument 74 return srcFormat == dstFormat; in canCopyTexture() 78 DXGI_FORMAT srcFormat, int srcSampleCnt) const { in canCopyAsResolve() argument 92 if (srcFormat != dstFormat) { in canCopyAsResolve() 116 DXGI_FORMAT dstFormat, srcFormat; in onCanCopySurface() local 118 SkAssertResult(src->backendFormat().asDxgiFormat(&srcFormat)); in onCanCopySurface() 120 return this->canCopyTexture(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt) || in onCanCopySurface() 121 this->canCopyAsResolve(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt); in onCanCopySurface()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlCaps.h | 62 MTLPixelFormat srcFormat, int srcSampleCount, 67 MTLPixelFormat srcFormat, int srcSampleCount,
|
/third_party/flutter/skia/src/ports/ |
D | SkFontHost_FreeType_common.cpp | 217 const FT_Pixel_Mode srcFormat = static_cast<FT_Pixel_Mode>(srcFTBitmap.pixel_mode); in copyFTBitmap() local 234 if ((FT_PIXEL_MODE_MONO == srcFormat && SkMask::kBW_Format == dstFormat) || in copyFTBitmap() 235 (FT_PIXEL_MODE_GRAY == srcFormat && SkMask::kA8_Format == dstFormat)) in copyFTBitmap() 243 } else if (FT_PIXEL_MODE_MONO == srcFormat && SkMask::kA8_Format == dstFormat) { in copyFTBitmap() 261 } else if (FT_PIXEL_MODE_BGRA == srcFormat && SkMask::kARGB32_Format == dstFormat) { in copyFTBitmap() 280 SkDEBUGF("FT_Pixel_Mode %d, SkMask::Format %d\n", srcFormat, dstFormat); in copyFTBitmap()
|
/third_party/ffmpeg/libswscale/arm/ |
D | swscale_unscaled.c | 145 if (c->srcFormat == AV_PIX_FMT_##IFMT \ 163 if (c->srcFormat == AV_PIX_FMT_RGBA
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkCaps.cpp | 119 VkFormat srcFormat, int srcSampleCnt, bool srcHasYcbcr) const { in canCopyImage() argument 130 return format_compatibility_class(srcFormat) == format_compatibility_class(dstFormat); in canCopyImage() 134 bool dstHasYcbcr, VkFormat srcFormat, int srcSampleCnt, in canCopyAsBlit() argument 139 !this->formatCanBeSrcofBlit(srcFormat, srcIsLinear)) { in canCopyAsBlit() 157 VkFormat srcFormat, int srcSampleCnt, bool srcHasYcbcr) const { in canCopyAsResolve() argument 169 if (srcFormat != dstFormat) { in canCopyAsResolve() 230 VkFormat dstFormat, srcFormat; in onCanCopySurface() local 232 SkAssertResult(src->backendFormat().asVkFormat(&srcFormat)); in onCanCopySurface() 235 srcFormat, srcSampleCnt, srcHasYcbcr) || in onCanCopySurface() 237 srcFormat, srcSampleCnt, srcIsLinear, srcHasYcbcr) || in onCanCopySurface() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkCaps.cpp | 137 VkFormat srcFormat, int srcSampleCnt, bool srcHasYcbcr) const { in canCopyImage() argument 148 return format_compatibility_class(srcFormat) == format_compatibility_class(dstFormat); in canCopyImage() 152 bool dstHasYcbcr, VkFormat srcFormat, int srcSampleCnt, in canCopyAsBlit() argument 157 !this->formatCanBeSrcofBlit(srcFormat, srcIsLinear)) { in canCopyAsBlit() 175 VkFormat srcFormat, int srcSampleCnt, bool srcHasYcbcr) const { in canCopyAsResolve() argument 187 if (srcFormat != dstFormat) { in canCopyAsResolve() 258 VkFormat dstFormat, srcFormat; in onCanCopySurface() local 260 SkAssertResult(src->backendFormat().asVkFormat(&srcFormat)); in onCanCopySurface() 263 srcFormat, srcSampleCnt, srcHasYcbcr) || in onCanCopySurface() 265 srcFormat, srcSampleCnt, srcIsLinear, srcHasYcbcr) || in onCanCopySurface() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | VertexArrayVk.cpp | 377 const angle::Format &srcFormat = vertexFormat.getIntendedFormat(); in convertVertexBufferGPU() local 380 ASSERT(binding.getStride() % (srcFormat.pixelBytes / srcFormat.channelCount) == 0); in convertVertexBufferGPU() 382 unsigned srcFormatSize = srcFormat.pixelBytes; in convertVertexBufferGPU() 406 params.srcFormat = &srcFormat; in convertVertexBufferGPU()
|
/third_party/flutter/skia/src/gpu/ |
D | GrCaps.h | 259 const GrBackendFormat& srcFormat, 560 const GrBackendFormat& srcFormat,
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | validationES3.cpp | 708 static bool QueryEffectiveFormatList(const InternalFormat &srcFormat, in QueryEffectiveFormatList() argument 718 (formatInfo.minRedBits <= srcFormat.redBits && in QueryEffectiveFormatList() 719 formatInfo.maxRedBits >= srcFormat.redBits) && in QueryEffectiveFormatList() 720 (formatInfo.minGreenBits <= srcFormat.greenBits && in QueryEffectiveFormatList() 721 formatInfo.maxGreenBits >= srcFormat.greenBits) && in QueryEffectiveFormatList() 722 (formatInfo.minBlueBits <= srcFormat.blueBits && in QueryEffectiveFormatList() 723 formatInfo.maxBlueBits >= srcFormat.blueBits) && in QueryEffectiveFormatList() 724 (formatInfo.minAlphaBits <= srcFormat.alphaBits && in QueryEffectiveFormatList() 725 formatInfo.maxAlphaBits >= srcFormat.alphaBits)) in QueryEffectiveFormatList() 736 bool GetSizedEffectiveInternalFormatInfo(const InternalFormat &srcFormat, in GetSizedEffectiveInternalFormatInfo() argument [all …]
|