Lines Matching refs:srcFormat
882 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()
1192 enum AVPixelFormat srcFormat = c->srcFormat; in sws_init_context() local
1208 c->srcRange |= handle_jpeg(&c->srcFormat); in sws_init_context()
1211 if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat) in sws_init_context()
1220 srcFormat = c->srcFormat; in sws_init_context()
1222 desc_src = av_pix_fmt_desc_get(srcFormat); in sws_init_context()
1229 if (!(unscaled && sws_isSupportedEndiannessConversion(srcFormat) && in sws_init_context()
1230 av_pix_fmt_swap_endianness(srcFormat) == dstFormat)) { in sws_init_context()
1231 if (!sws_isSupportedInput(srcFormat)) { in sws_init_context()
1233 av_get_pix_fmt_name(srcFormat)); in sws_init_context()
1305 av_pix_fmt_get_chroma_sub_sample(srcFormat, &c->chrSrcHSubSample, &c->chrSrcVSubSample); in sws_init_context()
1405 if (isAnyRGB(srcFormat) && !(flags & SWS_FULL_CHR_H_INP) && in sws_init_context()
1406 srcFormat != AV_PIX_FMT_RGB8 && srcFormat != AV_PIX_FMT_BGR8 && in sws_init_context()
1407 srcFormat != AV_PIX_FMT_RGB4 && srcFormat != AV_PIX_FMT_BGR4 && in sws_init_context()
1408 srcFormat != AV_PIX_FMT_RGB4_BYTE && srcFormat != AV_PIX_FMT_BGR4_BYTE && in sws_init_context()
1409 srcFormat != AV_PIX_FMT_GBRP9BE && srcFormat != AV_PIX_FMT_GBRP9LE && in sws_init_context()
1410 srcFormat != AV_PIX_FMT_GBRP10BE && srcFormat != AV_PIX_FMT_GBRP10LE && in sws_init_context()
1411 srcFormat != AV_PIX_FMT_GBRAP10BE && srcFormat != AV_PIX_FMT_GBRAP10LE && in sws_init_context()
1412 srcFormat != AV_PIX_FMT_GBRP12BE && srcFormat != AV_PIX_FMT_GBRP12LE && in sws_init_context()
1413 srcFormat != AV_PIX_FMT_GBRAP12BE && srcFormat != AV_PIX_FMT_GBRAP12LE && in sws_init_context()
1414 srcFormat != AV_PIX_FMT_GBRP14BE && srcFormat != AV_PIX_FMT_GBRP14LE && in sws_init_context()
1415 srcFormat != AV_PIX_FMT_GBRP16BE && srcFormat != AV_PIX_FMT_GBRP16LE && in sws_init_context()
1416 srcFormat != AV_PIX_FMT_GBRAP16BE && srcFormat != AV_PIX_FMT_GBRAP16LE && in sws_init_context()
1417 srcFormat != AV_PIX_FMT_GBRPF32BE && srcFormat != AV_PIX_FMT_GBRPF32LE && in sws_init_context()
1418 srcFormat != AV_PIX_FMT_GBRAPF32BE && srcFormat != AV_PIX_FMT_GBRAPF32LE && in sws_init_context()
1438 if (isAnyRGB(srcFormat) || srcFormat == AV_PIX_FMT_PAL8) in sws_init_context()
1454 if (usesHFilter || isNBPS(c->srcFormat) || is16BPS(c->srcFormat) || isAnyRGB(c->srcFormat)) in sws_init_context()
1486 if (!unscaled && c->gamma_flag && (srcFormat != tmpFmt || dstFormat != tmpFmt)) { in sws_init_context()
1495 c->cascaded_context[0] = sws_getContext(srcW, srcH, srcFormat, in sws_init_context()
1542 if (isBayer(srcFormat)) { in sws_init_context()
1546 … enum AVPixelFormat tmpFormat = isBayer16BPS(srcFormat) ? AV_PIX_FMT_RGB48 : AV_PIX_FMT_RGB24; in sws_init_context()
1553 c->cascaded_context[0] = sws_getContext(srcW, srcH, srcFormat, in sws_init_context()
1575 if ((srcFormat == AV_PIX_FMT_GRAYF32BE || srcFormat == AV_PIX_FMT_GRAYF32LE) && in sws_init_context()
1576 (!unscaled || unscaled && dstFormat != srcFormat && (srcFormat != AV_PIX_FMT_GRAYF32 || in sws_init_context()
1581 if (CONFIG_SWSCALE_ALPHA && isALPHA(srcFormat) && !isALPHA(dstFormat)) { in sws_init_context()
1582 enum AVPixelFormat tmpFormat = alphaless_fmt(srcFormat); in sws_init_context()
1596 c->cascaded_context[0] = sws_alloc_set_opts(srcW, srcH, srcFormat, in sws_init_context()
1769 c->needAlpha = (CONFIG_SWSCALE_ALPHA && isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) ? 1 : 0; in sws_init_context()
1790 av_get_pix_fmt_name(srcFormat), in sws_init_context()
1827 isALPHA(srcFormat) && in sws_init_context()
1829 alphaless_fmt(srcFormat) == dstFormat in sws_init_context()
1836 av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat)); in sws_init_context()
1843 isFloat(srcFormat) || isFloat(dstFormat))){ in sws_init_context()
1850 av_get_pix_fmt_name(srcFormat), av_get_pix_fmt_name(dstFormat)); in sws_init_context()
1865 if (isALPHA(srcFormat)) in sws_init_context()
1876 c->cascaded_context[0] = sws_getContext(srcW, srcH, srcFormat, in sws_init_context()
1892 SwsContext *sws_alloc_set_opts(int srcW, int srcH, enum AVPixelFormat srcFormat, in sws_alloc_set_opts() argument
1906 c->srcFormat = srcFormat; in sws_alloc_set_opts()
1917 SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, in sws_getContext() argument
1924 c = sws_alloc_set_opts(srcW, srcH, srcFormat, in sws_getContext()
2398 int srcH, enum AVPixelFormat srcFormat, in sws_getCachedContext() argument
2416 context->srcFormat != srcFormat || in sws_getCachedContext()
2437 context->srcFormat = srcFormat; in sws_getCachedContext()