Revision 911406f2

View differences:

libswscale/swscale.c
2050 2050
	c->chrIntHSubSample= c->chrDstHSubSample;
2051 2051
	c->chrIntVSubSample= c->chrSrcVSubSample;
2052 2052

  
2053
	// note the -((-x)>>y) is so that we allways round toward +inf
2053
	// Note the -((-x)>>y) is so that we always round toward +inf.
2054 2054
	c->chrSrcW= -((-srcW) >> c->chrSrcHSubSample);
2055 2055
	c->chrSrcH= -((-srcH) >> c->chrSrcVSubSample);
2056 2056
	c->chrDstW= -((-dstW) >> c->chrDstHSubSample);
libswscale/swscale_internal.h
54 54
	int chrSrcW, chrSrcH, chrDstW, chrDstH;
55 55
	int lumXInc, chrXInc;
56 56
	int lumYInc, chrYInc;
57
	int dstFormat, srcFormat;               ///< format 4:2:0 type is allways YV12
57
	int dstFormat, srcFormat;               ///< format 4:2:0 type is always YV12
58 58
	int origDstFormat, origSrcFormat;       ///< format
59 59
	int chrSrcHSubSample, chrSrcVSubSample;
60 60
	int chrIntHSubSample, chrIntVSubSample;
libswscale/swscale_template.c
2317 2317
{
2318 2318
#ifdef HAVE_MMX
2319 2319
	assert(filterSize % 4 == 0 && filterSize>0);
2320
	if(filterSize==4) // allways true for upscaling, sometimes for down too
2320
	if(filterSize==4) // Always true for upscaling, sometimes for down, too.
2321 2321
	{
2322 2322
		long counter= -2*dstW;
2323 2323
		filter-= counter*2;

Also available in: Unified diff