X265_MAX          202 source/common/common.h #define X265_MAX3(a, b, c) X265_MAX((a), X265_MAX((b), (c)))
X265_MAX          204 source/common/common.h #define X265_MAX4(a, b, c, d) X265_MAX((a), X265_MAX3((b), (c), (d)))
X265_MAX         1923 source/common/cudata.cpp     outMV.x = X265_MIN(xmax, X265_MAX(xmin, outMV.x));
X265_MAX         1924 source/common/cudata.cpp     outMV.y = X265_MIN(ymax, X265_MAX(ymin, outMV.y));
X265_MAX          351 source/common/picyuv.cpp             m_maxLumaLevel = X265_MAX(yPic[c], m_maxLumaLevel);
X265_MAX          367 source/common/picyuv.cpp                     m_maxChromaULevel = X265_MAX(uPic[c], m_maxChromaULevel);
X265_MAX          371 source/common/picyuv.cpp                     m_maxChromaVLevel = X265_MAX(vPic[c], m_maxChromaVLevel);
X265_MAX          950 source/common/pixel.cpp             maxLumaLevel = X265_MAX(src[c], maxLumaLevel);
X265_MAX          663 source/common/quant.cpp #define PSYVALUE(rec)   ((psyScale * (rec)) >> X265_MAX(0, (2 * transformShift + 1)))
X265_MAX          415 source/common/threadpool.cpp         numPools = X265_MAX(p->frameNumThreads / 2, 1);
X265_MAX          615 source/encoder/analysis.cpp             maxTUDepth = X265_MAX(maxTUDepth, md.pred[PRED_INTRA].cu.m_tuDepth[i]);
X265_MAX         1723 source/encoder/analysis.cpp                 maxTUDepth = X265_MAX(maxTUDepth, md.bestMode->cu.m_tuDepth[i]);
X265_MAX         2186 source/encoder/analysis.cpp                 maxTUDepth = X265_MAX(maxTUDepth, md.bestMode->cu.m_tuDepth[i]);
X265_MAX         2465 source/encoder/analysis.cpp                 if (X265_MAX(candMvField[i][0].mv.y, candMvField[i][1].mv.y) > m_sliceMaxY)
X265_MAX         2595 source/encoder/analysis.cpp                 if (X265_MAX(candMvField[i][0].mv.y, candMvField[i][1].mv.y) > m_sliceMaxY)
X265_MAX         2869 source/encoder/analysis.cpp         int merange = X265_MAX(m_param->sourceWidth, m_param->sourceHeight);
X265_MAX          529 source/encoder/encoder.cpp             int64_t bits = m_param->rc.bEnableConstVbv ? (int64_t)encoder->m_rce.frameSizePlanned : (int64_t)X265_MAX(encoder->m_rce.frameSizeEstimated, encoder->m_rce.frameSizePlanned);
X265_MAX          531 source/encoder/encoder.cpp             rc->m_bufferFill = X265_MAX(rc->m_bufferFill, 0);
X265_MAX         1704 source/encoder/encoder.cpp     m_analyzeAll.m_maxCLL = X265_MAX(m_analyzeAll.m_maxCLL, curFrame->m_fencPic->m_maxLumaLevel);
X265_MAX         2144 source/encoder/encoder.cpp     p->keyframeMin = X265_MAX(1, p->keyframeMin);
X265_MAX         2354 source/encoder/encoder.cpp     p->bFrameBias = X265_MIN(X265_MAX(-90, p->bFrameBias), 100);
X265_MAX         2455 source/encoder/encoder.cpp         if (p->rc.qgSize < X265_MAX(8, p->minCUSize))
X265_MAX         2457 source/encoder/encoder.cpp             p->rc.qgSize = X265_MAX(8, p->minCUSize);
X265_MAX         3163 source/encoder/encoder.cpp             analysisFrameData->scaledDistortion[ctuCount] = X265_LOG2(X265_MAX(analysisFrameData->ctuDistortion[ctuCount], 1));
X265_MAX         1293 source/encoder/entropy.cpp     int  initState  =  X265_MIN(X265_MAX(1, (((slope * qp) >> 4) + offset)), 126);
X265_MAX          643 source/encoder/frameencoder.cpp             sei->m_auCpbRemovalDelay = X265_MIN(X265_MAX(1, m_rce.encodeOrder - prevBPSEI), (1 << hrd->cpbRemovalDelayLength));
X265_MAX          292 source/encoder/level.cpp     vps.maxDecPicBuffering = X265_MIN(MAX_NUM_REF, X265_MAX(vps.numReorderPics + 2, (uint32_t)param.maxNumReferences) + 1);
X265_MAX          396 source/encoder/level.cpp         vps.maxDecPicBuffering = X265_MIN(MAX_NUM_REF, X265_MAX(vps.numReorderPics + 1, (uint32_t)param.maxNumReferences) + 1);
X265_MAX          788 source/encoder/motion.cpp             bmv.y = X265_MAX(X265_MIN(0, mvmax.y), mvmin.y);
X265_MAX         1238 source/encoder/motion.cpp         const int16_t minX = X265_MAX(omv.x - (int16_t)merange, mvmin.x);
X265_MAX         1239 source/encoder/motion.cpp         const int16_t minY = X265_MAX(omv.y - (int16_t)merange, mvmin.y);
X265_MAX          112 source/encoder/ratecontrol.cpp            + rce->mvBits * pow(X265_MAX(rce->qScale, 1) / X265_MAX(qScale, 1), 0.5)
X265_MAX          342 source/encoder/ratecontrol.cpp         m_param->rc.vbvBufferInit = x265_clip3(0.0, 1.0, X265_MAX(m_param->rc.vbvBufferInit, m_bufferRate / m_bufferSize));
X265_MAX         1071 source/encoder/ratecontrol.cpp     m_start = X265_MAX(m_start, endIndex - fps);
X265_MAX         1102 source/encoder/ratecontrol.cpp             adjustment = X265_MAX(X265_MIN(expectedBits / allAvailableBits, 0.999), 0.9);
X265_MAX         1286 source/encoder/ratecontrol.cpp                 rce->frameSizeMaximum = 8 * 1.5 * X265_MAX(picSizeInSamplesY, fr * enc->m_vps.ptl.maxLumaSrForLevel) / mincr;
X265_MAX         1596 source/encoder/ratecontrol.cpp             abrBuffer *= X265_MAX(1, sqrt(timeDone));
X265_MAX         1708 source/encoder/ratecontrol.cpp             q = X265_MAX(ABR_SCENECUT_INIT_QP_MIN, q);
X265_MAX         1710 source/encoder/ratecontrol.cpp             m_lastQScaleFor[P_SLICE] = X265_MAX(minScenecutQscale, m_lastQScaleFor[P_SLICE]);
X265_MAX         1798 source/encoder/ratecontrol.cpp                 abrBuffer *= 0.5 * X265_MAX(scaleFactor, 0.5);
X265_MAX         1839 source/encoder/ratecontrol.cpp                 qmax = X265_MAX(qmax, rce->newQScale);
X265_MAX         1960 source/encoder/ratecontrol.cpp                 q = X265_MAX(minScenecutQscale, q);
X265_MAX         1961 source/encoder/ratecontrol.cpp                 m_lastQScaleFor[P_SLICE] = X265_MAX(minScenecutQscale, m_lastQScaleFor[P_SLICE]);
X265_MAX         2016 source/encoder/ratecontrol.cpp                 m_amortizeFrames = X265_MAX(m_amortizeFrames, MIN_AMORTIZE_FRAME);
X265_MAX         2017 source/encoder/ratecontrol.cpp                 m_amortizeFraction = X265_MAX(m_amortizeFraction, MIN_AMORTIZE_FRACTION);
X265_MAX         2060 source/encoder/ratecontrol.cpp             int pos = X265_MAX(m_sliderPos - m_param->frameNumThreads, 0);
X265_MAX         2184 source/encoder/ratecontrol.cpp             q = X265_MAX(q0 / 2, q);
X265_MAX         2217 source/encoder/ratecontrol.cpp             q = X265_MAX(q0, q);
X265_MAX         2229 source/encoder/ratecontrol.cpp             q = X265_MAX(q0, q);
X265_MAX         2369 source/encoder/ratecontrol.cpp         qpAbsoluteMin = X265_MAX(qpAbsoluteMin, rce->qpNoVbv - m_rateFactorMaxDecrement);
X265_MAX         2372 source/encoder/ratecontrol.cpp     double qpMin = X265_MAX(prevRowQp - m_param->rc.qpStep, qpAbsoluteMin);
X265_MAX         2377 source/encoder/ratecontrol.cpp     double maxFrameError = X265_MAX(0.05, 1.0 / sps.numCuInHeight);
X265_MAX         2396 source/encoder/ratecontrol.cpp             qpMin = X265_MAX(qpMin, rce->qpNoVbv);
X265_MAX         2520 source/encoder/ratecontrol.cpp     double new_coeff = X265_MAX((bits * q - old_offset) / var, p->coeffMin );
X265_MAX         2551 source/encoder/ratecontrol.cpp     m_bufferFillFinal = X265_MAX(m_bufferFillFinal, 0);
X265_MAX         2563 source/encoder/ratecontrol.cpp         m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits + filler, 0);
X265_MAX         2570 source/encoder/ratecontrol.cpp         m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits, 0);
X265_MAX         2740 source/encoder/ratecontrol.cpp                 rce->hrdTiming->cpbInitialAT = hrd->cbrFlag ? m_prevCpbFinalAT : X265_MAX(m_prevCpbFinalAT, cpbEarliestAT);
X265_MAX         1410 source/encoder/sao.cpp                         offsetOut = X265_MAX(offsetOut, 0);
X265_MAX         2390 source/encoder/search.cpp                 int merange = X265_MAX(m_param->sourceWidth, m_param->sourceHeight);
X265_MAX         2609 source/encoder/search.cpp         mvmin.y = X265_MAX(mvmin.y, m_sliceMinY);
X265_MAX         2616 source/encoder/search.cpp     mvmin.x = X265_MAX(mvmin.x, -maxMvLen);
X265_MAX         2617 source/encoder/search.cpp     mvmin.y = X265_MAX(mvmin.y, -maxMvLen);
X265_MAX         2629 source/encoder/search.cpp     mvmax.y = X265_MAX(mvmax.y, mvmin.y);
X265_MAX         3003 source/encoder/search.cpp                 m_maxTUDepth = X265_MAX(m_maxTUDepth, cu.m_tuDepth[i]);
X265_MAX          243 source/encoder/slicetype.cpp                     qp_adj = strength * (X265_LOG2(X265_MAX(energy, 1)) - (modeOneConst + 2 * (X265_DEPTH - 8)));
X265_MAX          604 source/encoder/slicetype.cpp     m_fullQueueSize = X265_MAX(1, m_param->lookaheadDepth);
X265_MAX          638 source/encoder/slicetype.cpp         m_numRowsPerSlice = X265_MAX(m_numRowsPerSlice, 10);            // at least 10 rows per slice
X265_MAX          994 source/encoder/slicetype.cpp     maxSearch = X265_MAX(1, maxSearch);
X265_MAX         1494 source/encoder/slicetype.cpp                     int64_t pthresh = X265_MAX(INTER_THRESH - P_SENS_BIAS * (j - i - 1), INTER_THRESH / 10);
X265_MAX         3044 source/test/pixelharness.cpp             REPORT_SPEEDUP(opt.cu[i].cpy2Dto1D_shl, ref.cu[i].cpy2Dto1D_shl, sbuf1, sbuf2, STRIDE, X265_MAX(0, shift));