Home
last modified time | relevance | path

Searched refs:srcFormat (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/ffmpeg/libswscale/
Dswscale_unscaled.c173 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 …]
Dutils.c873 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 …]
Dswscale.c70 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 …]
Dalphablend.c27 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()
Dswscale.h186 struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat,
295 int srcW, int srcH, enum AVPixelFormat srcFormat,
Dslice.c265 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/
Dswscale.c84 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/
Dyuv2rgb.c89 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()
Dswscale.c413 …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/
DSkScalingCodec.h15 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/
DSkScalingCodec.h15 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/
DUtilsVk.cpp67 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 …]
DVertexArrayVk.cpp243 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()
DFramebufferVk.cpp59 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/
DCopyTextureForBrowserHelper.cpp144 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/
DGrD3DCaps.h83 DXGI_FORMAT srcFormat, int srcSamplecnt) const;
86 DXGI_FORMAT srcFormat, int srcSamplecnt) const;
DGrD3DCaps.cpp67 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/
DGrMtlCaps.h62 MTLPixelFormat srcFormat, int srcSampleCount,
67 MTLPixelFormat srcFormat, int srcSampleCount,
/third_party/flutter/skia/src/ports/
DSkFontHost_FreeType_common.cpp217 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/
Dswscale_unscaled.c145 if (c->srcFormat == AV_PIX_FMT_##IFMT \
163 if (c->srcFormat == AV_PIX_FMT_RGBA
/third_party/flutter/skia/src/gpu/vk/
DGrVkCaps.cpp119 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/
DGrVkCaps.cpp137 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/
DVertexArrayVk.cpp377 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/
DGrCaps.h259 const GrBackendFormat& srcFormat,
560 const GrBackendFormat& srcFormat,
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DvalidationES3.cpp708 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 …]

1234