/third_party/ffmpeg/libswscale/ |
D | swscale_unscaled.c | 153 if (c->dstFormat == AV_PIX_FMT_NV12) in planarToNv12Wrapper() 194 if (c->dstFormat == AV_PIX_FMT_NV24) in planarToNv24Wrapper() 231 const AVPixFmtDescriptor *dst_format = av_pix_fmt_desc_get(c->dstFormat); in planarToP01xWrapper() 528 const enum AVPixelFormat dstFormat = c->dstFormat; in palToRgbWrapper() local 536 switch (dstFormat) { in palToRgbWrapper() 545 switch (dstFormat) { in palToRgbWrapper() 557 av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat)); in palToRgbWrapper() 712 const AVPixFmtDescriptor *dst_format = av_pix_fmt_desc_get(c->dstFormat); in Rgb16ToPlanarRgb16Wrapper() 891 const AVPixFmtDescriptor *dst_format = av_pix_fmt_desc_get(c->dstFormat); in planarRgb16ToRgb16Wrapper() 908 switch (c->dstFormat) { in planarRgb16ToRgb16Wrapper() [all …]
|
D | utils.c | 881 desc_dst = av_pix_fmt_desc_get(c->dstFormat); in sws_setColorspaceDetails() 884 if(range_override_needed(c->dstFormat)) in sws_setColorspaceDetails() 924 …if ((isYUV(c->dstFormat) || isGray(c->dstFormat)) && (isYUV(c->srcFormat) || isGray(c->srcFormat))… in sws_setColorspaceDetails() 937 if (isNBPS(c->dstFormat) || is16BPS(c->dstFormat)) { 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() 980 dstW, dstH, c->dstFormat, in sws_setColorspaceDetails() 992 if (!isYUV(c->dstFormat) && !isGray(c->dstFormat)) { in sws_setColorspaceDetails() 1017 *dstRange = range_override_needed(c->dstFormat) ? 1 : c->dstRange; in sws_getColorspaceDetails() 1086 c->dst0Alpha |= handle_0alpha(&c->dstFormat); in handle_formats() [all …]
|
D | yuv2rgb.c | 693 av_get_pix_fmt_name(c->srcFormat), av_get_pix_fmt_name(c->dstFormat)); in ff_yuv2rgb_get_func_ptr() 695 switch (c->dstFormat) { in ff_yuv2rgb_get_func_ptr() 778 const int isRgb = c->dstFormat == AV_PIX_FMT_RGB32 || in ff_yuv2rgb_c_init_tables() 779 c->dstFormat == AV_PIX_FMT_RGB32_1 || in ff_yuv2rgb_c_init_tables() 780 c->dstFormat == AV_PIX_FMT_BGR24 || in ff_yuv2rgb_c_init_tables() 781 c->dstFormat == AV_PIX_FMT_RGB565BE || in ff_yuv2rgb_c_init_tables() 782 c->dstFormat == AV_PIX_FMT_RGB565LE || in ff_yuv2rgb_c_init_tables() 783 c->dstFormat == AV_PIX_FMT_RGB555BE || in ff_yuv2rgb_c_init_tables() 784 c->dstFormat == AV_PIX_FMT_RGB555LE || in ff_yuv2rgb_c_init_tables() 785 c->dstFormat == AV_PIX_FMT_RGB444BE || in ff_yuv2rgb_c_init_tables() [all …]
|
D | swscale.c | 247 const enum AVPixelFormat dstFormat = c->dstFormat; in swscale() local 495 if (isPlanar(dstFormat) && isALPHA(dstFormat) && !needAlpha) { in swscale() 499 if (is16BPS(dstFormat) || isNBPS(dstFormat)) { in swscale() 500 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat); in swscale() 503 isBE(dstFormat)); in swscale() 504 } else if (is32BPS(dstFormat)) { in swscale() 505 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat); in swscale() 508 isBE(dstFormat), desc->flags & AV_PIX_FMT_FLAG_FLOAT); in swscale() 531 if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) { in ff_sws_init_range_convert() 579 if (!(isGray(srcFormat) || isGray(c->dstFormat) || in sws_init_swscale() [all …]
|
D | vscale.c | 95 …inst->pfn.yuv2interleavedX(c->dstFormat, c->chrDither8, filter, inst->filter_size, (const int16_t*… in chr_planar_vscale() 218 if (isPlanarYUV(c->dstFormat) || (isGray(c->dstFormat) && !isALPHA(c->dstFormat))) { in ff_init_vscale() 230 if (!isGray(c->dstFormat)) { in ff_init_vscale() 270 if (isPlanarYUV(c->dstFormat) || (isGray(c->dstFormat) && !isALPHA(c->dstFormat))) { in ff_init_vscale_pfn() 271 if (!isGray(c->dstFormat)) { in ff_init_vscale_pfn()
|
D | output.c | 184 static void yuv2p016cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither, in yuv2p016cX_c() argument 193 int big_endian = dstFormat == AV_PIX_FMT_P016BE; in yuv2p016cX_c() 407 static void yuv2nv12cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither, in yuv2nv12cX_c() argument 414 if (dstFormat == AV_PIX_FMT_NV12 || in yuv2nv12cX_c() 415 dstFormat == AV_PIX_FMT_NV24) in yuv2nv12cX_c() 481 static void yuv2p010cX_c(enum AVPixelFormat dstFormat, const uint8_t *chrDither, in yuv2p010cX_c() argument 488 int big_endian = dstFormat == AV_PIX_FMT_P010BE; in yuv2p010cX_c() 2176 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->dstFormat); in yuv2gbrp_full_X_c() 2239 if (SH != 22 && (!isBE(c->dstFormat)) != (!HAVE_BIGENDIAN)) { in yuv2gbrp_full_X_c() 2258 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->dstFormat); in yuv2gbrp16_full_X_c() [all …]
|
D | swscale.h | 187 int dstW, int dstH, enum AVPixelFormat dstFormat, 296 int dstW, int dstH, enum AVPixelFormat dstFormat,
|
/third_party/ffmpeg/libswscale/tests/ |
D | swscale.c | 84 enum AVPixelFormat srcFormat, enum AVPixelFormat dstFormat, in doTest() argument 90 const AVPixFmtDescriptor *desc_dst = av_pix_fmt_desc_get(dstFormat); in doTest() 144 res = av_image_fill_linesizes(dstStride, dstFormat, dstW); in doTest() 168 dstContext = sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, in doTest() 205 outContext = sws_getContext(dstW, dstH, dstFormat, w, h, 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 276 for (dstFormat = dstFormat_in != AV_PIX_FMT_NONE ? dstFormat_in : 0; in selfTest() 277 dstFormat < AV_PIX_FMT_NB; dstFormat++) { in selfTest() [all …]
|
D | floatimg_cmp.c | 65 enum AVPixelFormat dstFormat = AV_PIX_FMT_NONE; in main() local 160 dstFormat = pix_fmts[i]; in main() 199 res = av_image_fill_linesizes(dstStride, dstFormat, w); in main() 216 dstFormat, SWS_BILINEAR, NULL, NULL, NULL); in main() 218 …tderr, "Failed to get %s -> %s\n", av_get_pix_fmt_name(inFormat), av_get_pix_fmt_name(dstFormat) ); in main() 231 sws = sws_getContext(w, h, dstFormat, w, h, in main() 234 …fprintf(stderr, "Failed to get %s -> %s\n", av_get_pix_fmt_name(dstFormat), av_get_pix_fmt_name(in… in main() 280 … "%s -> %s -> %s\n", av_get_pix_fmt_name(inFormat), av_get_pix_fmt_name(dstFormat), av_get_pix_fmt… in main()
|
/third_party/mesa3d/src/mesa/main/ |
D | texstore.c | 101 mesa_format dstFormat, in _mesa_memcpy_texture() argument 115 const GLuint texelBytes = _mesa_get_format_bytes(dstFormat); in _mesa_memcpy_texture() 154 assert(dstFormat == MESA_FORMAT_Z_UNORM32 || in _mesa_texstore_z32() 155 dstFormat == MESA_FORMAT_Z_FLOAT32); in _mesa_texstore_z32() 156 assert(_mesa_get_format_bytes(dstFormat) == sizeof(GLuint)); in _mesa_texstore_z32() 158 if (dstFormat == MESA_FORMAT_Z_UNORM32) in _mesa_texstore_z32() 191 assert(dstFormat == MESA_FORMAT_Z24_UNORM_X8_UINT); in _mesa_texstore_x8_z24() 221 assert(dstFormat == MESA_FORMAT_X8_UINT_Z24_UNORM); in _mesa_texstore_z24_x8() 254 assert(dstFormat == MESA_FORMAT_Z_UNORM16); in _mesa_texstore_z16() 255 assert(_mesa_get_format_bytes(dstFormat) == sizeof(GLushort)); in _mesa_texstore_z16() [all …]
|
D | texstore.h | 64 UNUSED mesa_format dstFormat, \ 79 UNUSED mesa_format dstFormat, \ 93 mesa_format dstFormat); 98 mesa_format dstFormat, 108 GLenum baseInternalFormat, mesa_format dstFormat,
|
D | texcompress_s3tc.c | 55 assert(dstFormat == MESA_FORMAT_RGB_DXT1 || in _mesa_texstore_rgb_dxt1() 56 dstFormat == MESA_FORMAT_SRGB_DXT1); in _mesa_texstore_rgb_dxt1() 107 assert(dstFormat == MESA_FORMAT_RGBA_DXT1 || in _mesa_texstore_rgba_dxt1() 108 dstFormat == MESA_FORMAT_SRGBA_DXT1); in _mesa_texstore_rgba_dxt1() 163 assert(dstFormat == MESA_FORMAT_RGBA_DXT3 || in _mesa_texstore_rgba_dxt3() 164 dstFormat == MESA_FORMAT_SRGBA_DXT3); in _mesa_texstore_rgba_dxt3() 218 assert(dstFormat == MESA_FORMAT_RGBA_DXT5 || in _mesa_texstore_rgba_dxt5() 219 dstFormat == MESA_FORMAT_SRGBA_DXT5); in _mesa_texstore_rgba_dxt5()
|
D | copyimage.c | 509 GLenum srcFormat, GLenum dstFormat) in copy_format_compatible() argument 525 if (_mesa_texture_view_compatible_format(ctx, srcFormat, dstFormat)) { in copy_format_compatible() 529 return compressed_format_compatible(ctx, srcFormat, dstFormat); in copy_format_compatible() 530 } else if (_mesa_is_compressed_format(ctx, dstFormat)) { in copy_format_compatible() 531 return compressed_format_compatible(ctx, dstFormat, srcFormat); in copy_format_compatible() 612 mesa_format srcFormat, dstFormat; in _mesa_CopyImageSubData() local 642 &dstTexImage, &dstRenderbuffer, &dstFormat, in _mesa_CopyImageSubData() 679 _mesa_get_format_block_size(dstFormat, &dst_bw, &dst_bh); in _mesa_CopyImageSubData() 771 mesa_format srcFormat, dstFormat; in _mesa_CopyImageSubDataNV() local 800 &dstTexImage, &dstRenderbuffer, &dstFormat, in _mesa_CopyImageSubDataNV() [all …]
|
D | texcompress_fxt1.c | 55 assert(dstFormat == MESA_FORMAT_RGB_FXT1 || dstFormat == MESA_FORMAT_RGBA_FXT1); in _mesa_texstore_fxt1() 89 if (dstFormat == MESA_FORMAT_RGB_FXT1) in _mesa_texstore_fxt1()
|
D | texcompress_rgtc.c | 90 assert(dstFormat == MESA_FORMAT_R_RGTC1_UNORM || in _mesa_texstore_red_rgtc1() 91 dstFormat == MESA_FORMAT_L_LATC1_UNORM); in _mesa_texstore_red_rgtc1() 143 assert(dstFormat == MESA_FORMAT_R_RGTC1_SNORM || in _mesa_texstore_signed_red_rgtc1() 144 dstFormat == MESA_FORMAT_L_LATC1_SNORM); in _mesa_texstore_signed_red_rgtc1() 197 assert(dstFormat == MESA_FORMAT_RG_RGTC2_UNORM || in _mesa_texstore_rg_rgtc2() 198 dstFormat == MESA_FORMAT_LA_LATC2_UNORM); in _mesa_texstore_rg_rgtc2() 262 assert(dstFormat == MESA_FORMAT_RG_RGTC2_SNORM || in _mesa_texstore_signed_rg_rgtc2() 263 dstFormat == MESA_FORMAT_LA_LATC2_SNORM); in _mesa_texstore_signed_rg_rgtc2()
|
D | texcompress_bptc.c | 222 assert(dstFormat == MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT); in _mesa_texstore_bptc_rgb_signed_float() 225 dstFormat, dstRowStride, dstSlices, in _mesa_texstore_bptc_rgb_signed_float() 235 assert(dstFormat == MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT); in _mesa_texstore_bptc_rgb_unsigned_float() 238 dstFormat, dstRowStride, dstSlices, in _mesa_texstore_bptc_rgb_unsigned_float()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CopyTextureForBrowserHelper.cpp | 145 const wgpu::TextureFormat dstFormat) { in ValidateCopyTextureFormatConversion() argument 155 switch (dstFormat) { in ValidateCopyTextureFormatConversion() 170 "Destination texture format (%s) is not supported.", dstFormat); in ValidateCopyTextureFormatConversion() 177 wgpu::TextureFormat dstFormat) { in GetCachedPipeline() argument 178 auto pipeline = store->copyTextureForBrowserPipelines.find(dstFormat); in GetCachedPipeline() 187 wgpu::TextureFormat dstFormat) { in GetOrCreateCopyTextureForBrowserPipeline() argument 190 if (GetCachedPipeline(store, dstFormat) == nullptr) { in GetOrCreateCopyTextureForBrowserPipeline() 212 target.format = dstFormat; in GetOrCreateCopyTextureForBrowserPipeline() 230 store->copyTextureForBrowserPipelines.insert({dstFormat, std::move(pipeline)}); in GetOrCreateCopyTextureForBrowserPipeline() 233 return GetCachedPipeline(store, dstFormat); in GetOrCreateCopyTextureForBrowserPipeline()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
D | vktYCbCrCopyTests.cpp | 170 vk::VkFormat dstFormat) in isCompatible() argument 172 if (srcFormat == dstFormat) in isCompatible() 335 && de::contains(DE_ARRAY_BEGIN(class8Bit), DE_ARRAY_END(class8Bit), dstFormat)) in isCompatible() 339 && de::contains(DE_ARRAY_BEGIN(class16Bit), DE_ARRAY_END(class16Bit), dstFormat)) in isCompatible() 343 && de::contains(DE_ARRAY_BEGIN(class24Bit), DE_ARRAY_END(class24Bit), dstFormat)) in isCompatible() 347 && de::contains(DE_ARRAY_BEGIN(class32Bit), DE_ARRAY_END(class32Bit), dstFormat)) in isCompatible() 351 && de::contains(DE_ARRAY_BEGIN(class48Bit), DE_ARRAY_END(class48Bit), dstFormat)) in isCompatible() 355 && de::contains(DE_ARRAY_BEGIN(class64Bit), DE_ARRAY_END(class64Bit), dstFormat)) in isCompatible() 359 && de::contains(DE_ARRAY_BEGIN(class96Bit), DE_ARRAY_END(class96Bit), dstFormat)) in isCompatible() 363 && de::contains(DE_ARRAY_BEGIN(class128Bit), DE_ARRAY_END(class128Bit), dstFormat)) in isCompatible() [all …]
|
D | vktYCbCrUtil.cpp | 1044 bool areLsb6BitsDontCare(vk::VkFormat srcFormat, vk::VkFormat dstFormat) in areLsb6BitsDontCare() argument 1047 (dstFormat == vk::VK_FORMAT_R10X6_UNORM_PACK16) || in areLsb6BitsDontCare() 1049 (dstFormat == vk::VK_FORMAT_R10X6G10X6_UNORM_2PACK16) || in areLsb6BitsDontCare() 1051 (dstFormat == vk::VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16) || in areLsb6BitsDontCare() 1053 (dstFormat == vk::VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16) || in areLsb6BitsDontCare() 1055 (dstFormat == vk::VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16) || in areLsb6BitsDontCare() 1057 (dstFormat == vk::VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16) || in areLsb6BitsDontCare() 1059 (dstFormat == vk::VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16) || in areLsb6BitsDontCare() 1061 (dstFormat == vk::VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16) || in areLsb6BitsDontCare() 1063 (dstFormat == vk::VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16) || in areLsb6BitsDontCare() [all …]
|
/third_party/ffmpeg/libswscale/ppc/ |
D | swscale_altivec.c | 241 enum AVPixelFormat dstFormat = c->dstFormat; in yuv2plane1_float() local 250 if (!is16BPS(dstFormat) && !isNBPS(dstFormat) && !isSemiPlanarYUV(dstFormat) && in yuv2plane1_float() 251 dstFormat != AV_PIX_FMT_GRAYF32BE && dstFormat != AV_PIX_FMT_GRAYF32LE && in yuv2plane1_float() 257 if (dstFormat == AV_PIX_FMT_GRAYF32BE) { in yuv2plane1_float() 259 } else if (dstFormat == AV_PIX_FMT_GRAYF32LE) { in yuv2plane1_float() 266 switch (c->dstFormat) { in yuv2plane1_float()
|
D | yuv2yuv_altivec.c | 195 enum AVPixelFormat dstFormat = c->dstFormat; in ff_get_unscaled_swscale_ppc() local 198 if (dstFormat == AV_PIX_FMT_YUYV422) in ff_get_unscaled_swscale_ppc() 200 else if (dstFormat == AV_PIX_FMT_UYVY422) in ff_get_unscaled_swscale_ppc()
|
/third_party/ffmpeg/libswscale/x86/ |
D | yuv2rgb.c | 75 switch (c->dstFormat) { in ff_yuv2rgb_init_x86() 104 switch (c->dstFormat) { in ff_yuv2rgb_init_x86() 113 switch (c->dstFormat) { in ff_yuv2rgb_init_x86()
|
D | swscale.c | 98 if (c->dstFormat == AV_PIX_FMT_RGB555 || c->dstFormat == AV_PIX_FMT_BGR555) in ff_updateMMXDitherTables() 417 …case 10: if (!isBE(c->dstFormat) && c->dstFormat != AV_PIX_FMT_P010LE) vscalefn = ff_yuv2planeX_10… in ff_sws_init_swscale_x86() 418 case 9: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2planeX_9_ ## opt; break; \ in ff_sws_init_swscale_x86() 423 case 16: if (!isBE(c->dstFormat)) vscalefn = ff_yuv2plane1_16_ ## opt1; break; \ in ff_sws_init_swscale_x86() 424 …case 10: if (!isBE(c->dstFormat) && c->dstFormat != AV_PIX_FMT_P010LE && opt2chk) vscalefn = ff_yu… in ff_sws_init_swscale_x86() 425 case 9: if (!isBE(c->dstFormat) && opt2chk) vscalefn = ff_yuv2plane1_9_ ## opt2; break; \ in ff_sws_init_swscale_x86() 535 if (!isBE(c->dstFormat)) c->yuv2planeX = ff_yuv2planeX_16_sse4, in ff_sws_init_swscale_x86() 537 if (c->dstBpc == 16 && !isBE(c->dstFormat)) in ff_sws_init_swscale_x86() 572 switch (c->dstFormat) { in ff_sws_init_swscale_x86()
|
/third_party/mesa3d/src/gallium/drivers/swr/ |
D | swr_memory.h | 29 SWR_FORMAT dstFormat, in swr_LoadHotTile() argument 38 …LoadHotTile(hWorkerPrivateData, pSrcSurface, pDC->pContext->pBucketMgr, dstFormat, renderTargetInd… in swr_LoadHotTile()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFramebufferBlitTests.cpp | 332 …ntext, const char* name, const char* desc, deUint32 srcFormat, deUint32 dstFormat, const IVec2& si… in BlitColorConversionCase() argument 335 , m_dstFormat (dstFormat) in BlitColorConversionCase() 350 tcu::TextureFormat dstFormat = glu::mapGLInternalFormat(m_dstFormat); in render() local 352 glu::DataType dstOutputType = getFragmentOutputType(dstFormat); in render() 356 tcu::TextureFormatInfo dstFmtRangeInfo = tcu::getTextureFormatInfo(dstFormat); in render() 357 … copyMask = tcu::logicalAnd(getChannelMask(srcFormat.order), getChannelMask(dstFormat.order)); in render() 424 …readPixels(dst, 0, 0, m_size.x(), m_size.y(), dstFormat, dstRangeInfo.lookupScale, dstRangeInfo.lo… in render() 430 const tcu::TextureFormat dstFormat = glu::mapGLInternalFormat(m_dstFormat); in compare() local 432 const bool dstIsSRGB = tcu::isSRGB(dstFormat); in compare() 438 threshold = getToSRGBConversionThreshold(srcFormat, dstFormat); in compare() [all …]
|