23 #define _SVID_SOURCE // needed for MAP_ANONYMOUS
24 #define _DARWIN_C_SOURCE // needed for MAP_ANON
31 #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
32 #define MAP_ANONYMOUS MAP_ANON
36 #define WIN32_LEAN_AND_MEAN
66 return FFMPEG_CONFIGURATION;
71 #define LICENSE_PREFIX "libswscale license: "
75 #define RET 0xC3 // near return opcode for x86
242 #if FF_API_SWS_FORMAT_NAME
249 return "Unknown format";
257 return ((d * dist + c) * dist + b) * dist +
a;
260 b + 2.0 * c + 3.0 * d,
262 -b - 3.0 * c - 6.0 * d,
269 pos = (128 << chr_subsample) - 128;
272 return pos >> chr_subsample;
289 {
SWS_POINT,
"nearest neighbor / point", -1 },
292 {
SWS_X,
"experimental", 8 },
296 int *outFilterSize,
int xInc,
int srcW,
297 int dstW,
int filterAlign,
int one,
300 double param[2],
int srcPos,
int dstPos)
307 int64_t *filter2 = NULL;
308 const int64_t fone = 1LL << (54 -
FFMIN(
av_log2(srcW/dstW), 8));
316 if (
FFABS(xInc - 0x10000) < 10 && srcPos == dstPos) {
320 dstW *
sizeof(*filter) * filterSize, fail);
322 for (i = 0; i < dstW; i++) {
323 filter[i * filterSize] = fone;
331 dstW *
sizeof(*filter) * filterSize, fail);
333 xDstInSrc = ((dstPos*(int64_t)xInc)>>8) - ((srcPos*0x8000LL)>>7);
334 for (i = 0; i < dstW; i++) {
335 int xx = (xDstInSrc - ((filterSize - 1) << 15) + (1 << 15)) >> 16;
337 (*filterPos)[i] = xx;
341 }
else if ((xInc <= (1 << 16) && (flags &
SWS_AREA)) ||
347 dstW *
sizeof(*filter) * filterSize, fail);
349 xDstInSrc = ((dstPos*(int64_t)xInc)>>8) - ((srcPos*0x8000LL)>>7);
350 for (i = 0; i < dstW; i++) {
351 int xx = (xDstInSrc - ((filterSize - 1) << 15) + (1 << 15)) >> 16;
354 (*filterPos)[i] = xx;
356 for (j = 0; j < filterSize; j++) {
357 int64_t
coeff= fone -
FFABS(((int64_t)xx<<16) - xDstInSrc)*(fone>>16);
360 filter[i * filterSize + j] =
coeff;
370 if (flags & scale_algorithms[i].flag) {
380 filterSize = 1 + sizeFactor;
382 filterSize = 1 + (sizeFactor * srcW + dstW - 1) / dstW;
384 filterSize =
FFMIN(filterSize, srcW - 2);
385 filterSize =
FFMAX(filterSize, 1);
388 dstW *
sizeof(*filter) * filterSize, fail);
390 xDstInSrc = ((dstPos*(int64_t)xInc)>>7) - ((srcPos*0x10000LL)>>7);
391 for (i = 0; i < dstW; i++) {
392 int xx = (xDstInSrc - ((filterSize - 2) << 16)) / (1 << 17);
394 (*filterPos)[i] = xx;
395 for (j = 0; j < filterSize; j++) {
396 int64_t d = (
FFABS(((int64_t)xx << 17) - xDstInSrc)) << 13;
402 floatd = d * (1.0 / (1 << 30));
408 if (d >= 1LL << 31) {
411 int64_t dd = (d * d) >> 30;
412 int64_t ddd = (dd * d) >> 30;
415 coeff = (12 * (1 << 24) - 9 * B - 6 * C) * ddd +
416 (-18 * (1 << 24) + 12 * B + 6 * C) * dd +
417 (6 * (1 << 24) - 2 * B) * (1 << 30);
419 coeff = (-B - 6 * C) * ddd +
420 (6 * B + 30 * C) * dd +
421 (-12 * B - 48 * C) * d +
422 (8 * B + 24 * C) * (1 << 30);
424 coeff /= (1LL<<54)/fone;
427 else if (flags &
SWS_X) {
428 double p = param ? param * 0.01 : 0.3;
429 coeff = d ? sin(d *
M_PI) / (d *
M_PI) : 1.0;
430 coeff *= pow(2.0, -p * d * d);
433 else if (flags & SWS_X) {
438 c = cos(floatd *
M_PI);
445 coeff = (c * 0.5 + 0.5) * fone;
447 int64_t d2 = d - (1 << 29);
448 if (d2 * xInc < -(1LL << (29 + 16)))
449 coeff = 1.0 * (1LL << (30 + 16));
450 else if (d2 * xInc < (1LL << (29 + 16)))
451 coeff = -d2 * xInc + (1LL << (29 + 16));
454 coeff *= fone >> (30 + 16);
457 coeff = (pow(2.0, -p * floatd * floatd)) * fone;
459 coeff = (d ? sin(floatd *
M_PI) / (floatd *
M_PI) : 1.0) * fone;
460 }
else if (flags & SWS_LANCZOS) {
462 coeff = (d ? sin(floatd *
M_PI) * sin(floatd * M_PI / p) /
463 (floatd * floatd * M_PI * M_PI / p) : 1.0) * fone;
467 coeff = (1 << 30) - d;
472 double p = -2.196152422706632;
478 filter[i * filterSize + j] =
coeff;
481 xDstInSrc += 2 * xInc;
489 filter2Size = filterSize;
491 filter2Size += srcFilter->
length - 1;
493 filter2Size += dstFilter->
length - 1;
497 for (i = 0; i < dstW; i++) {
501 for (k = 0; k < srcFilter->
length; k++) {
502 for (j = 0; j < filterSize; j++)
503 filter2[i * filter2Size + k + j] +=
504 srcFilter->
coeff[k] * filter[i * filterSize + j];
507 for (j = 0; j < filterSize; j++)
508 filter2[i * filter2Size + j] = filter[i * filterSize + j];
512 (*filterPos)[i] += (filterSize - 1) / 2 - (filter2Size - 1) / 2;
519 for (i = dstW - 1; i >= 0; i--) {
520 int min = filter2Size;
522 int64_t cutOff = 0.0;
525 for (j = 0; j < filter2Size; j++) {
527 cutOff +=
FFABS(filter2[i * filter2Size]);
534 if (i < dstW - 1 && (*filterPos)[i] >= (*filterPos)[i + 1])
538 for (k = 1; k < filter2Size; k++)
539 filter2[i * filter2Size + k - 1] = filter2[i * filter2Size + k];
540 filter2[i * filter2Size + k - 1] = 0;
546 for (j = filter2Size - 1; j > 0; j--) {
547 cutOff +=
FFABS(filter2[i * filter2Size + j]);
554 if (min > minFilterSize)
560 if (minFilterSize < 5)
566 if (minFilterSize < 3)
572 if (minFilterSize == 1 && filterAlign == 2)
577 filterSize = (minFilterSize + (filterAlign - 1)) & (~(filterAlign - 1));
579 filter =
av_malloc(filterSize * dstW *
sizeof(*filter));
582 av_log(NULL,
AV_LOG_ERROR,
"sws: filterSize %d is too large, try less extreme scaling or increase MAX_FILTER_SIZE and recompile\n", filterSize);
585 *outFilterSize = filterSize;
589 "SwScaler: reducing / aligning filtersize %d -> %d\n",
590 filter2Size, filterSize);
592 for (i = 0; i < dstW; i++) {
595 for (j = 0; j < filterSize; j++) {
596 if (j >= filter2Size)
597 filter[i * filterSize + j] = 0;
599 filter[i * filterSize + j] = filter2[i * filter2Size + j];
601 filter[i * filterSize + j] = 0;
608 for (i = 0; i < dstW; i++) {
610 if ((*filterPos)[i] < 0) {
612 for (j = 1; j < filterSize; j++) {
613 int left =
FFMAX(j + (*filterPos)[i], 0);
614 filter[i * filterSize + left] += filter[i * filterSize + j];
615 filter[i * filterSize + j] = 0;
620 if ((*filterPos)[i] + filterSize > srcW) {
621 int shift = (*filterPos)[i] + filterSize - srcW;
623 for (j = filterSize - 2; j >= 0; j--) {
624 int right =
FFMIN(j + shift, filterSize - 1);
625 filter[i * filterSize + right] += filter[i * filterSize + j];
626 filter[i * filterSize + j] = 0;
628 (*filterPos)[i]= srcW - filterSize;
635 *outFilterSize * (dstW + 3) *
sizeof(int16_t), fail);
638 for (i = 0; i < dstW; i++) {
643 for (j = 0; j < filterSize; j++) {
644 sum += filter[i * filterSize + j];
646 sum = (sum + one / 2) / one;
651 for (j = 0; j < *outFilterSize; j++) {
652 int64_t
v = filter[i * filterSize + j] + error;
654 (*outFilter)[i * (*outFilterSize) + j] = intV;
655 error = v - intV * sum;
659 (*filterPos)[dstW + 0] =
660 (*filterPos)[dstW + 1] =
661 (*filterPos)[dstW + 2] = (*filterPos)[dstW - 1];
663 for (i = 0; i < *outFilterSize; i++) {
664 int k = (dstW - 1) * (*outFilterSize) + i;
665 (*outFilter)[k + 1 * (*outFilterSize)] =
666 (*outFilter)[k + 2 * (*outFilterSize)] =
667 (*outFilter)[k + 3 * (*outFilterSize)] = (*outFilter)[k];
680 #if HAVE_MMXEXT_INLINE
681 static av_cold int init_hscaler_mmxext(
int dstW,
int xInc,
uint8_t *filterCode,
710 "movq (%%"REG_d
", %%"REG_a
"), %%mm3 \n\t"
711 "movd (%%"REG_c
", %%"REG_S
"), %%mm0 \n\t"
712 "movd 1(%%"REG_c
", %%"REG_S
"), %%mm1 \n\t"
713 "punpcklbw %%mm7, %%mm1 \n\t"
714 "punpcklbw %%mm7, %%mm0 \n\t"
715 "pshufw $0xFF, %%mm1, %%mm1 \n\t"
717 "pshufw $0xFF, %%mm0, %%mm0 \n\t"
719 "psubw %%mm1, %%mm0 \n\t"
720 "movl 8(%%"REG_b
", %%"REG_a
"), %%esi \n\t"
721 "pmullw %%mm3, %%mm0 \n\t"
722 "psllw $7, %%mm1 \n\t"
723 "paddw %%mm1, %%mm0 \n\t"
725 "movq %%mm0, (%%"REG_D
", %%"REG_a
") \n\t"
727 "add $8, %%"REG_a
" \n\t"
742 :
"=r" (fragmentA),
"=r" (imm8OfPShufW1A),
"=r" (imm8OfPShufW2A),
743 "=r" (fragmentLengthA)
750 "movq (%%"REG_d
", %%"REG_a
"), %%mm3 \n\t"
751 "movd (%%"REG_c
", %%"REG_S
"), %%mm0 \n\t"
752 "punpcklbw %%mm7, %%mm0 \n\t"
753 "pshufw $0xFF, %%mm0, %%mm1 \n\t"
755 "pshufw $0xFF, %%mm0, %%mm0 \n\t"
757 "psubw %%mm1, %%mm0 \n\t"
758 "movl 8(%%"REG_b
", %%"REG_a
"), %%esi \n\t"
759 "pmullw %%mm3, %%mm0 \n\t"
760 "psllw $7, %%mm1 \n\t"
761 "paddw %%mm1, %%mm0 \n\t"
763 "movq %%mm0, (%%"REG_D
", %%"REG_a
") \n\t"
765 "add $8, %%"REG_a
" \n\t"
780 :
"=r" (fragmentB),
"=r" (imm8OfPShufW1B),
"=r" (imm8OfPShufW2B),
781 "=r" (fragmentLengthB)
787 for (i = 0; i < dstW / numSplits; i++) {
792 int b = ((xpos + xInc) >> 16) - xx;
793 int c = ((xpos + xInc * 2) >> 16) - xx;
794 int d = ((xpos + xInc * 3) >> 16) - xx;
795 int inc = (d + 1 < 4);
796 uint8_t *fragment = inc ? fragmentB : fragmentA;
797 x86_reg imm8OfPShufW1 = inc ? imm8OfPShufW1B : imm8OfPShufW1A;
798 x86_reg imm8OfPShufW2 = inc ? imm8OfPShufW2B : imm8OfPShufW2A;
799 x86_reg fragmentLength = inc ? fragmentLengthB : fragmentLengthA;
800 int maxShift = 3 - (d + inc);
804 filter[i] = ((xpos & 0xFFFF) ^ 0xFFFF) >> 9;
805 filter[i + 1] = (((xpos + xInc) & 0xFFFF) ^ 0xFFFF) >> 9;
806 filter[i + 2] = (((xpos + xInc * 2) & 0xFFFF) ^ 0xFFFF) >> 9;
807 filter[i + 3] = (((xpos + xInc * 3) & 0xFFFF) ^ 0xFFFF) >> 9;
808 filterPos[i / 2] = xx;
810 memcpy(filterCode + fragmentPos, fragment, fragmentLength);
812 filterCode[fragmentPos + imm8OfPShufW1] = (a + inc) |
816 filterCode[fragmentPos + imm8OfPShufW2] = a | (b << 2) |
820 if (i + 4 - inc >= dstW)
822 else if ((filterPos[i / 2] & 3) <= maxShift)
823 shift = filterPos[i / 2] & 3;
825 if (shift && i >= shift) {
826 filterCode[fragmentPos + imm8OfPShufW1] += 0x55 *
shift;
827 filterCode[fragmentPos + imm8OfPShufW2] += 0x55 *
shift;
828 filterPos[i / 2] -=
shift;
832 fragmentPos += fragmentLength;
835 filterCode[fragmentPos] =
RET;
840 filterPos[((i / 2) + 1) & (~1)] = xpos >> 16;
842 return fragmentPos + 1;
848 int64_t
W,
V, Z, Cy, Cu, Cv;
849 int64_t vr = table[0];
850 int64_t ub = table[1];
851 int64_t ug = -table[2];
852 int64_t vg = -table[3];
857 static const int8_t map[] = {
882 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
883 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
884 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
885 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
886 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
887 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
888 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
889 -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
926 c->input_rgb2yuv_table[
BY_IDX] = ((int)(0.114 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
927 c->input_rgb2yuv_table[
BV_IDX] = (-(int)(0.081 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
928 c->input_rgb2yuv_table[
BU_IDX] = ((int)(0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
929 c->input_rgb2yuv_table[
GY_IDX] = ((int)(0.587 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
930 c->input_rgb2yuv_table[
GV_IDX] = (-(int)(0.419 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
931 c->input_rgb2yuv_table[
GU_IDX] = (-(int)(0.331 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
932 c->input_rgb2yuv_table[
RY_IDX] = ((int)(0.299 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
933 c->input_rgb2yuv_table[
RV_IDX] = ((int)(0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
934 c->input_rgb2yuv_table[
RU_IDX] = (-(int)(0.169 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5));
937 AV_WL16(p + 16*4 + 2*i, map[i] >= 0 ? c->input_rgb2yuv_table[map[i]] : 0);
947 static const int16_t xyz2rgb_matrix[3][4] = {
948 {13270, -6295, -2041},
950 { 228, -835, 4329} };
951 static const int16_t rgb2xyz_matrix[3][4] = {
955 static int16_t xyzgamma_tab[4096], rgbgamma_tab[4096], xyzgammainv_tab[4096], rgbgammainv_tab[4096];
964 if (rgbgamma_tab[4095])
968 for (i = 0; i < 4096; i++) {
969 xyzgamma_tab[i] =
lrint(pow(i / 4095.0, xyzgamma) * 4095.0);
970 rgbgamma_tab[i] =
lrint(pow(i / 4095.0, rgbgamma) * 4095.0);
971 xyzgammainv_tab[i] =
lrint(pow(i / 4095.0, xyzgammainv) * 4095.0);
972 rgbgammainv_tab[i] =
lrint(pow(i / 4095.0, rgbgammainv) * 4095.0);
977 int srcRange,
const int table[4],
int dstRange,
978 int brightness,
int contrast,
int saturation)
1008 contrast, saturation);
1013 contrast, saturation);
1022 int *srcRange,
int **
table,
int *dstRange,
1023 int *brightness,
int *contrast,
int *saturation)
1112 int usesVFilter, usesHFilter;
1114 SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
1119 int dst_stride =
FFALIGN(dstW *
sizeof(int16_t) + 66, 16);
1132 unscaled = (srcW == dstW && srcH == dstH);
1138 av_log(c,
AV_LOG_WARNING,
"deprecated pixel format used, make sure you did set range correctly\n");
1179 if (dstW < srcW && dstH < srcH)
1181 else if (dstW > srcW && dstH > srcH)
1186 }
else if (i & (i - 1)) {
1188 "Exactly one scaler algorithm must be chosen, got %X\n", i);
1192 if (srcW < 1 || srcH < 1 || dstW < 1 || dstH < 1) {
1196 srcW, srcH, dstW, dstH);
1201 dstFilter = &dummyFilter;
1203 srcFilter = &dummyFilter;
1205 c->
lumXInc = (((int64_t)srcW << 16) + (dstW >> 1)) / dstW;
1206 c->
lumYInc = (((int64_t)srcH << 16) + (dstH >> 1)) / dstH;
1209 c->
vRounder = 4 * 0x0001000100010001ULL;
1211 usesVFilter = (srcFilter->
lumV && srcFilter->
lumV->
length > 1) ||
1215 usesHFilter = (srcFilter->
lumH && srcFilter->
lumH->
length > 1) ||
1235 av_log(c,
AV_LOG_DEBUG,
"Forcing full internal H chroma due to input having non subsampled chroma\n");
1252 if (!(flags & SWS_FULL_CHR_H_INT)) {
1255 "Desired dithering only supported in full chroma interpolation for destination format '%s'\n",
1261 if (flags & SWS_FULL_CHR_H_INT) {
1264 "Ordered dither is not supported in full chroma interpolation for destination format '%s'\n",
1271 if (!(flags & SWS_FULL_CHR_H_INT)) {
1273 "%s output is not supported with half chroma resolution, switching to full\n",
1282 if (flags & SWS_FULL_CHR_H_INT &&
1297 "full chroma interpolation for destination format '%s' not yet implemented\n",
1299 flags &= ~SWS_FULL_CHR_H_INT;
1302 if (
isAnyRGB(dstFormat) && !(flags & SWS_FULL_CHR_H_INT))
1334 if (unscaled && !usesHFilter && !usesVFilter &&
1341 "using unscaled %s -> %s special converter\n",
1367 "output width is not a multiple of 32 -> no MMXEXT scaler\n");
1384 if (flags & SWS_FAST_BILINEAR) {
1391 c->
lumXInc = ((int64_t)(srcW - 2) << 16) / (dstW - 2) - 20;
1396 #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS)
1400 #if HAVE_MMXEXT_INLINE
1406 NULL, NULL, NULL, 4);
1410 PROT_READ | PROT_WRITE,
1411 MAP_PRIVATE | MAP_ANONYMOUS,
1414 PROT_READ | PROT_WRITE,
1415 MAP_PRIVATE | MAP_ANONYMOUS,
1417 #elif HAVE_VIRTUALALLOC
1421 PAGE_EXECUTE_READWRITE);
1425 PAGE_EXECUTE_READWRITE);
1431 #ifdef MAP_ANONYMOUS
1461 const int filterAlign =
X86_MMX(cpu_flags) ? 4 :
1466 srcW, dstW, filterAlign, 1 << 14,
1468 cpu_flags, srcFilter->
lumH, dstFilter->
lumH,
1476 (flags & SWS_BICUBLIN) ? (flags |
SWS_BILINEAR) : flags,
1477 cpu_flags, srcFilter->
chrH, dstFilter->
chrH,
1487 const int filterAlign =
X86_MMX(cpu_flags) ? 2 :
1491 c->
lumYInc, srcH, dstH, filterAlign, (1 << 12),
1493 cpu_flags, srcFilter->
lumV, dstFilter->
lumV,
1500 filterAlign, (1 << 12),
1501 (flags & SWS_BICUBLIN) ? (flags |
SWS_BILINEAR) : flags,
1502 cpu_flags, srcFilter->
chrV, dstFilter->
chrV,
1515 short *p = (
short *)&c->vYCoeffsBank[i];
1516 for (j = 0; j < 8; j++)
1522 short *p = (
short *)&c->vCCoeffsBank[i];
1523 for (j = 0; j < 8; j++)
1532 for (i = 0; i < dstH; i++) {
1533 int chrI = (int64_t)i * c->
chrDstH / dstH;
1548 for (i = 0; i < 4; i++)
1563 dst_stride + 16, fail);
1571 dst_stride * 2 + 32, fail);
1576 if (CONFIG_SWSCALE_ALPHA && c->
alpPixBuf)
1579 dst_stride + 16, fail);
1587 for(j=0; j<dst_stride/2+1; j++)
1590 for(j=0; j<dst_stride+1; j++)
1596 const char *scaler = NULL, *cpucaps;
1599 if (flags & scale_algorithms[i].flag) {
1605 scaler =
"ehh flags invalid?!";
1626 cpucaps =
"AltiVec";
1634 "lum srcW=%d srcH=%d dstW=%d dstH=%d xInc=%d yInc=%d\n",
1637 "chr srcW=%d srcH=%d dstW=%d dstH=%d xInc=%d yInc=%d\n",
1648 #if FF_API_SWS_GETCONTEXT
1652 SwsFilter *dstFilter,
const double *param)
1668 c->
param[0] = param[0];
1669 c->
param[1] = param[1];
1682 float lumaSharpen,
float chromaSharpen,
1683 float chromaHShift,
float chromaVShift,
1690 if (lumaGBlur != 0.0) {
1698 if (chromaGBlur != 0.0) {
1706 if (chromaSharpen != 0.0) {
1715 if (lumaSharpen != 0.0) {
1724 if (chromaHShift != 0.0)
1727 if (chromaVShift != 0.0)
1762 const int length = (int)(variance * quality + 0.5) | 1;
1764 double middle = (length - 1) * 0.5;
1767 if(variance < 0 || quality < 0)
1775 for (i = 0; i <
length; i++) {
1776 double dist = i - middle;
1777 vec->
coeff[i] = exp(-dist * dist / (2 * variance * variance)) /
1778 sqrt(2 * variance *
M_PI);
1794 for (i = 0; i <
length; i++)
1810 for (i = 0; i < a->
length; i++)
1820 for (i = 0; i < a->
length; i++)
1821 a->
coeff[i] *= scalar;
1838 for (i = 0; i < a->
length; i++) {
1839 for (j = 0; j < b->
length; j++) {
1856 for (i = 0; i < a->
length; i++)
1873 for (i = 0; i < a->
length; i++)
1891 for (i = 0; i < a->
length; i++) {
1892 vec->
coeff[i + (length - 1) / 2 -
1954 for (i = 0; i < a->
length; i++)
1955 if (a->
coeff[i] > max)
1958 for (i = 0; i < a->
length; i++)
1959 if (a->
coeff[i] < min)
1964 for (i = 0; i < a->
length; i++) {
1965 int x = (int)((a->
coeff[i] - min) * 60.0 / range + 0.5);
1966 av_log(log_ctx, log_level,
"%1.3f ", a->
coeff[i]);
1968 av_log(log_ctx, log_level,
" ");
1969 av_log(log_ctx, log_level,
"|\n");
2013 if (CONFIG_SWSCALE_ALPHA && c->
alpPixBuf) {
2019 for (i = 0; i < 4; i++)
2042 #elif HAVE_VIRTUALALLOC
2067 const double *
param)
2073 param = default_param;
2076 (context->
srcW != srcW ||
2077 context->
srcH != srcH ||
2079 context->
dstW != dstW ||
2080 context->
dstH != dstH ||
2082 context->
flags != flags ||
2083 context->
param[0] != param[0] ||
2084 context->
param[1] != param[1])) {
2099 context->
param[0] = param[0];
2100 context->
param[1] = param[1];