Home
last modified time | relevance | path

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

12345

/third_party/ffmpeg/libswscale/
Dswscale_unscaled.c174 if (c->srcFormat == AV_PIX_FMT_NV12) in nv12ToPlanarWrapper()
215 if (c->srcFormat == AV_PIX_FMT_NV24) in nv24ToPlanarWrapper()
230 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in planarToP01xWrapper()
527 const enum AVPixelFormat srcFormat = c->srcFormat; in palToRgbWrapper() local
535 if (srcFormat == AV_PIX_FMT_YA8) { in palToRgbWrapper()
544 } else if (usePal(srcFormat)) { in palToRgbWrapper()
557 av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat)); in palToRgbWrapper()
711 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in Rgb16ToPlanarRgb16Wrapper()
737 switch (c->srcFormat) { in Rgb16ToPlanarRgb16Wrapper()
890 const AVPixFmtDescriptor *src_format = av_pix_fmt_desc_get(c->srcFormat); in planarRgb16ToRgb16Wrapper()
[all …]
Dutils.c882 desc_src = av_pix_fmt_desc_get(c->srcFormat); in sws_setColorspaceDetails()
886 if(range_override_needed(c->srcFormat)) in sws_setColorspaceDetails()
912 if (need_reinit && (c->srcBpc == 8 || !isYUV(c->srcFormat))) in sws_setColorspaceDetails()
924 … ((isYUV(c->dstFormat) || isGray(c->dstFormat)) && (isYUV(c->srcFormat) || isGray(c->srcFormat))) { in sws_setColorspaceDetails()
938 if (isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) { in sws_setColorspaceDetails()
944 if (isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) { in sws_setColorspaceDetails()
964 c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, c->srcFormat, in sws_setColorspaceDetails()
1016 *srcRange = range_override_needed(c->srcFormat) ? 1 : c->srcRange; in sws_getColorspaceDetails()
1085 c->src0Alpha |= handle_0alpha(&c->srcFormat); in handle_formats()
1087 c->srcXYZ |= handle_xyz(&c->srcFormat); in handle_formats()
[all …]
Dswscale.c71 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); in hScale16To19_c()
78 if ((isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8) && desc->comp[0].depth<16) { in hScale16To19_c()
101 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); in hScale16To15_c()
107 … sh = isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8 ? 13 : (desc->comp[0].depth - 1); in hScale16To15_c()
264 int should_dither = isNBPS(c->srcFormat) || in swscale()
265 is16BPS(c->srcFormat); in swscale()
289 if (isPacked(c->srcFormat)) { in swscale()
554 enum AVPixelFormat srcFormat = c->srcFormat; in sws_init_swscale() local
579 if (!(isGray(srcFormat) || isGray(c->dstFormat) || in sws_init_swscale()
580 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()
63 if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { in ff_sws_alphablendaway()
104 if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { in ff_sws_alphablendaway()
137 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,
/third_party/mesa3d/src/mesa/main/
Dtexstore.c106 GLenum srcFormat, GLenum srcType, in _mesa_memcpy_texture() argument
111 srcFormat, srcType); in _mesa_memcpy_texture()
113 srcWidth, srcHeight, srcFormat, srcType); in _mesa_memcpy_texture()
115 srcPacking, srcAddr, srcWidth, srcHeight, srcFormat, srcType, 0, 0, 0); in _mesa_memcpy_texture()
171 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z32()
201 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_x8_z24()
231 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z24_x8()
265 srcAddr, srcWidth, srcHeight, srcFormat, srcType, img, row, 0); in _mesa_texstore_z16()
290 assert(srcFormat == GL_YCBCR_MESA); in _mesa_texstore_ycbcr()
299 srcWidth, srcHeight, srcDepth, srcFormat, srcType, in _mesa_texstore_ycbcr()
[all …]
Dtexcompress_s3tc.c54 int srccomps = srcFormat == GL_RGB ? 3 : 4; in _mesa_texstore_rgb_dxt1()
59 if (!(srcFormat == GL_RGB || srcFormat == GL_RGBA) || in _mesa_texstore_rgb_dxt1()
62 …_mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType) != srccomps * srcWidth * sizeof(G… in _mesa_texstore_rgb_dxt1()
77 srcFormat, srcType, srcAddr, in _mesa_texstore_rgb_dxt1()
80 srcFormat = GL_RGB; in _mesa_texstore_rgb_dxt1()
85 srcFormat, srcType, 0, 0); in _mesa_texstore_rgb_dxt1()
113 if (srcFormat != GL_RGBA || in _mesa_texstore_rgba_dxt1()
116 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType) != rgbaRowStride || in _mesa_texstore_rgba_dxt1()
134 srcFormat, srcType, srcAddr, in _mesa_texstore_rgba_dxt1()
137 srcFormat = GL_RGBA; in _mesa_texstore_rgba_dxt1()
[all …]
Dtexcompress_bptc.c132 if (srcFormat != GL_RGBA || in _mesa_texstore_bptc_rgba_unorm()
152 srcFormat, srcType, srcAddr, in _mesa_texstore_bptc_rgba_unorm()
159 srcFormat, srcType, 0, 0); in _mesa_texstore_bptc_rgba_unorm()
161 srcFormat, srcType); in _mesa_texstore_bptc_rgba_unorm()
181 if (srcFormat != GL_RGB || in texstore_bptc_rgb_float()
197 srcFormat, srcType, srcAddr, in texstore_bptc_rgb_float()
204 srcFormat, srcType, 0, 0); in texstore_bptc_rgb_float()
206 srcFormat, srcType); in texstore_bptc_rgb_float()
227 srcFormat, srcType, in _mesa_texstore_bptc_rgb_signed_float()
240 srcFormat, srcType, in _mesa_texstore_bptc_rgb_unsigned_float()
Dtexcompress_fxt1.c57 if (srcFormat != GL_RGBA || in _mesa_texstore_fxt1()
73 srcFormat, srcType, srcAddr, in _mesa_texstore_fxt1()
77 srcFormat = GL_RGBA; in _mesa_texstore_fxt1()
81 srcFormat, srcType, 0, 0); in _mesa_texstore_fxt1()
83 srcRowStride = _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, in _mesa_texstore_fxt1()
Dcopyimage.c511 GLenum srcFormat, GLenum dstFormat) in copy_format_compatible() argument
527 if (_mesa_texture_view_compatible_format(ctx, srcFormat, dstFormat)) { in copy_format_compatible()
530 } else if (_mesa_is_compressed_format(ctx, srcFormat)) { in copy_format_compatible()
531 return compressed_format_compatible(ctx, srcFormat, dstFormat); in copy_format_compatible()
533 return compressed_format_compatible(ctx, dstFormat, srcFormat); in copy_format_compatible()
614 mesa_format srcFormat, dstFormat; in _mesa_CopyImageSubData() local
638 &srcTexImage, &srcRenderbuffer, &srcFormat, in _mesa_CopyImageSubData()
649 _mesa_get_format_block_size(srcFormat, &src_bw, &src_bh); in _mesa_CopyImageSubData()
773 mesa_format srcFormat, dstFormat; in _mesa_CopyImageSubDataNV() local
796 &srcTexImage, &srcRenderbuffer, &srcFormat, in _mesa_CopyImageSubDataNV()
[all …]
Dtexstore.h68 GLenum srcFormat, GLenum srcType, \
83 UNUSED GLenum srcFormat, UNUSED GLenum srcType, \
102 GLenum srcFormat, GLenum srcType,
109 GLenum srcFormat, GLenum srcType,
Dpack.h102 const void *src, GLenum srcFormat, GLenum srcType,
109 const void *src, GLenum srcFormat, GLenum srcType,
Dtexcompress_rgtc.c103 srcFormat, srcType, srcAddr, in _mesa_texstore_red_rgtc1()
156 srcFormat, srcType, srcAddr, in _mesa_texstore_signed_red_rgtc1()
215 srcFormat, srcType, srcAddr, in _mesa_texstore_rg_rgtc2()
280 srcFormat, srcType, srcAddr, in _mesa_texstore_signed_rg_rgtc2()
/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/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrCopyTests.cpp169 bool isCompatible (vk::VkFormat srcFormat, in isCompatible() argument
172 if (srcFormat == dstFormat) in isCompatible()
334 if (de::contains(DE_ARRAY_BEGIN(class8Bit), DE_ARRAY_END(class8Bit), srcFormat) in isCompatible()
338 if (de::contains(DE_ARRAY_BEGIN(class16Bit), DE_ARRAY_END(class16Bit), srcFormat) in isCompatible()
342 if (de::contains(DE_ARRAY_BEGIN(class24Bit), DE_ARRAY_END(class24Bit), srcFormat) in isCompatible()
346 if (de::contains(DE_ARRAY_BEGIN(class32Bit), DE_ARRAY_END(class32Bit), srcFormat) in isCompatible()
350 if (de::contains(DE_ARRAY_BEGIN(class48Bit), DE_ARRAY_END(class48Bit), srcFormat) in isCompatible()
354 if (de::contains(DE_ARRAY_BEGIN(class64Bit), DE_ARRAY_END(class64Bit), srcFormat) in isCompatible()
358 if (de::contains(DE_ARRAY_BEGIN(class96Bit), DE_ARRAY_END(class96Bit), srcFormat) in isCompatible()
362 if (de::contains(DE_ARRAY_BEGIN(class128Bit), DE_ARRAY_END(class128Bit), srcFormat) in isCompatible()
[all …]
DvktYCbCrUtil.cpp1044 bool areLsb6BitsDontCare(vk::VkFormat srcFormat, vk::VkFormat dstFormat) in areLsb6BitsDontCare() argument
1046 if ((srcFormat == vk::VK_FORMAT_R10X6_UNORM_PACK16) || in areLsb6BitsDontCare()
1048 (srcFormat == vk::VK_FORMAT_R10X6G10X6_UNORM_2PACK16) || in areLsb6BitsDontCare()
1050 (srcFormat == vk::VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16) || in areLsb6BitsDontCare()
1052 (srcFormat == vk::VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16) || in areLsb6BitsDontCare()
1054 (srcFormat == vk::VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16) || in areLsb6BitsDontCare()
1056 (srcFormat == vk::VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16) || in areLsb6BitsDontCare()
1058 (srcFormat == vk::VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16) || in areLsb6BitsDontCare()
1060 (srcFormat == vk::VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16) || in areLsb6BitsDontCare()
1062 (srcFormat == vk::VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16) || in areLsb6BitsDontCare()
[all …]
/third_party/ffmpeg/libswscale/x86/
Dyuv2rgb.c77 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86()
85 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86()
115 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86()
123 if (c->srcFormat == AV_PIX_FMT_YUVA420P) { in ff_yuv2rgb_init_x86()
Dswscale.c399 …else if (c->srcBpc == 14 || ((c->srcFormat==AV_PIX_FMT_PAL8||isAnyRGB(c->srcFormat)) && av_pix_fmt… in ff_sws_init_swscale_x86()
441 switch (c->srcFormat) { in ff_sws_init_swscale_x86()
490 switch (c->srcFormat) { in ff_sws_init_swscale_x86()
523 switch (c->srcFormat) { in ff_sws_init_swscale_x86()
546 switch (c->srcFormat) { in ff_sws_init_swscale_x86()
/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/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/vk-gl-cts/modules/gles3/functional/
Des3fFramebufferBlitTests.cpp332 …BlitColorConversionCase (Context& context, const char* name, const char* desc, deUint32 srcFormat,… in BlitColorConversionCase() argument
334 , m_srcFormat (srcFormat) in BlitColorConversionCase()
349 tcu::TextureFormat srcFormat = glu::mapGLInternalFormat(m_srcFormat); in render() local
351 glu::DataType srcOutputType = getFragmentOutputType(srcFormat); in render()
355 tcu::TextureFormatInfo srcFmtRangeInfo = tcu::getTextureFormatInfo(srcFormat); in render()
357 …tcu::BVec4 copyMask = tcu::logicalAnd(getChannelMask(srcFormat.order), getChannelMask(dstForm… in render()
429 const tcu::TextureFormat srcFormat = glu::mapGLInternalFormat(m_srcFormat); in compare() local
431 const bool srcIsSRGB = tcu::isSRGB(srcFormat); in compare()
438 threshold = getToSRGBConversionThreshold(srcFormat, dstFormat); in compare()
442 const tcu::RGBA srcMaxDiff = getFormatThreshold(srcFormat) * (srcIsSRGB ? 2 : 1); in compare()
[all …]
/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()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_drawpixels.c1680 enum pipe_format srcFormat; in st_CopyPixels() local
1766 srcFormat = rbRead->texture->format; in st_CopyPixels()
1770 if (!screen->is_format_supported(screen, srcFormat, st->internal_target, 0, in st_CopyPixels()
1774 srcFormat = st_choose_format(st, GL_DEPTH_COMPONENT, GL_NONE, in st_CopyPixels()
1786 if (util_format_is_float(srcFormat)) { in st_CopyPixels()
1787 srcFormat = st_choose_format(st, GL_RGBA32F, GL_NONE, in st_CopyPixels()
1791 else if (util_format_is_pure_sint(srcFormat)) { in st_CopyPixels()
1792 srcFormat = st_choose_format(st, GL_RGBA32I, GL_NONE, in st_CopyPixels()
1796 else if (util_format_is_pure_uint(srcFormat)) { in st_CopyPixels()
1797 srcFormat = st_choose_format(st, GL_RGBA32UI, GL_NONE, in st_CopyPixels()
[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()

12345