uint32_t 114 source/common/arm/blockcopy8.h uint32_t x265_copy_cnt_4_neon(int16_t* coeff, const int16_t* residual, intptr_t resiStride); uint32_t 115 source/common/arm/blockcopy8.h uint32_t x265_copy_cnt_8_neon(int16_t* coeff, const int16_t* residual, intptr_t resiStride); uint32_t 116 source/common/arm/blockcopy8.h uint32_t x265_copy_cnt_16_neon(int16_t* coeff, const int16_t* residual, intptr_t resiStride); uint32_t 117 source/common/arm/blockcopy8.h uint32_t x265_copy_cnt_32_neon(int16_t* coeff, const int16_t* residual, intptr_t resiStride); uint32_t 82 source/common/arm/pixel-util.h uint32_t x265_quant_neon(const int16_t* coef, const int32_t* quantCoeff, int32_t* deltaU, int16_t* qCoef, int qBits, int add, int numCoeff); uint32_t 83 source/common/arm/pixel-util.h uint32_t x265_nquant_neon(const int16_t* coef, const int32_t* quantCoeff, int16_t* qCoef, int qBits, int add, int numCoeff); uint32_t 45 source/common/bitstream.cpp void Bitstream::write(uint32_t val, uint32_t numBits) uint32_t 50 source/common/bitstream.cpp uint32_t totalPartialBits = m_partialByteBits + numBits; uint32_t 51 source/common/bitstream.cpp uint32_t nextPartialBits = totalPartialBits & 7; uint32_t 53 source/common/bitstream.cpp uint32_t writeBytes = totalPartialBits >> 3; uint32_t 58 source/common/bitstream.cpp uint32_t topword = (numBits - nextPartialBits) & ~7; uint32_t 60 source/common/bitstream.cpp uint32_t write_bits = (topword < 32 ? m_partialByte << topword : 0) | (val >> nextPartialBits); uint32_t 62 source/common/bitstream.cpp uint32_t write_bits = (m_partialByte << topword) | (val >> nextPartialBits); uint32_t 83 source/common/bitstream.cpp void Bitstream::writeByte(uint32_t val) uint32_t 93 source/common/bitstream.cpp uint32_t numBits = (8 - m_partialByteBits) & 0x7; uint32_t 114 source/common/bitstream.cpp void SyntaxElementWriter::writeUvlc(uint32_t code) uint32_t 122 source/common/bitstream.cpp uint32_t length = (uint32_t)idx * 2 + 1; uint32_t 35 source/common/bitstream.h virtual void write(uint32_t val, uint32_t numBits) = 0; uint32_t 36 source/common/bitstream.h virtual void writeByte(uint32_t val) = 0; uint32_t 38 source/common/bitstream.h virtual uint32_t getNumberOfWrittenBits() const = 0; uint32_t 48 source/common/bitstream.h uint32_t m_bitCounter; uint32_t 54 source/common/bitstream.h void write(uint32_t, uint32_t num) { m_bitCounter += num; } uint32_t 55 source/common/bitstream.h void writeByte(uint32_t) { m_bitCounter += 8; } uint32_t 57 source/common/bitstream.h uint32_t getNumberOfWrittenBits() const { return m_bitCounter; } uint32_t 71 source/common/bitstream.h uint32_t getNumberOfWrittenBytes() const { return m_byteOccupancy; } uint32_t 72 source/common/bitstream.h uint32_t getNumberOfWrittenBits() const { return m_byteOccupancy * 8 + m_partialByteBits; } uint32_t 76 source/common/bitstream.h void write(uint32_t val, uint32_t numBits); uint32_t 77 source/common/bitstream.h void writeByte(uint32_t val); uint32_t 86 source/common/bitstream.h uint32_t m_byteAlloc; uint32_t 87 source/common/bitstream.h uint32_t m_byteOccupancy; uint32_t 88 source/common/bitstream.h uint32_t m_partialByteBits; uint32_t 147 source/common/bitstream.h inline void WRITE_CODE(uint32_t code, uint32_t length, const char *) { writeCode(code, length); } uint32_t 148 source/common/bitstream.h inline void WRITE_UVLC(uint32_t code, const char *) { writeUvlc(code); } uint32_t 152 source/common/bitstream.h void writeCode(uint32_t code, uint32_t length) { m_bitIf->write(code, length); } uint32_t 153 source/common/bitstream.h void writeUvlc(uint32_t code); uint32_t 154 source/common/bitstream.h void writeSvlc(int32_t code) { uint32_t ucode = (code <= 0) ? -code << 1 : (code << 1) - 1; writeUvlc(ucode); } uint32_t 254 source/common/common.cpp uint32_t x265_picturePlaneSize(int csp, int width, int height, int plane) uint32_t 256 source/common/common.cpp uint32_t size = (uint32_t)(width >> x265_cli_csps[csp].width[plane]) * (height >> x265_cli_csps[csp].height[plane]); uint32_t 128 source/common/common.h typedef uint32_t sum_t; uint32_t 135 source/common/common.h typedef uint32_t sum2_t; uint32_t 136 source/common/common.h typedef uint32_t pixel4; uint32_t 141 source/common/common.h typedef uint32_t sse_t; uint32_t 351 source/common/common.h uint32_t bandPos; // BO band position uint32_t 434 source/common/common.h uint32_t x265_picturePlaneSize(int csp, int width, int height, int plane); uint32_t 164 source/common/constants.cpp uint32_t g_maxLog2CUSize = MAX_LOG2_CU_SIZE; uint32_t 165 source/common/constants.cpp uint32_t g_maxCUSize = MAX_CU_SIZE; uint32_t 166 source/common/constants.cpp uint32_t g_unitSizeDepth = NUM_CU_DEPTH; uint32_t 167 source/common/constants.cpp uint32_t g_maxCUDepth = NUM_CU_DEPTH - 1; uint32_t 168 source/common/constants.cpp uint32_t g_maxSlices = 1; uint32_t 170 source/common/constants.cpp const uint32_t g_zscanToRaster[MAX_NUM_PARTITIONS] = uint32_t 190 source/common/constants.cpp const uint32_t g_rasterToZscan[MAX_NUM_PARTITIONS] = uint32_t 570 source/common/constants.cpp const uint32_t g_depthScanIdx[8][8] = uint32_t 44 source/common/constants.h extern const uint32_t g_zscanToRaster[MAX_NUM_PARTITIONS]; uint32_t 45 source/common/constants.h extern const uint32_t g_rasterToZscan[MAX_NUM_PARTITIONS]; uint32_t 53 source/common/constants.h extern uint32_t g_maxLog2CUSize; uint32_t 54 source/common/constants.h extern uint32_t g_maxCUSize; uint32_t 55 source/common/constants.h extern uint32_t g_maxCUDepth; uint32_t 56 source/common/constants.h extern uint32_t g_unitSizeDepth; // Depth at which 4x4 unit occurs from max CU size uint32_t 57 source/common/constants.h extern uint32_t g_maxSlices; // number of Slices uint32_t 94 source/common/constants.h extern const uint32_t g_depthScanIdx[8][8]; uint32_t 106 source/common/contexts.h extern "C" const uint32_t PFX(entropyStateBits)[128]; uint32_t 111 source/common/contexts.h extern const uint32_t g_entropyBits[128]; uint32_t 120 source/common/contexts.h static const uint32_t ctxCbf[3][5] = { { 1, 0, 0, 0, 0 }, { 2, 3, 4, 5, 6 }, { 2, 3, 4, 5, 6 } }; uint32_t 117 source/common/cpu.cpp void PFX(cpu_cpuid)(uint32_t op, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx); uint32_t 118 source/common/cpu.cpp void PFX(cpu_xgetbv)(uint32_t op, uint32_t *eax, uint32_t *edx); uint32_t 125 source/common/cpu.cpp uint32_t cpu_detect(void) uint32_t 127 source/common/cpu.cpp uint32_t cpu = 0; uint32_t 129 source/common/cpu.cpp uint32_t eax, ebx, ecx, edx; uint32_t 130 source/common/cpu.cpp uint32_t vendor[4] = { 0 }; uint32_t 131 source/common/cpu.cpp uint32_t max_extended_cap, max_basic_cap; uint32_t 286 source/common/cpu.cpp uint32_t buf[4]; uint32_t 331 source/common/cpu.cpp uint32_t cpu_detect(void) uint32_t 374 source/common/cpu.cpp uint32_t cpu_detect(void) uint32_t 385 source/common/cpu.cpp uint32_t cpu_detect(void) uint32_t 53 source/common/cpu.h uint32_t cpu_detect(void); uint32_t 58 source/common/cpu.h uint32_t flags; uint32_t 39 source/common/cudata.cpp static void copy4(uint8_t* dst, uint8_t* src) { ((uint32_t*)dst)[0] = ((uint32_t*)src)[0]; } uint32_t 40 source/common/cudata.cpp static void bcast4(uint8_t* dst, uint8_t val) { ((uint32_t*)dst)[0] = 0x01010101u * val; } uint32_t 119 source/common/cudata.cpp void CUData::initialize(const CUDataMemPool& dataPool, uint32_t depth, const x265_param& param, int instance) uint32_t 222 source/common/cudata.cpp uint32_t cuSize = param.maxCUSize >> depth; uint32_t 264 source/common/cudata.cpp uint32_t cuSize = param.maxCUSize >> depth; uint32_t 265 source/common/cudata.cpp uint32_t sizeL = cuSize * cuSize; uint32_t 266 source/common/cudata.cpp uint32_t sizeC = sizeL >> (m_hChromaShift + m_vChromaShift); // block chroma part uint32_t 275 source/common/cudata.cpp void CUData::initCTU(const Frame& frame, uint32_t cuAddr, int qp, uint32_t firstRowInSlice, uint32_t lastRowInSlice, uint32_t lastCuInSlice) uint32_t 310 source/common/cudata.cpp uint32_t widthInCU = m_slice->m_sps->numCuInWidth; uint32_t 358 source/common/cudata.cpp void CUData::copyPartFrom(const CUData& subCU, const CUGeom& childGeom, uint32_t subPartIdx) uint32_t 362 source/common/cudata.cpp uint32_t offset = childGeom.numPartitions * subPartIdx; uint32_t 392 source/common/cudata.cpp uint32_t tmp = 1 << ((m_slice->m_param->maxLog2CUSize - childGeom.depth) * 2); uint32_t 393 source/common/cudata.cpp uint32_t tmp2 = subPartIdx * tmp; uint32_t 404 source/common/cudata.cpp uint32_t tmpC = tmp >> (m_hChromaShift + m_vChromaShift); uint32_t 405 source/common/cudata.cpp uint32_t tmpC2 = tmp2 >> (m_hChromaShift + m_vChromaShift); uint32_t 413 source/common/cudata.cpp void CUData::setEmptyPart(const CUGeom& childGeom, uint32_t subPartIdx) uint32_t 415 source/common/cudata.cpp uint32_t offset = childGeom.numPartitions * subPartIdx; uint32_t 463 source/common/cudata.cpp void CUData::copyToPic(uint32_t depth) const uint32_t 491 source/common/cudata.cpp uint32_t tmpY = 1 << ((m_slice->m_param->maxLog2CUSize - depth) * 2); uint32_t 492 source/common/cudata.cpp uint32_t tmpY2 = m_absIdxInCTU << (LOG2_UNIT_SIZE * 2); uint32_t 503 source/common/cudata.cpp uint32_t tmpC = tmpY >> (m_hChromaShift + m_vChromaShift); uint32_t 504 source/common/cudata.cpp uint32_t tmpC2 = tmpY2 >> (m_hChromaShift + m_vChromaShift); uint32_t 560 source/common/cudata.cpp void CUData::updatePic(uint32_t depth, int picCsp) const uint32_t 570 source/common/cudata.cpp uint32_t tmpY = 1 << ((m_slice->m_param->maxLog2CUSize - depth) * 2); uint32_t 571 source/common/cudata.cpp uint32_t tmpY2 = m_absIdxInCTU << (LOG2_UNIT_SIZE * 2); uint32_t 590 source/common/cudata.cpp const CUData* CUData::getPULeft(uint32_t& lPartUnitIdx, uint32_t curPartUnitIdx) const uint32_t 592 source/common/cudata.cpp uint32_t absPartIdx = g_zscanToRaster[curPartUnitIdx]; uint32_t 596 source/common/cudata.cpp uint32_t absZorderCUIdx = g_zscanToRaster[m_absIdxInCTU]; uint32_t 611 source/common/cudata.cpp const CUData* CUData::getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx) const uint32_t 613 source/common/cudata.cpp uint32_t absPartIdx = g_zscanToRaster[curPartUnitIdx]; uint32_t 617 source/common/cudata.cpp uint32_t absZorderCUIdx = g_zscanToRaster[m_absIdxInCTU]; uint32_t 630 source/common/cudata.cpp const CUData* CUData::getPUAboveLeft(uint32_t& alPartUnitIdx, uint32_t curPartUnitIdx) const uint32_t 632 source/common/cudata.cpp uint32_t absPartIdx = g_zscanToRaster[curPartUnitIdx]; uint32_t 638 source/common/cudata.cpp uint32_t absZorderCUIdx = g_zscanToRaster[m_absIdxInCTU]; uint32_t 662 source/common/cudata.cpp const CUData* CUData::getPUAboveRight(uint32_t& arPartUnitIdx, uint32_t curPartUnitIdx) const uint32_t 667 source/common/cudata.cpp uint32_t absPartIdxRT = g_zscanToRaster[curPartUnitIdx]; uint32_t 675 source/common/cudata.cpp uint32_t absZorderCUIdx = g_zscanToRaster[m_absIdxInCTU] + (1 << (m_log2CUSize[0] - LOG2_UNIT_SIZE)) - 1; uint32_t 698 source/common/cudata.cpp const CUData* CUData::getPUBelowLeft(uint32_t& blPartUnitIdx, uint32_t curPartUnitIdx) const uint32_t 703 source/common/cudata.cpp uint32_t absPartIdxLB = g_zscanToRaster[curPartUnitIdx]; uint32_t 711 source/common/cudata.cpp uint32_t absZorderCUIdxLB = g_zscanToRaster[m_absIdxInCTU] + (((1 << (m_log2CUSize[0] - LOG2_UNIT_SIZE)) - 1) << LOG2_RASTER_SIZE); uint32_t 730 source/common/cudata.cpp const CUData* CUData::getPUBelowLeftAdi(uint32_t& blPartUnitIdx, uint32_t curPartUnitIdx, uint32_t partUnitOffset) const uint32_t 735 source/common/cudata.cpp uint32_t absPartIdxLB = g_zscanToRaster[curPartUnitIdx]; uint32_t 743 source/common/cudata.cpp uint32_t absZorderCUIdxLB = g_zscanToRaster[m_absIdxInCTU] + (((1 << (m_log2CUSize[0] - LOG2_UNIT_SIZE)) - 1) << LOG2_RASTER_SIZE); uint32_t 762 source/common/cudata.cpp const CUData* CUData::getPUAboveRightAdi(uint32_t& arPartUnitIdx, uint32_t curPartUnitIdx, uint32_t partUnitOffset) const uint32_t 767 source/common/cudata.cpp uint32_t absPartIdxRT = g_zscanToRaster[curPartUnitIdx]; uint32_t 775 source/common/cudata.cpp uint32_t absZorderCUIdx = g_zscanToRaster[m_absIdxInCTU] + (1 << (m_log2CUSize[0] - LOG2_UNIT_SIZE)) - 1; uint32_t 799 source/common/cudata.cpp const CUData* CUData::getQpMinCuLeft(uint32_t& lPartUnitIdx, uint32_t curAbsIdxInCTU) const uint32_t 801 source/common/cudata.cpp uint32_t absZorderQpMinCUIdx = curAbsIdxInCTU & (0xFF << (m_encData->m_param->unitSizeDepth - m_slice->m_pps->maxCuDQPDepth) * 2); uint32_t 802 source/common/cudata.cpp uint32_t absRorderQpMinCUIdx = g_zscanToRaster[absZorderQpMinCUIdx]; uint32_t 816 source/common/cudata.cpp const CUData* CUData::getQpMinCuAbove(uint32_t& aPartUnitIdx, uint32_t curAbsIdxInCTU) const uint32_t 818 source/common/cudata.cpp uint32_t absZorderQpMinCUIdx = curAbsIdxInCTU & (0xFF << (m_encData->m_param->unitSizeDepth - m_slice->m_pps->maxCuDQPDepth) * 2); uint32_t 819 source/common/cudata.cpp uint32_t absRorderQpMinCUIdx = g_zscanToRaster[absZorderQpMinCUIdx]; uint32_t 833 source/common/cudata.cpp int8_t CUData::getRefQP(uint32_t curAbsIdxInCTU) const uint32_t 835 source/common/cudata.cpp uint32_t lPartIdx = 0, aPartIdx = 0; uint32_t 848 source/common/cudata.cpp uint32_t depth = m_cuDepth[lastValidPartIdx]; uint32_t 855 source/common/cudata.cpp int8_t CUData::getLastCodedQP(uint32_t absPartIdx) const uint32_t 857 source/common/cudata.cpp uint32_t quPartIdxMask = 0xFF << (m_encData->m_param->unitSizeDepth - m_slice->m_pps->maxCuDQPDepth) * 2; uint32_t 874 source/common/cudata.cpp void CUData::getAllowedChromaDir(uint32_t absPartIdx, uint32_t* modeList) const uint32_t 882 source/common/cudata.cpp uint32_t lumaMode = m_lumaIntraDir[absPartIdx]; uint32_t 895 source/common/cudata.cpp int CUData::getIntraDirLumaPredictor(uint32_t absPartIdx, uint32_t* intraDirPred) const uint32_t 898 source/common/cudata.cpp uint32_t tempPartIdx; uint32_t 899 source/common/cudata.cpp uint32_t leftIntraDir, aboveIntraDir; uint32_t 940 source/common/cudata.cpp uint32_t CUData::getCtxSplitFlag(uint32_t absPartIdx, uint32_t depth) const uint32_t 943 source/common/cudata.cpp uint32_t tempPartIdx; uint32_t 944 source/common/cudata.cpp uint32_t ctx; uint32_t 957 source/common/cudata.cpp void CUData::getIntraTUQtDepthRange(uint32_t tuDepthRange[2], uint32_t absPartIdx) const uint32_t 959 source/common/cudata.cpp uint32_t log2CUSize = m_log2CUSize[absPartIdx]; uint32_t 960 source/common/cudata.cpp uint32_t splitFlag = m_partSize[absPartIdx] != SIZE_2Nx2N; uint32_t 968 source/common/cudata.cpp void CUData::getInterTUQtDepthRange(uint32_t tuDepthRange[2], uint32_t absPartIdx) const uint32_t 970 source/common/cudata.cpp uint32_t log2CUSize = m_log2CUSize[absPartIdx]; uint32_t 971 source/common/cudata.cpp uint32_t quadtreeTUMaxDepth = m_slice->m_sps->quadtreeTUMaxDepthInter; uint32_t 972 source/common/cudata.cpp uint32_t splitFlag = quadtreeTUMaxDepth == 1 && m_partSize[absPartIdx] != SIZE_2Nx2N; uint32_t 980 source/common/cudata.cpp uint32_t CUData::getCtxSkipFlag(uint32_t absPartIdx) const uint32_t 983 source/common/cudata.cpp uint32_t tempPartIdx; uint32_t 984 source/common/cudata.cpp uint32_t ctx; uint32_t 997 source/common/cudata.cpp bool CUData::setQPSubCUs(int8_t qp, uint32_t absPartIdx, uint32_t depth) uint32_t 999 source/common/cudata.cpp uint32_t curPartNumb = m_encData->m_param->num4x4Partitions >> (depth << 1); uint32_t 1000 source/common/cudata.cpp uint32_t curPartNumQ = curPartNumb >> 2; uint32_t 1004 source/common/cudata.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 1019 source/common/cudata.cpp void CUData::setPUInterDir(uint8_t dir, uint32_t absPartIdx, uint32_t puIdx) uint32_t 1021 source/common/cudata.cpp uint32_t curPartNumQ = m_numPartitions >> 2; uint32_t 1277 source/common/cudata.cpp void CUData::getPartIndexAndSize(uint32_t partIdx, uint32_t& outPartAddr, int& outWidth, int& outHeight) const uint32_t 1288 source/common/cudata.cpp void CUData::getMvField(const CUData* cu, uint32_t absPartIdx, int picList, MVField& outMvField) const uint32_t 1303 source/common/cudata.cpp void CUData::deriveLeftRightTopIdx(uint32_t partIdx, uint32_t& partIdxLT, uint32_t& partIdxRT) const uint32_t 1345 source/common/cudata.cpp uint32_t CUData::deriveLeftBottomIdx(uint32_t puIdx) const uint32_t 1347 source/common/cudata.cpp uint32_t outPartIdxLB; uint32_t 1384 source/common/cudata.cpp uint32_t CUData::deriveRightBottomIdx(uint32_t puIdx) const uint32_t 1386 source/common/cudata.cpp uint32_t outPartIdxRB; uint32_t 1424 source/common/cudata.cpp bool CUData::hasEqualMotion(uint32_t absPartIdx, const CUData& candCU, uint32_t candAbsPartIdx) const uint32_t 1429 source/common/cudata.cpp for (uint32_t refListIdx = 0; refListIdx < 2; refListIdx++) uint32_t 1443 source/common/cudata.cpp uint32_t CUData::getInterMergeCandidates(uint32_t absPartIdx, uint32_t puIdx, MVField(*candMvField)[2], uint8_t* candDir) const uint32_t 1445 source/common/cudata.cpp uint32_t absPartAddr = m_absIdxInCTU + absPartIdx; uint32_t 1448 source/common/cudata.cpp const uint32_t maxNumMergeCand = m_slice->m_maxNumMergeCand; uint32_t 1450 source/common/cudata.cpp for (uint32_t i = 0; i < maxNumMergeCand; ++i) uint32_t 1472 source/common/cudata.cpp uint32_t count = 0; uint32_t 1474 source/common/cudata.cpp uint32_t partIdxLT, partIdxRT, partIdxLB = deriveLeftBottomIdx(puIdx); uint32_t 1478 source/common/cudata.cpp uint32_t leftPartIdx = 0; uint32_t 1500 source/common/cudata.cpp uint32_t abovePartIdx = 0; uint32_t 1520 source/common/cudata.cpp uint32_t aboveRightPartIdx = 0; uint32_t 1539 source/common/cudata.cpp uint32_t leftBottomPartIdx = 0; uint32_t 1560 source/common/cudata.cpp uint32_t aboveLeftPartIdx = 0; uint32_t 1581 source/common/cudata.cpp uint32_t partIdxRB = deriveRightBottomIdx(puIdx); uint32_t 1589 source/common/cudata.cpp uint32_t absPartIdxRB = g_zscanToRaster[partIdxRB]; uint32_t 1590 source/common/cudata.cpp uint32_t numUnits = s_numPartInCUSize; uint32_t 1617 source/common/cudata.cpp uint32_t partIdxCenter = deriveCenterIdx(puIdx); uint32_t 1644 source/common/cudata.cpp const uint32_t cutoff = count * (count - 1); uint32_t 1645 source/common/cudata.cpp uint32_t priorityList0 = 0xEDC984; // { 0, 1, 0, 2, 1, 2, 0, 3, 1, 3, 2, 3 } uint32_t 1646 source/common/cudata.cpp uint32_t priorityList1 = 0xB73621; // { 1, 0, 2, 0, 2, 1, 3, 0, 3, 1, 3, 2 } uint32_t 1648 source/common/cudata.cpp for (uint32_t idx = 0; idx < cutoff; idx++, priorityList0 >>= 2, priorityList1 >>= 2) uint32_t 1705 source/common/cudata.cpp int CUData::getPMV(InterNeighbourMV *neighbours, uint32_t picList, uint32_t refIdx, MV* amvpCand, MV* pmv) const uint32_t 1779 source/common/cudata.cpp uint32_t cuAddr = neighbours[MD_COLLOCATED].cuAddr[picList]; uint32_t 1807 source/common/cudata.cpp void CUData::getNeighbourMV(uint32_t puIdx, uint32_t absPartIdx, InterNeighbourMV* neighbours) const uint32_t 1812 source/common/cudata.cpp uint32_t partIdxLT, partIdxRT, partIdxLB = deriveLeftBottomIdx(puIdx); uint32_t 1824 source/common/cudata.cpp uint32_t absPartAddr = m_absIdxInCTU + absPartIdx; uint32_t 1825 source/common/cudata.cpp uint32_t partIdxRB = deriveRightBottomIdx(puIdx); uint32_t 1834 source/common/cudata.cpp uint32_t absPartIdxRB = g_zscanToRaster[partIdxRB]; uint32_t 1835 source/common/cudata.cpp uint32_t numUnits = s_numPartInCUSize; uint32_t 1857 source/common/cudata.cpp uint32_t partIdxCenter = deriveCenterIdx(puIdx); uint32_t 1858 source/common/cudata.cpp uint32_t curCTUIdx = m_cuAddr; uint32_t 1864 source/common/cudata.cpp void CUData::getInterNeighbourMV(InterNeighbourMV *neighbour, uint32_t partUnitIdx, MVP_DIR dir) const uint32_t 1867 source/common/cudata.cpp uint32_t idx = 0; uint32_t 1914 source/common/cudata.cpp const uint32_t mvshift = 2; uint32_t 1915 source/common/cudata.cpp uint32_t offset = 8; uint32_t 1928 source/common/cudata.cpp bool CUData::getDirectPMV(MV& pmv, InterNeighbourMV *neighbours, uint32_t picList, uint32_t refIdx) const uint32_t 1944 source/common/cudata.cpp bool CUData::getIndirectPMV(MV& outMV, InterNeighbourMV *neighbours, uint32_t picList, uint32_t refIdx) const uint32_t 1970 source/common/cudata.cpp uint32_t absPartAddr = partUnitIdx & TMVP_UNIT_MASK; uint32_t 2005 source/common/cudata.cpp uint32_t absPartAddr = partUnitIdx & TMVP_UNIT_MASK; uint32_t 2044 source/common/cudata.cpp uint32_t CUData::deriveCenterIdx(uint32_t puIdx) const uint32_t 2046 source/common/cudata.cpp uint32_t absPartIdx; uint32_t 2056 source/common/cudata.cpp void CUData::getTUEntropyCodingParameters(TUEntropyCodingParameters &result, uint32_t absPartIdx, uint32_t log2TrSize, bool bIsLuma) const uint32_t 2061 source/common/cudata.cpp const uint32_t log2TrSizeCG = log2TrSize - 2; uint32_t 2066 source/common/cudata.cpp uint32_t dirMode; uint32_t 2101 source/common/cudata.cpp void CUData::calcCTUGeoms(uint32_t ctuWidth, uint32_t ctuHeight, uint32_t maxCUSize, uint32_t minCUSize, CUGeom cuDataArray[CUGeom::MAX_GEOMS]) uint32_t 2103 source/common/cudata.cpp uint32_t num4x4Partition = (1U << ((g_log2Size[maxCUSize] - LOG2_UNIT_SIZE) << 1)); uint32_t 2106 source/common/cudata.cpp for (uint32_t log2CUSize = g_log2Size[maxCUSize], rangeCUIdx = 0; log2CUSize >= g_log2Size[minCUSize]; log2CUSize--) uint32_t 2108 source/common/cudata.cpp uint32_t blockSize = 1 << log2CUSize; uint32_t 2109 source/common/cudata.cpp uint32_t sbWidth = 1 << (g_log2Size[maxCUSize] - log2CUSize); uint32_t 2112 source/common/cudata.cpp for (uint32_t sbY = 0; sbY < sbWidth; sbY++) uint32_t 2114 source/common/cudata.cpp for (uint32_t sbX = 0; sbX < sbWidth; sbX++) uint32_t 2116 source/common/cudata.cpp uint32_t depthIdx = g_depthScanIdx[sbY][sbX]; uint32_t 2117 source/common/cudata.cpp uint32_t cuIdx = rangeCUIdx + depthIdx; uint32_t 2118 source/common/cudata.cpp uint32_t childIdx = rangeCUIdx + sbWidth * sbWidth + (depthIdx << 2); uint32_t 2119 source/common/cudata.cpp uint32_t px = sbX * blockSize; uint32_t 2120 source/common/cudata.cpp uint32_t py = sbY * blockSize; uint32_t 2125 source/common/cudata.cpp uint32_t xOffset = (sbX * blockSize) >> 3; uint32_t 2126 source/common/cudata.cpp uint32_t yOffset = (sbY * blockSize) >> 3; uint32_t 86 source/common/cudata.h uint32_t log2CUSize; // Log of the CU size. uint32_t 87 source/common/cudata.h uint32_t childOffset; // offset of the first child CU from current CU uint32_t 88 source/common/cudata.h uint32_t absPartIdx; // Part index of this CU in terms of 4x4 blocks. uint32_t 89 source/common/cudata.h uint32_t numPartitions; // Number of 4x4 blocks in the CU uint32_t 90 source/common/cudata.h uint32_t flags; // CU flags. uint32_t 91 source/common/cudata.h uint32_t depth; // depth of this CU relative from CTU uint32_t 92 source/common/cudata.h uint32_t geomRecurId; // Unique geom id from 0 to MAX_GEOMS - 1 for every depth uint32_t 108 source/common/cudata.h uint32_t cuAddr[2]; uint32_t 125 source/common/cudata.h const uint32_t nbPartsTable[8] = { 1, 2, 2, 4, 2, 2, 2, 2 }; uint32_t 132 source/common/cudata.h const uint32_t partTable[8][4][2] = uint32_t 147 source/common/cudata.h const uint32_t partAddrTable[8][4] = uint32_t 165 source/common/cudata.h uint32_t s_numPartInCUSize; uint32_t 177 source/common/cudata.h uint32_t m_cuAddr; // address of CTU within the picture in raster order uint32_t 178 source/common/cudata.h uint32_t m_absIdxInCTU; // address of CU within its CTU in Z scan order uint32_t 179 source/common/cudata.h uint32_t m_cuPelX; // CU position within the picture, in pixels (X) uint32_t 180 source/common/cudata.h uint32_t m_cuPelY; // CU position within the picture, in pixels (Y) uint32_t 181 source/common/cudata.h uint32_t m_numPartitions; // maximum number of 4x4 partitions within this CU uint32_t 183 source/common/cudata.h uint32_t m_chromaFormat; uint32_t 184 source/common/cudata.h uint32_t m_hChromaShift; uint32_t 185 source/common/cudata.h uint32_t m_vChromaShift; uint32_t 228 source/common/cudata.h void initialize(const CUDataMemPool& dataPool, uint32_t depth, const x265_param& param, int instance); uint32_t 229 source/common/cudata.h static void calcCTUGeoms(uint32_t ctuWidth, uint32_t ctuHeight, uint32_t maxCUSize, uint32_t minCUSize, CUGeom cuDataArray[CUGeom::MAX_GEOMS]); uint32_t 231 source/common/cudata.h void initCTU(const Frame& frame, uint32_t cuAddr, int qp, uint32_t firstRowInSlice, uint32_t lastRowInSlice, uint32_t lastCUInSlice); uint32_t 235 source/common/cudata.h void copyPartFrom(const CUData& cu, const CUGeom& childGeom, uint32_t subPartIdx); uint32_t 236 source/common/cudata.h void setEmptyPart(const CUGeom& childGeom, uint32_t subPartIdx); uint32_t 237 source/common/cudata.h void copyToPic(uint32_t depth) const; uint32_t 241 source/common/cudata.h void updatePic(uint32_t depth, int picCsp) const; uint32_t 248 source/common/cudata.h void setQPSubParts(int8_t qp, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth]((uint8_t*)m_qp + absPartIdx, (uint8_t)qp); } uint32_t 249 source/common/cudata.h void setTUDepthSubParts(uint8_t tuDepth, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth](m_tuDepth + absPartIdx, tuDepth); } uint32_t 250 source/common/cudata.h void setLumaIntraDirSubParts(uint8_t dir, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth](m_lumaIntraDir + absPartIdx, dir); } uint32_t 251 source/common/cudata.h void setChromIntraDirSubParts(uint8_t dir, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth](m_chromaIntraDir + absPartIdx, dir); } uint32_t 252 source/common/cudata.h void setCbfSubParts(uint8_t cbf, TextType ttype, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth](m_cbf[ttype] + absPartIdx, cbf); } uint32_t 253 source/common/cudata.h void setCbfPartRange(uint8_t cbf, TextType ttype, uint32_t absPartIdx, uint32_t coveredPartIdxes) { memset(m_cbf[ttype] + absPartIdx, cbf, coveredPartIdxes); } uint32_t 254 source/common/cudata.h void setTransformSkipSubParts(uint8_t tskip, TextType ttype, uint32_t absPartIdx, uint32_t depth) { s_partSet[depth](m_transformSkip[ttype] + absPartIdx, tskip); } uint32_t 255 source/common/cudata.h void setTransformSkipPartRange(uint8_t tskip, TextType ttype, uint32_t absPartIdx, uint32_t coveredPartIdxes) { memset(m_transformSkip[ttype] + absPartIdx, tskip, coveredPartIdxes); } uint32_t 257 source/common/cudata.h bool setQPSubCUs(int8_t qp, uint32_t absPartIdx, uint32_t depth); uint32_t 259 source/common/cudata.h void setPUInterDir(uint8_t dir, uint32_t absPartIdx, uint32_t puIdx); uint32_t 263 source/common/cudata.h uint8_t getCbf(uint32_t absPartIdx, TextType ttype, uint32_t tuDepth) const { return (m_cbf[ttype][absPartIdx] >> tuDepth) & 0x1; } uint32_t 264 source/common/cudata.h bool getQtRootCbf(uint32_t absPartIdx) const { return (m_cbf[0][absPartIdx] || ((m_chromaFormat != X265_CSP_I400) && (m_cbf[1][absPartIdx] || m_cbf[2][absPartIdx]))); } uint32_t 265 source/common/cudata.h int8_t getRefQP(uint32_t currAbsIdxInCTU) const; uint32_t 266 source/common/cudata.h uint32_t getInterMergeCandidates(uint32_t absPartIdx, uint32_t puIdx, MVField (*candMvField)[2], uint8_t* candDir) const; uint32_t 268 source/common/cudata.h int getPMV(InterNeighbourMV *neighbours, uint32_t reference_list, uint32_t refIdx, MV* amvpCand, MV* pmv) const; uint32_t 269 source/common/cudata.h void getNeighbourMV(uint32_t puIdx, uint32_t absPartIdx, InterNeighbourMV* neighbours) const; uint32_t 270 source/common/cudata.h void getIntraTUQtDepthRange(uint32_t tuDepthRange[2], uint32_t absPartIdx) const; uint32_t 271 source/common/cudata.h void getInterTUQtDepthRange(uint32_t tuDepthRange[2], uint32_t absPartIdx) const; uint32_t 272 source/common/cudata.h uint32_t getBestRefIdx(uint32_t subPartIdx) const { return ((m_interDir[subPartIdx] & 1) << m_refIdx[0][subPartIdx]) | uint32_t 274 source/common/cudata.h uint32_t getPUOffset(uint32_t puIdx, uint32_t absPartIdx) const { return (partAddrTable[(int)m_partSize[absPartIdx]][puIdx] << (m_slice->m_param->unitSizeDepth - m_cuDepth[absPartIdx]) * 2) >> 4; } uint32_t 276 source/common/cudata.h uint32_t getNumPartInter(uint32_t absPartIdx) const { return nbPartsTable[(int)m_partSize[absPartIdx]]; } uint32_t 277 source/common/cudata.h bool isIntra(uint32_t absPartIdx) const { return m_predMode[absPartIdx] == MODE_INTRA; } uint32_t 278 source/common/cudata.h bool isInter(uint32_t absPartIdx) const { return !!(m_predMode[absPartIdx] & MODE_INTER); } uint32_t 279 source/common/cudata.h bool isSkipped(uint32_t absPartIdx) const { return m_predMode[absPartIdx] == MODE_SKIP; } uint32_t 282 source/common/cudata.h void getPartIndexAndSize(uint32_t puIdx, uint32_t& absPartIdx, int& puWidth, int& puHeight) const; uint32_t 283 source/common/cudata.h void getMvField(const CUData* cu, uint32_t absPartIdx, int picList, MVField& mvField) const; uint32_t 285 source/common/cudata.h void getAllowedChromaDir(uint32_t absPartIdx, uint32_t* modeList) const; uint32_t 286 source/common/cudata.h int getIntraDirLumaPredictor(uint32_t absPartIdx, uint32_t* intraDirPred) const; uint32_t 288 source/common/cudata.h uint32_t getSCUAddr() const { return (m_cuAddr << m_slice->m_param->unitSizeDepth * 2) + m_absIdxInCTU; } uint32_t 289 source/common/cudata.h uint32_t getCtxSplitFlag(uint32_t absPartIdx, uint32_t depth) const; uint32_t 290 source/common/cudata.h uint32_t getCtxSkipFlag(uint32_t absPartIdx) const; uint32_t 291 source/common/cudata.h void getTUEntropyCodingParameters(TUEntropyCodingParameters &result, uint32_t absPartIdx, uint32_t log2TrSize, bool bIsLuma) const; uint32_t 293 source/common/cudata.h const CUData* getPULeft(uint32_t& lPartUnitIdx, uint32_t curPartUnitIdx) const; uint32_t 294 source/common/cudata.h const CUData* getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx) const; uint32_t 295 source/common/cudata.h const CUData* getPUAboveLeft(uint32_t& alPartUnitIdx, uint32_t curPartUnitIdx) const; uint32_t 296 source/common/cudata.h const CUData* getPUAboveRight(uint32_t& arPartUnitIdx, uint32_t curPartUnitIdx) const; uint32_t 297 source/common/cudata.h const CUData* getPUBelowLeft(uint32_t& blPartUnitIdx, uint32_t curPartUnitIdx) const; uint32_t 299 source/common/cudata.h const CUData* getQpMinCuLeft(uint32_t& lPartUnitIdx, uint32_t currAbsIdxInCTU) const; uint32_t 300 source/common/cudata.h const CUData* getQpMinCuAbove(uint32_t& aPartUnitIdx, uint32_t currAbsIdxInCTU) const; uint32_t 302 source/common/cudata.h const CUData* getPUAboveRightAdi(uint32_t& arPartUnitIdx, uint32_t curPartUnitIdx, uint32_t partUnitOffset) const; uint32_t 303 source/common/cudata.h const CUData* getPUBelowLeftAdi(uint32_t& blPartUnitIdx, uint32_t curPartUnitIdx, uint32_t partUnitOffset) const; uint32_t 310 source/common/cudata.h int8_t getLastCodedQP(uint32_t absPartIdx) const; uint32_t 313 source/common/cudata.h bool hasEqualMotion(uint32_t absPartIdx, const CUData& candCU, uint32_t candAbsPartIdx) const; uint32_t 319 source/common/cudata.h bool getDirectPMV(MV& pmv, InterNeighbourMV *neighbours, uint32_t picList, uint32_t refIdx) const; uint32_t 320 source/common/cudata.h bool getIndirectPMV(MV& outMV, InterNeighbourMV *neighbours, uint32_t reference_list, uint32_t refIdx) const; uint32_t 321 source/common/cudata.h void getInterNeighbourMV(InterNeighbourMV *neighbour, uint32_t partUnitIdx, MVP_DIR dir) const; uint32_t 328 source/common/cudata.h void deriveLeftRightTopIdx(uint32_t puIdx, uint32_t& partIdxLT, uint32_t& partIdxRT) const; uint32_t 330 source/common/cudata.h uint32_t deriveCenterIdx(uint32_t puIdx) const; uint32_t 331 source/common/cudata.h uint32_t deriveRightBottomIdx(uint32_t puIdx) const; uint32_t 332 source/common/cudata.h uint32_t deriveLeftBottomIdx(uint32_t puIdx) const; uint32_t 341 source/common/cudata.h uint32_t firstSignificanceMapContext; uint32_t 353 source/common/cudata.h bool create(uint32_t depth, uint32_t csp, uint32_t numInstances, const x265_param& param) uint32_t 355 source/common/cudata.h uint32_t numPartition = param.num4x4Partitions >> (depth * 2); uint32_t 356 source/common/cudata.h uint32_t cuSize = param.maxCUSize >> depth; uint32_t 357 source/common/cudata.h uint32_t sizeL = cuSize * cuSize; uint32_t 364 source/common/cudata.h uint32_t sizeC = sizeL >> (CHROMA_H_SHIFT(csp) + CHROMA_V_SHIFT(csp)); uint32_t 664 source/common/dct.cpp static uint32_t quant_c(const int16_t* coef, const int32_t* quantCoeff, int32_t* deltaU, int16_t* qCoef, int qBits, int add, int numCoeff) uint32_t 669 source/common/dct.cpp uint32_t numSig = 0; uint32_t 688 source/common/dct.cpp static uint32_t nquant_c(const int16_t* coef, const int32_t* quantCoeff, int16_t* qCoef, int qBits, int add, int numCoeff) uint32_t 691 source/common/dct.cpp X265_CHECK((uint32_t)add < ((uint32_t)1 << qBits), "2 ^ qBits less than add\n"); uint32_t 694 source/common/dct.cpp uint32_t numSig = 0; uint32_t 729 source/common/dct.cpp uint32_t copy_count(int16_t* coeff, const int16_t* residual, intptr_t resiStride) uint32_t 731 source/common/dct.cpp uint32_t numSig = 0; uint32_t 744 source/common/dct.cpp static void denoiseDct_c(int16_t* dctCoef, uint32_t* resSum, const uint16_t* offset, int numCoeff) uint32_t 766 source/common/dct.cpp const uint32_t cgIdx = (uint32_t)scanPosLast >> MLS_CG_SIZE; uint32_t 768 source/common/dct.cpp const uint32_t posLast = scan[scanPosLast++]; uint32_t 771 source/common/dct.cpp const uint32_t isNZCoeff = (curCoeff != 0); uint32_t 782 source/common/dct.cpp coeffSign[cgIdx] += (uint16_t)(((uint32_t)curCoeff >> 31) << coeffNum[cgIdx]); uint32_t 791 source/common/dct.cpp static uint32_t findPosFirstLast_c(const int16_t *dstCoeff, const intptr_t trSize, const uint16_t scanTbl[16]) uint32_t 797 source/common/dct.cpp const uint32_t idx = scanTbl[n]; uint32_t 798 source/common/dct.cpp const uint32_t idxY = idx / MLS_CG_SIZE; uint32_t 799 source/common/dct.cpp const uint32_t idxX = idx % MLS_CG_SIZE; uint32_t 806 source/common/dct.cpp uint32_t lastNZPosInCG = (uint32_t)n; uint32_t 810 source/common/dct.cpp const uint32_t idx = scanTbl[n]; uint32_t 811 source/common/dct.cpp const uint32_t idxY = idx / MLS_CG_SIZE; uint32_t 812 source/common/dct.cpp const uint32_t idxX = idx % MLS_CG_SIZE; uint32_t 817 source/common/dct.cpp uint32_t firstNZPosInCG = (uint32_t)n; uint32_t 819 source/common/dct.cpp uint32_t absSumSign = 0; uint32_t 822 source/common/dct.cpp const uint32_t idx = scanTbl[n]; uint32_t 823 source/common/dct.cpp const uint32_t idxY = idx / MLS_CG_SIZE; uint32_t 824 source/common/dct.cpp const uint32_t idxX = idx % MLS_CG_SIZE; uint32_t 833 source/common/dct.cpp static uint32_t costCoeffNxN_c(const uint16_t *scan, const coeff_t *coeff, intptr_t trSize, uint16_t *absCoeff, const uint8_t *tabSigCtx, uint32_t scanFlagMask, uint8_t *baseCtx, int offset, int scanPosSigOff, int subPosBase) uint32_t 836 source/common/dct.cpp uint32_t numNonZero = (scanPosSigOff < (SCAN_SET_SIZE - 1) ? 1 : 0); uint32_t 837 source/common/dct.cpp uint32_t sum = 0; uint32_t 852 source/common/dct.cpp uint32_t blkPos, sig, ctxSig; uint32_t 854 source/common/dct.cpp const uint32_t posZeroMask = (subPosBase + scanPosSigOff) ? ~0 : 0; uint32_t 857 source/common/dct.cpp X265_CHECK((uint32_t)(tmpCoeff[blkPos] != 0) == sig, "sign bit mistake\n"); uint32_t 860 source/common/dct.cpp const uint32_t cnt = tabSigCtx[blkPos] + offset; uint32_t 865 source/common/dct.cpp const uint32_t mstate = baseCtx[ctxSig]; uint32_t 866 source/common/dct.cpp const uint32_t mps = mstate & 1; uint32_t 867 source/common/dct.cpp const uint32_t stateBits = PFX(entropyStateBits)[mstate ^ sig]; uint32_t 868 source/common/dct.cpp uint32_t nextState = (stateBits >> 24) + mps; uint32_t 887 source/common/dct.cpp static uint32_t costCoeffRemain_c(uint16_t *absCoeff, int numNonZero, int idx) uint32_t 889 source/common/dct.cpp uint32_t goRiceParam = 0; uint32_t 891 source/common/dct.cpp uint32_t sum = 0; uint32_t 905 source/common/dct.cpp uint32_t length = 0; uint32_t 907 source/common/dct.cpp codeNumber = ((uint32_t)codeNumber >> goRiceParam) - COEF_REMAIN_BIN_REDUCTION; uint32_t 934 source/common/dct.cpp static uint32_t costC1C2Flag_c(uint16_t *absCoeff, intptr_t numC1Flag, uint8_t *baseCtxMod, intptr_t ctxOffset) uint32_t 936 source/common/dct.cpp uint32_t sum = 0; uint32_t 937 source/common/dct.cpp uint32_t c1 = 1; uint32_t 938 source/common/dct.cpp uint32_t firstC2Idx = 8; uint32_t 939 source/common/dct.cpp uint32_t firstC2Flag = 2; uint32_t 940 source/common/dct.cpp uint32_t c1Next = 0xFFFFFFFE; uint32_t 945 source/common/dct.cpp uint32_t symbol1 = absCoeff[idx] > 1; uint32_t 946 source/common/dct.cpp uint32_t symbol2 = absCoeff[idx] > 2; uint32_t 949 source/common/dct.cpp const uint32_t mstate = baseCtxMod[c1]; uint32_t 978 source/common/dct.cpp const uint32_t mstate = baseCtxMod[0]; uint32_t 46 source/common/deblock.cpp static inline uint8_t bsCuEdge(const CUData* cu, uint32_t absPartIdx, int32_t dir) uint32_t 52 source/common/deblock.cpp uint32_t tempPartIdx; uint32_t 61 source/common/deblock.cpp uint32_t tempPartIdx; uint32_t 74 source/common/deblock.cpp uint32_t absPartIdx = cuGeom.absPartIdx; uint32_t 75 source/common/deblock.cpp uint32_t depth = cuGeom.depth; uint32_t 81 source/common/deblock.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 90 source/common/deblock.cpp uint32_t numUnits = 1 << (cuGeom.log2CUSize - LOG2_UNIT_SIZE); uint32_t 95 source/common/deblock.cpp uint32_t numParts = cuGeom.numPartitions; uint32_t 96 source/common/deblock.cpp for (uint32_t partIdx = absPartIdx; partIdx < absPartIdx + numParts; partIdx++) uint32_t 98 source/common/deblock.cpp uint32_t bsCheck = !(partIdx & (1 << dir)); uint32_t 104 source/common/deblock.cpp const uint32_t partIdxIncr = DEBLOCK_SMALLEST_BLOCK >> LOG2_UNIT_SIZE; uint32_t 105 source/common/deblock.cpp uint32_t shiftFactor = (dir == EDGE_VER) ? cu->m_hChromaShift : cu->m_vChromaShift; uint32_t 106 source/common/deblock.cpp uint32_t chromaMask = ((DEBLOCK_SMALLEST_BLOCK << shiftFactor) >> LOG2_UNIT_SIZE) - 1; uint32_t 107 source/common/deblock.cpp uint32_t e0 = (dir == EDGE_VER ? g_zscanToPelX[absPartIdx] : g_zscanToPelY[absPartIdx]) >> LOG2_UNIT_SIZE; uint32_t 109 source/common/deblock.cpp for (uint32_t e = 0; e < numUnits; e += partIdxIncr) uint32_t 117 source/common/deblock.cpp static inline uint32_t calcBsIdx(uint32_t absPartIdx, int32_t dir, int32_t edgeIdx, int32_t baseUnitIdx) uint32_t 125 source/common/deblock.cpp void Deblock::setEdgefilterMultiple(uint32_t scanIdx, int32_t dir, int32_t edgeIdx, uint8_t value, uint8_t blockStrength[], uint32_t numUnits) uint32_t 128 source/common/deblock.cpp for (uint32_t i = 0; i < numUnits; i++) uint32_t 130 source/common/deblock.cpp const uint32_t bsidx = calcBsIdx(scanIdx, dir, edgeIdx, i); uint32_t 135 source/common/deblock.cpp void Deblock::setEdgefilterTU(const CUData* cu, uint32_t absPartIdx, uint32_t tuDepth, int32_t dir, uint8_t blockStrength[]) uint32_t 137 source/common/deblock.cpp uint32_t log2TrSize = cu->m_log2CUSize[absPartIdx] - tuDepth; uint32_t 140 source/common/deblock.cpp uint32_t qNumParts = 1 << (log2TrSize - LOG2_UNIT_SIZE - 1) * 2; uint32_t 141 source/common/deblock.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 146 source/common/deblock.cpp uint32_t numUnits = 1 << (log2TrSize - LOG2_UNIT_SIZE); uint32_t 150 source/common/deblock.cpp void Deblock::setEdgefilterPU(const CUData* cu, uint32_t absPartIdx, int32_t dir, uint8_t blockStrength[], uint32_t numUnits) uint32_t 152 source/common/deblock.cpp const uint32_t hNumUnits = numUnits >> 1; uint32_t 153 source/common/deblock.cpp const uint32_t qNumUnits = numUnits >> 2; uint32_t 191 source/common/deblock.cpp uint8_t Deblock::getBoundaryStrength(const CUData* cuQ, int32_t dir, uint32_t partQ, const uint8_t blockStrength[]) uint32_t 194 source/common/deblock.cpp uint32_t partP; uint32_t 320 source/common/deblock.cpp void Deblock::edgeFilterLuma(const CUData* cuQ, uint32_t absPartIdx, uint32_t depth, int32_t dir, int32_t edge, const uint8_t blockStrength[]) uint32_t 348 source/common/deblock.cpp uint32_t numUnits = cuQ->m_slice->m_sps->numPartInCUSize >> depth; uint32_t 349 source/common/deblock.cpp for (uint32_t idx = 0; idx < numUnits; idx++) uint32_t 351 source/common/deblock.cpp uint32_t partQ = calcBsIdx(absPartIdx, dir, edge, idx); uint32_t 352 source/common/deblock.cpp uint32_t bs = blockStrength[partQ]; uint32_t 358 source/common/deblock.cpp uint32_t partP; uint32_t 420 source/common/deblock.cpp void Deblock::edgeFilterChroma(const CUData* cuQ, uint32_t absPartIdx, uint32_t depth, int32_t dir, int32_t edge, const uint8_t blockStrength[]) uint32_t 459 source/common/deblock.cpp uint32_t numUnits = cuQ->m_slice->m_sps->numPartInCUSize >> (depth + chromaShift); uint32_t 460 source/common/deblock.cpp for (uint32_t idx = 0; idx < numUnits; idx++) uint32_t 462 source/common/deblock.cpp uint32_t partQ = calcBsIdx(absPartIdx, dir, edge, idx << chromaShift); uint32_t 463 source/common/deblock.cpp uint32_t bs = blockStrength[partQ]; uint32_t 469 source/common/deblock.cpp uint32_t partP; uint32_t 486 source/common/deblock.cpp for (uint32_t chromaIdx = 0; chromaIdx < 2; chromaIdx++) uint32_t 49 source/common/deblock.h static void setEdgefilterTU(const CUData* cu, uint32_t absPartIdx, uint32_t tuDepth, int32_t dir, uint8_t blockStrength[]); uint32_t 50 source/common/deblock.h static void setEdgefilterPU(const CUData* cu, uint32_t absPartIdx, int32_t dir, uint8_t blockStrength[], uint32_t numUnits); uint32_t 51 source/common/deblock.h static void setEdgefilterMultiple(uint32_t absPartIdx, int32_t dir, int32_t edgeIdx, uint8_t value, uint8_t blockStrength[], uint32_t numUnits); uint32_t 54 source/common/deblock.h static uint8_t getBoundaryStrength(const CUData* cuQ, int32_t dir, uint32_t partQ, const uint8_t blockStrength[]); uint32_t 57 source/common/deblock.h static void edgeFilterLuma(const CUData* cuQ, uint32_t absPartIdx, uint32_t depth, int32_t dir, int32_t edge, const uint8_t blockStrength[]); uint32_t 58 source/common/deblock.h static void edgeFilterChroma(const CUData* cuQ, uint32_t absPartIdx, uint32_t depth, int32_t dir, int32_t edge, const uint8_t blockStrength[]); uint32_t 66 source/common/frame.cpp uint32_t widthInCTU = (m_param->sourceWidth + param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 67 source/common/frame.cpp uint32_t heightInCTU = (m_param->sourceHeight + param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 68 source/common/frame.cpp uint32_t numCTUsInFrame = widthInCTU * heightInCTU; uint32_t 72 source/common/frame.cpp for (uint32_t i = 0; i < numCTUsInFrame; i++) uint32_t 74 source/common/frame.cpp CHECKED_MALLOC_ZERO(m_addOnDepth[i], uint8_t, uint32_t(param->num4x4Partitions)); uint32_t 75 source/common/frame.cpp CHECKED_MALLOC_ZERO(m_addOnCtuInfo[i], uint8_t, uint32_t(param->num4x4Partitions)); uint32_t 76 source/common/frame.cpp CHECKED_MALLOC_ZERO(m_addOnPrevChange[i], int, uint32_t(param->num4x4Partitions)); uint32_t 191 source/common/frame.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 192 source/common/frame.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 193 source/common/frame.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 194 source/common/frame.cpp for (uint32_t i = 0; i < numCUsInFrame; i++) uint32_t 106 source/common/frame.h volatile uint32_t m_countRefEncoders; // count of FrameEncoder threads monitoring m_reconRowCount uint32_t 45 source/common/framedata.cpp for (uint32_t ctuAddr = 0; ctuAddr < sps.numCUsInFrame; ctuAddr++) uint32_t 127 source/common/framedata.h uint32_t totalBits; /* total bits to encode this CTU */ uint32_t 128 source/common/framedata.h uint32_t vbvCost; /* sum of lowres costs for 16x16 sub-blocks */ uint32_t 129 source/common/framedata.h uint32_t intraVbvCost; /* sum of lowres intra costs for 16x16 sub-blocks */ uint32_t 131 source/common/framedata.h uint32_t count[4]; /* count and avgCost only used by Analysis at RD0..4 */ uint32_t 137 source/common/framedata.h uint32_t numEncodedCUs; /* ctuAddr of last encoded CTU in row */ uint32_t 138 source/common/framedata.h uint32_t encodedBits; /* sum of 'totalBits' of encoded CTUs */ uint32_t 139 source/common/framedata.h uint32_t satdForVbv; /* sum of lowres (estimated) costs for entire row */ uint32_t 140 source/common/framedata.h uint32_t intraSatdForVbv; /* sum of lowres (estimated) intra costs for entire row */ uint32_t 141 source/common/framedata.h uint32_t rowSatd; uint32_t 142 source/common/framedata.h uint32_t rowIntraSatd; uint32_t 155 source/common/framedata.h uint32_t pirStartCol; uint32_t 156 source/common/framedata.h uint32_t pirEndCol; uint32_t 166 source/common/framedata.h uint32_t* m_meIntegral[INTEGRAL_PLANE_NUM]; // 12 integral planes for 32x32, 32x24, 32x8, 24x32, 16x16, 16x12, 16x4, 12x16, 8x32, 8x8, 4x16 and 4x4. uint32_t 167 source/common/framedata.h uint32_t* m_meBuffer[INTEGRAL_PLANE_NUM]; uint32_t 174 source/common/framedata.h inline CUData* getPicCTU(uint32_t ctuAddr) { return &m_picCTU[ctuAddr]; } uint32_t 212 source/common/framedata.h uint32_t highDistortionCtuCount; uint32_t 213 source/common/framedata.h uint32_t lowDistortionCtuCount; uint32_t 36 source/common/loopfilter.cpp return (x >> 31) | ((int)((((uint32_t)-x)) >> 31)); uint32_t 30 source/common/lowres.cpp bool Lowres::create(PicYuv *origPic, int _bframes, bool bAQEnabled, uint32_t qgSize) uint32_t 62 source/common/lowres.cpp CHECKED_MALLOC_ZERO(blockVariance, uint32_t, cuCountFullRes); uint32_t 56 source/common/lowres.h pixel* getLumaAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return fpelPlane[0] + reconPic->m_cuOffsetY[ctuAddr] + reconPic->m_buOffsetY[absPartIdx]; } uint32_t 57 source/common/lowres.h pixel* getCbAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return fpelPlane[1] + reconPic->m_cuOffsetC[ctuAddr] + reconPic->m_buOffsetC[absPartIdx]; } uint32_t 58 source/common/lowres.h pixel* getCrAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return fpelPlane[2] + reconPic->m_cuOffsetC[ctuAddr] + reconPic->m_buOffsetC[absPartIdx]; } uint32_t 135 source/common/lowres.h uint32_t maxBlocksInRow; uint32_t 136 source/common/lowres.h uint32_t maxBlocksInCol; uint32_t 137 source/common/lowres.h uint32_t maxBlocksInRowFullRes; uint32_t 138 source/common/lowres.h uint32_t maxBlocksInColFullRes; uint32_t 152 source/common/lowres.h uint32_t* blockVariance; uint32_t 162 source/common/lowres.h bool create(PicYuv *origPic, int _bframes, bool bAqEnabled, uint32_t qgSize); uint32_t 37 source/common/md5.cpp uint32_t tmp; uint32_t 43 source/common/md5.cpp *(uint32_t*)buf = tmp; uint32_t 50 source/common/md5.cpp void MD5Transform(uint32_t *buf, uint32_t *in); uint32_t 71 source/common/md5.cpp void MD5Update(MD5Context *ctx, uint8_t *buf, uint32_t len) uint32_t 73 source/common/md5.cpp uint32_t t; uint32_t 78 source/common/md5.cpp if ((ctx->bits[0] = t + ((uint32_t)len << 3)) < t) uint32_t 98 source/common/md5.cpp MD5Transform(ctx->buf, (uint32_t*)ctx->in); uint32_t 108 source/common/md5.cpp MD5Transform(ctx->buf, (uint32_t*)ctx->in); uint32_t 124 source/common/md5.cpp uint32_t count; uint32_t 144 source/common/md5.cpp MD5Transform(ctx->buf, (uint32_t*)ctx->in); uint32_t 158 source/common/md5.cpp uint32_t *table = (uint32_t*)&ctx->in; uint32_t 162 source/common/md5.cpp MD5Transform(ctx->buf, (uint32_t*)ctx->in); uint32_t 186 source/common/md5.cpp void MD5Transform(uint32_t *buf, uint32_t *in) uint32_t 188 source/common/md5.cpp register uint32_t a, b, c, d; uint32_t 35 source/common/md5.h uint32_t buf[4]; uint32_t 36 source/common/md5.h uint32_t bits[2]; uint32_t 41 source/common/md5.h void MD5Update(MD5Context *context, unsigned char *buf, uint32_t len); uint32_t 51 source/common/mv.h MV& operator =(uint32_t w) { word = w; return *this; } uint32_t 650 source/common/param.cpp OPT("ctu") p->maxCUSize = (uint32_t)atoi(value); uint32_t 651 source/common/param.cpp OPT("min-cu-size") p->minCUSize = (uint32_t)atoi(value); uint32_t 652 source/common/param.cpp OPT("tu-intra-depth") p->tuQTMaxIntraDepth = (uint32_t)atoi(value); uint32_t 653 source/common/param.cpp OPT("tu-inter-depth") p->tuQTMaxInterDepth = (uint32_t)atoi(value); uint32_t 654 source/common/param.cpp OPT("max-tu-size") p->maxTUSize = (uint32_t)atoi(value); uint32_t 659 source/common/param.cpp OPT("max-merge") p->maxNumMergeCand = (uint32_t)atoi(value); uint32_t 1130 source/common/param.cpp uint32_t maxLog2CUSize = (uint32_t)g_log2Size[param->maxCUSize]; uint32_t 1131 source/common/param.cpp uint32_t tuQTMaxLog2Size = X265_MIN(maxLog2CUSize, 5); uint32_t 1132 source/common/param.cpp uint32_t tuQTMinLog2Size = 2; //log2(4) uint32_t 75 source/common/picyuv.cpp uint32_t picWidth = m_param->sourceWidth; uint32_t 76 source/common/picyuv.cpp uint32_t picHeight = m_param->sourceHeight; uint32_t 77 source/common/picyuv.cpp uint32_t picCsp = m_param->internalCsp; uint32_t 84 source/common/picyuv.cpp uint32_t numCuInWidth = (m_picWidth + param->maxCUSize - 1) / param->maxCUSize; uint32_t 85 source/common/picyuv.cpp uint32_t numCuInHeight = (m_picHeight + param->maxCUSize - 1) / param->maxCUSize; uint32_t 123 source/common/picyuv.cpp int PicYuv::getLumaBufLen(uint32_t picWidth, uint32_t picHeight, uint32_t picCsp) uint32_t 131 source/common/picyuv.cpp uint32_t numCuInWidth = (m_picWidth + m_param->maxCUSize - 1) / m_param->maxCUSize; uint32_t 132 source/common/picyuv.cpp uint32_t numCuInHeight = (m_picHeight + m_param->maxCUSize - 1) / m_param->maxCUSize; uint32_t 149 source/common/picyuv.cpp uint32_t numPartitions = 1 << (m_param->unitSizeDepth * 2); uint32_t 155 source/common/picyuv.cpp for (uint32_t cuRow = 0; cuRow < sps.numCuInHeight; cuRow++) uint32_t 157 source/common/picyuv.cpp for (uint32_t cuCol = 0; cuCol < sps.numCuInWidth; cuCol++) uint32_t 166 source/common/picyuv.cpp for (uint32_t idx = 0; idx < numPartitions; ++idx) uint32_t 177 source/common/picyuv.cpp for (uint32_t cuRow = 0; cuRow < sps.numCuInHeight; cuRow++) uint32_t 178 source/common/picyuv.cpp for (uint32_t cuCol = 0; cuCol < sps.numCuInWidth; cuCol++) uint32_t 182 source/common/picyuv.cpp for (uint32_t idx = 0; idx < numPartitions; ++idx) uint32_t 438 source/common/picyuv.cpp template<uint32_t OUTPUT_BITDEPTH_DIV8> uint32_t 439 source/common/picyuv.cpp static void md5_block(MD5Context& md5, const pixel* plane, uint32_t n) uint32_t 444 source/common/picyuv.cpp for (uint32_t i = 0; i < n; i++) uint32_t 448 source/common/picyuv.cpp for (uint32_t d = 0; d < OUTPUT_BITDEPTH_DIV8; d++) uint32_t 457 source/common/picyuv.cpp template<uint32_t OUTPUT_BITDEPTH_DIV8> uint32_t 458 source/common/picyuv.cpp static void md5_plane(MD5Context& md5, const pixel* plane, uint32_t width, uint32_t height, intptr_t stride) uint32_t 462 source/common/picyuv.cpp uint32_t N = 32; uint32_t 463 source/common/picyuv.cpp uint32_t width_modN = width % N; uint32_t 464 source/common/picyuv.cpp uint32_t width_less_modN = width - width_modN; uint32_t 466 source/common/picyuv.cpp for (uint32_t y = 0; y < height; y++) uint32_t 470 source/common/picyuv.cpp for (uint32_t x = 0; x < width_less_modN; x += N) uint32_t 478 source/common/picyuv.cpp void updateCRC(const pixel* plane, uint32_t& crcVal, uint32_t height, uint32_t width, intptr_t stride) uint32_t 480 source/common/picyuv.cpp uint32_t crcMsb; uint32_t 481 source/common/picyuv.cpp uint32_t bitVal; uint32_t 482 source/common/picyuv.cpp uint32_t bitIdx; uint32_t 484 source/common/picyuv.cpp for (uint32_t y = 0; y < height; y++) uint32_t 486 source/common/picyuv.cpp for (uint32_t x = 0; x < width; x++) uint32_t 513 source/common/picyuv.cpp void crcFinish(uint32_t& crcVal, uint8_t digest[16]) uint32_t 515 source/common/picyuv.cpp uint32_t crcMsb; uint32_t 527 source/common/picyuv.cpp void updateChecksum(const pixel* plane, uint32_t& checksumVal, uint32_t height, uint32_t width, intptr_t stride, int row, uint32_t cuHeight) uint32_t 531 source/common/picyuv.cpp for (uint32_t y = row * cuHeight; y < ((row * cuHeight) + height); y++) uint32_t 533 source/common/picyuv.cpp for (uint32_t x = 0; x < width; x++) uint32_t 544 source/common/picyuv.cpp void checksumFinish(uint32_t checksum, uint8_t digest[16]) uint32_t 552 source/common/picyuv.cpp void updateMD5Plane(MD5Context& md5, const pixel* plane, uint32_t width, uint32_t height, intptr_t stride) uint32_t 555 source/common/picyuv.cpp typedef void(*MD5PlaneFunc)(MD5Context&, const pixel*, uint32_t, uint32_t, intptr_t); uint32_t 44 source/common/picyuv.h uint32_t m_picWidth; uint32_t 45 source/common/picyuv.h uint32_t m_picHeight; uint32_t 49 source/common/picyuv.h uint32_t m_picCsp; uint32_t 50 source/common/picyuv.h uint32_t m_hChromaShift; uint32_t 51 source/common/picyuv.h uint32_t m_vChromaShift; uint32_t 58 source/common/picyuv.h uint32_t m_lumaMarginX; uint32_t 59 source/common/picyuv.h uint32_t m_lumaMarginY; uint32_t 60 source/common/picyuv.h uint32_t m_chromaMarginX; uint32_t 61 source/common/picyuv.h uint32_t m_chromaMarginY; uint32_t 81 source/common/picyuv.h int getLumaBufLen(uint32_t picWidth, uint32_t picHeight, uint32_t picCsp); uint32_t 85 source/common/picyuv.h intptr_t getChromaAddrOffset(uint32_t ctuAddr, uint32_t absPartIdx) const { return m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 88 source/common/picyuv.h pixel* getLumaAddr(uint32_t ctuAddr) { return m_picOrg[0] + m_cuOffsetY[ctuAddr]; } uint32_t 89 source/common/picyuv.h pixel* getCbAddr(uint32_t ctuAddr) { return m_picOrg[1] + m_cuOffsetC[ctuAddr]; } uint32_t 90 source/common/picyuv.h pixel* getCrAddr(uint32_t ctuAddr) { return m_picOrg[2] + m_cuOffsetC[ctuAddr]; } uint32_t 91 source/common/picyuv.h pixel* getChromaAddr(uint32_t chromaId, uint32_t ctuAddr) { return m_picOrg[chromaId] + m_cuOffsetC[ctuAddr]; } uint32_t 92 source/common/picyuv.h pixel* getPlaneAddr(uint32_t plane, uint32_t ctuAddr) { return m_picOrg[plane] + (plane ? m_cuOffsetC[ctuAddr] : m_cuOffsetY[ctuAddr]); } uint32_t 93 source/common/picyuv.h const pixel* getLumaAddr(uint32_t ctuAddr) const { return m_picOrg[0] + m_cuOffsetY[ctuAddr]; } uint32_t 94 source/common/picyuv.h const pixel* getCbAddr(uint32_t ctuAddr) const { return m_picOrg[1] + m_cuOffsetC[ctuAddr]; } uint32_t 95 source/common/picyuv.h const pixel* getCrAddr(uint32_t ctuAddr) const { return m_picOrg[2] + m_cuOffsetC[ctuAddr]; } uint32_t 96 source/common/picyuv.h const pixel* getChromaAddr(uint32_t chromaId, uint32_t ctuAddr) const { return m_picOrg[chromaId] + m_cuOffsetC[ctuAddr]; } uint32_t 97 source/common/picyuv.h const pixel* getPlaneAddr(uint32_t plane, uint32_t ctuAddr) const { return m_picOrg[plane] + (plane ? m_cuOffsetC[ctuAddr] : m_cuOffsetY[ctuAddr]); } uint32_t 100 source/common/picyuv.h pixel* getLumaAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return m_picOrg[0] + m_cuOffsetY[ctuAddr] + m_buOffsetY[absPartIdx]; } uint32_t 101 source/common/picyuv.h pixel* getCbAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return m_picOrg[1] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 102 source/common/picyuv.h pixel* getCrAddr(uint32_t ctuAddr, uint32_t absPartIdx) { return m_picOrg[2] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 103 source/common/picyuv.h pixel* getChromaAddr(uint32_t chromaId, uint32_t ctuAddr, uint32_t absPartIdx) { return m_picOrg[chromaId] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 104 source/common/picyuv.h const pixel* getLumaAddr(uint32_t ctuAddr, uint32_t absPartIdx) const { return m_picOrg[0] + m_cuOffsetY[ctuAddr] + m_buOffsetY[absPartIdx]; } uint32_t 105 source/common/picyuv.h const pixel* getCbAddr(uint32_t ctuAddr, uint32_t absPartIdx) const { return m_picOrg[1] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 106 source/common/picyuv.h const pixel* getCrAddr(uint32_t ctuAddr, uint32_t absPartIdx) const { return m_picOrg[2] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 107 source/common/picyuv.h const pixel* getChromaAddr(uint32_t chromaId, uint32_t ctuAddr, uint32_t absPartIdx) const { return m_picOrg[chromaId] + m_cuOffsetC[ctuAddr] + m_buOffsetC[absPartIdx]; } uint32_t 110 source/common/picyuv.h void updateChecksum(const pixel* plane, uint32_t& checksumVal, uint32_t height, uint32_t width, intptr_t stride, int row, uint32_t cuHeight); uint32_t 111 source/common/picyuv.h void updateCRC(const pixel* plane, uint32_t& crcVal, uint32_t height, uint32_t width, intptr_t stride); uint32_t 112 source/common/picyuv.h void crcFinish(uint32_t & crc, uint8_t digest[16]); uint32_t 113 source/common/picyuv.h void checksumFinish(uint32_t checksum, uint8_t digest[16]); uint32_t 114 source/common/picyuv.h void updateMD5Plane(MD5Context& md5, const pixel* plane, uint32_t width, uint32_t height, intptr_t stride); uint32_t 121 source/common/pixel.cpp int ads_x4(int encDC[4], uint32_t *sums, int delta, uint16_t *costMvX, int16_t *mvs, int width, int thresh) uint32_t 138 source/common/pixel.cpp int ads_x2(int encDC[2], uint32_t *sums, int delta, uint16_t *costMvX, int16_t *mvs, int width, int thresh) uint32_t 153 source/common/pixel.cpp int ads_x1(int encDC[1], uint32_t *sums, int, uint16_t *costMvX, int16_t *mvs, int width, int thresh) uint32_t 578 source/common/pixel.cpp uint32_t x, y; uint32_t 626 source/common/pixel.cpp uint32_t s1 = 0, s2 = 0, ss = 0, s12 = 0; uint32_t 697 source/common/pixel.cpp uint32_t sum = 0, sqr = 0; uint32_t 725 source/common/pixel.cpp uint32_t totEnergy = 0; uint32_t 33 source/common/ppc/dct_altivec.cpp static uint32_t quant_altivec(const int16_t* coef, const int32_t* quantCoeff, int32_t* deltaU, int16_t* qCoef, int qBits, int add, int numCoeff) uint32_t 41 source/common/ppc/dct_altivec.cpp uint32_t numSig = 0; uint32_t 283 source/common/ppc/dct_altivec.cpp inline void denoiseDct_unroll8_altivec(int16_t* dctCoef, uint32_t* resSum, const uint16_t* offset, int numCoeff, int index_offset) uint32_t 360 source/common/ppc/dct_altivec.cpp void denoiseDct_altivec(int16_t* dctCoef, uint32_t* resSum, const uint16_t* offset, int numCoeff) uint32_t 76 source/common/ppc/pixel_altivec.cpp typedef uint32_t sum2_t ; uint32_t 369 source/common/predict.cpp uint32_t cxWidth = pu.width >> m_hChromaShift; uint32_t 410 source/common/predict.cpp uint32_t src0Stride, src1Stride, dststride; uint32_t 473 source/common/predict.cpp uint32_t cwidth = pu.width >> srcYuv0.m_hChromaShift; uint32_t 474 source/common/predict.cpp uint32_t cheight = pu.height >> srcYuv0.m_vChromaShift; uint32_t 522 source/common/predict.cpp uint32_t srcStride, dstStride; uint32_t 558 source/common/predict.cpp uint32_t cwidth = pu.width >> srcYuv.m_hChromaShift; uint32_t 559 source/common/predict.cpp uint32_t cheight = pu.height >> srcYuv.m_vChromaShift; uint32_t 573 source/common/predict.cpp void Predict::predIntraLumaAng(uint32_t dirMode, pixel* dst, intptr_t stride, uint32_t log2TrSize) uint32_t 584 source/common/predict.cpp void Predict::predIntraChromaAng(uint32_t dirMode, pixel* dst, intptr_t stride, uint32_t log2TrSizeC) uint32_t 594 source/common/predict.cpp void Predict::initAdiPattern(const CUData& cu, const CUGeom& cuGeom, uint32_t puAbsPartIdx, const IntraNeighbors& intraNeighbors, int dirMode) uint32_t 646 source/common/predict.cpp void Predict::initAdiPatternChroma(const CUData& cu, const CUGeom& cuGeom, uint32_t puAbsPartIdx, const IntraNeighbors& intraNeighbors, uint32_t chromaId) uint32_t 658 source/common/predict.cpp void Predict::initIntraNeighbors(const CUData& cu, uint32_t absPartIdx, uint32_t tuDepth, bool isLuma, IntraNeighbors *intraNeighbors) uint32_t 660 source/common/predict.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 674 source/common/predict.cpp uint32_t tuSize = 1 << log2TrSize; uint32_t 679 source/common/predict.cpp uint32_t partIdxLT = cu.m_absIdxInCTU + absPartIdx; uint32_t 680 source/common/predict.cpp uint32_t partIdxRT = g_rasterToZscan[g_zscanToRaster[partIdxLT] + tuWidthInUnits - 1]; uint32_t 681 source/common/predict.cpp uint32_t partIdxLB = g_rasterToZscan[g_zscanToRaster[partIdxLT] + ((tuHeightInUnits - 1) << LOG2_RASTER_SIZE)]; uint32_t 716 source/common/predict.cpp uint32_t tuSize = 1 << intraNeighbors.log2TrSize; uint32_t 717 source/common/predict.cpp uint32_t refSize = tuSize * 2 + 1; uint32_t 723 source/common/predict.cpp for (uint32_t i = 0; i < refSize; i++) uint32_t 727 source/common/predict.cpp for (uint32_t i = 0; i < refSize - 1; i++) uint32_t 738 source/common/predict.cpp for (uint32_t i = 0; i < refSize - 1; i++) uint32_t 873 source/common/predict.cpp bool Predict::isAboveLeftAvailable(const CUData& cu, uint32_t partIdxLT) uint32_t 875 source/common/predict.cpp uint32_t partAboveLeft; uint32_t 882 source/common/predict.cpp int Predict::isAboveAvailable(const CUData& cu, uint32_t partIdxLT, uint32_t partIdxRT, bool* bValidFlags) uint32_t 884 source/common/predict.cpp const uint32_t rasterPartBegin = g_zscanToRaster[partIdxLT]; uint32_t 885 source/common/predict.cpp const uint32_t rasterPartEnd = g_zscanToRaster[partIdxRT]; uint32_t 886 source/common/predict.cpp const uint32_t idxStep = 1; uint32_t 889 source/common/predict.cpp for (uint32_t rasterPart = rasterPartBegin; rasterPart <= rasterPartEnd; rasterPart += idxStep, bValidFlags++) uint32_t 891 source/common/predict.cpp uint32_t partAbove; uint32_t 906 source/common/predict.cpp int Predict::isLeftAvailable(const CUData& cu, uint32_t partIdxLT, uint32_t partIdxLB, bool* bValidFlags) uint32_t 908 source/common/predict.cpp const uint32_t rasterPartBegin = g_zscanToRaster[partIdxLT]; uint32_t 909 source/common/predict.cpp const uint32_t rasterPartEnd = g_zscanToRaster[partIdxLB]; uint32_t 910 source/common/predict.cpp const uint32_t idxStep = RASTER_SIZE; uint32_t 913 source/common/predict.cpp for (uint32_t rasterPart = rasterPartBegin; rasterPart <= rasterPartEnd; rasterPart += idxStep, bValidFlags--) // opposite direction uint32_t 915 source/common/predict.cpp uint32_t partLeft; uint32_t 930 source/common/predict.cpp int Predict::isAboveRightAvailable(const CUData& cu, uint32_t partIdxRT, bool* bValidFlags, uint32_t numUnits) uint32_t 934 source/common/predict.cpp for (uint32_t offset = 1; offset <= numUnits; offset++, bValidFlags++) uint32_t 936 source/common/predict.cpp uint32_t partAboveRight; uint32_t 951 source/common/predict.cpp int Predict::isBelowLeftAvailable(const CUData& cu, uint32_t partIdxLB, bool* bValidFlags, uint32_t numUnits) uint32_t 955 source/common/predict.cpp for (uint32_t offset = 1; offset <= numUnits; offset++, bValidFlags--) // opposite direction uint32_t 957 source/common/predict.cpp uint32_t partBelowLeft; uint32_t 42 source/common/predict.h uint32_t ctuAddr; // raster index of current CTU within its picture uint32_t 43 source/common/predict.h uint32_t cuAbsPartIdx; // z-order offset of current CU within its CTU uint32_t 44 source/common/predict.h uint32_t puAbsPartIdx; // z-order offset of current PU with its CU uint32_t 103 source/common/predict.h void predIntraLumaAng(uint32_t dirMode, pixel* pred, intptr_t stride, uint32_t log2TrSize); uint32_t 104 source/common/predict.h void predIntraChromaAng(uint32_t dirMode, pixel* pred, intptr_t stride, uint32_t log2TrSizeC); uint32_t 105 source/common/predict.h void initAdiPattern(const CUData& cu, const CUGeom& cuGeom, uint32_t puAbsPartIdx, const IntraNeighbors& intraNeighbors, int dirMode); uint32_t 106 source/common/predict.h void initAdiPatternChroma(const CUData& cu, const CUGeom& cuGeom, uint32_t puAbsPartIdx, const IntraNeighbors& intraNeighbors, uint32_t chromaId); uint32_t 109 source/common/predict.h static void initIntraNeighbors(const CUData& cu, uint32_t absPartIdx, uint32_t tuDepth, bool isLuma, IntraNeighbors *IntraNeighbors); uint32_t 112 source/common/predict.h static bool isAboveLeftAvailable(const CUData& cu, uint32_t partIdxLT); uint32_t 114 source/common/predict.h static int isAboveAvailable(const CUData& cu, uint32_t partIdxLT, uint32_t partIdxRT, bool* bValidFlags); uint32_t 116 source/common/predict.h static int isLeftAvailable(const CUData& cu, uint32_t partIdxLT, uint32_t partIdxLB, bool* bValidFlags); uint32_t 118 source/common/predict.h static int isAboveRightAvailable(const CUData& cu, uint32_t partIdxRT, bool* bValidFlags, uint32_t numUnits); uint32_t 120 source/common/predict.h static int isBelowLeftAvailable(const CUData& cu, uint32_t partIdxLB, bool* bValidFlags, uint32_t numUnits); uint32_t 272 source/common/primitives.cpp void PFX(cpu_cpuid)(uint32_t, uint32_t *eax, uint32_t *, uint32_t *, uint32_t *) { *eax = 0; } uint32_t 273 source/common/primitives.cpp void PFX(cpu_xgetbv)(uint32_t, uint32_t *, uint32_t *) {} uint32_t 129 source/common/primitives.h typedef int(*pixelcmp_ads_t)(int encDC[], uint32_t *sums, int delta, uint16_t *costMvX, int16_t *mvs, int width, int thresh); uint32_t 142 source/common/primitives.h typedef uint32_t (*copy_cnt_t)(int16_t* coeff, const int16_t* residual, intptr_t resiStride); uint32_t 146 source/common/primitives.h typedef void (*denoiseDct_t)(int16_t* dctCoef, uint32_t* resSum, const uint16_t* offset, int numCoeff); uint32_t 150 source/common/primitives.h typedef uint32_t (*quant_t)(const int16_t* coef, const int32_t* quantCoeff, int32_t* deltaU, int16_t* qCoef, int qBits, int add, int numCoeff); uint32_t 151 source/common/primitives.h typedef uint32_t (*nquant_t)(const int16_t* coef, const int32_t* quantCoeff, int16_t* qCoef, int qBits, int add, int numCoeff); uint32_t 208 source/common/primitives.h typedef uint32_t (*findPosFirstLast_t)(const int16_t *dstCoeff, const intptr_t trSize, const uint16_t scanTbl[16]); uint32_t 210 source/common/primitives.h typedef uint32_t (*costCoeffNxN_t)(const uint16_t *scan, const coeff_t *coeff, intptr_t trSize, uint16_t *absCoeff, const uint8_t *tabSigCtx, uint32_t scanFlagMask, uint8_t *baseCtx, int offset, int scanPosSigOff, int subPosBase); uint32_t 211 source/common/primitives.h typedef uint32_t (*costCoeffRemain_t)(uint16_t *absCoeff, int numNonZero, int idx); uint32_t 212 source/common/primitives.h typedef uint32_t (*costC1C2Flag_t)(uint16_t *absCoeff, intptr_t numC1Flag, uint8_t *baseCtxMod, intptr_t ctxOffset); uint32_t 217 source/common/primitives.h typedef void (*integralv_t)(uint32_t *sum, intptr_t stride); uint32_t 218 source/common/primitives.h typedef void (*integralh_t)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 54 source/common/quant.cpp inline int getICRate(uint32_t absLevel, int32_t diffLevel, const int* greaterOneBits, const int* levelAbsBits, const uint32_t absGoRice, const uint32_t maxVlc, const uint32_t c1c2Rate) uint32_t 74 source/common/quant.cpp uint32_t symbol = diffLevel; uint32_t 93 source/common/quant.cpp uint32_t prefLen = (symbol >> absGoRice) + 1; uint32_t 94 source/common/quant.cpp uint32_t numBins = fastMin(prefLen + absGoRice, 8 /* g_goRicePrefixLen[absGoRice] + absGoRice */); uint32_t 103 source/common/quant.cpp inline int getICRateNegDiff(uint32_t absLevel, const int* greaterOneBits, const int* levelAbsBits) uint32_t 118 source/common/quant.cpp inline int getICRateLessVlc(uint32_t absLevel, int32_t diffLevel, const uint32_t absGoRice) uint32_t 128 source/common/quant.cpp uint32_t symbol = diffLevel; uint32_t 129 source/common/quant.cpp uint32_t prefLen = (symbol >> absGoRice) + 1; uint32_t 130 source/common/quant.cpp uint32_t numBins = fastMin(prefLen + absGoRice, 8 /* g_goRicePrefixLen[absGoRice] + absGoRice */); uint32_t 138 source/common/quant.cpp inline uint32_t getICRateCost(uint32_t absLevel, int32_t diffLevel, const int* greaterOneBits, const int* levelAbsBits, uint32_t absGoRice, const uint32_t c1c2Rate) uint32_t 146 source/common/quant.cpp uint32_t rate = greaterOneBits[(absLevel == 2)]; uint32_t 153 source/common/quant.cpp uint32_t rate; uint32_t 154 source/common/quant.cpp uint32_t symbol = diffLevel; uint32_t 157 source/common/quant.cpp uint32_t length = symbol >> absGoRice; uint32_t 162 source/common/quant.cpp uint32_t length = 0; uint32_t 247 source/common/quant.cpp uint32_t Quant::signBitHidingHDQ(int16_t* coeff, int32_t* deltaU, uint32_t numSig, const TUEntropyCodingParameters &codeParams, uint32_t log2TrSize) uint32_t 249 source/common/quant.cpp uint32_t trSize = 1 << log2TrSize; uint32_t 267 source/common/quant.cpp const uint32_t correctOffset = 0x0F & (lastScanPos ^ 0xF); uint32_t 307 source/common/quant.cpp uint32_t signbit = coeff[scan[cgStartPos + firstNZPosInCG]] > 0 ? 0 : 1; uint32_t 308 source/common/quant.cpp uint32_t absSum = 0; uint32_t 317 source/common/quant.cpp uint32_t cgFlags = coeffFlag[cg]; uint32_t 323 source/common/quant.cpp uint32_t blkPos = scan[n + cgStartPos]; uint32_t 352 source/common/quant.cpp uint32_t thisSignBit = m_resiDctCoeff[blkPos] >= 0 ? 0 : 1; uint32_t 397 source/common/quant.cpp uint32_t Quant::transformNxN(const CUData& cu, const pixel* fenc, uint32_t fencStride, const int16_t* residual, uint32_t resiStride, uint32_t 398 source/common/quant.cpp coeff_t* coeff, uint32_t log2TrSize, TextType ttype, uint32_t absPartIdx, bool useTransformSkip) uint32_t 400 source/common/quant.cpp const uint32_t sizeIdx = log2TrSize - 2; uint32_t 469 source/common/quant.cpp uint32_t numSig = primitives.quant(m_resiDctCoeff, quantCoeff, deltaU, coeff, qbits, add, numCoeff); uint32_t 482 source/common/quant.cpp uint64_t Quant::ssimDistortion(const CUData& cu, const pixel* fenc, uint32_t fStride, const pixel* recon, intptr_t rstride, uint32_t log2TrSize, TextType ttype, uint32_t absPartIdx) uint32_t 525 source/common/quant.cpp uint32_t temp = fenc[block_yy * fStride + block_xx] >> shift; uint32_t 543 source/common/quant.cpp uint32_t temp = fenc[block_yy * fStride + block_xx] >> shift; uint32_t 559 source/common/quant.cpp void Quant::invtransformNxN(const CUData& cu, int16_t* residual, uint32_t resiStride, const coeff_t* coeff, uint32_t 560 source/common/quant.cpp uint32_t log2TrSize, TextType ttype, bool bIntra, bool useTransformSkip, uint32_t numSig) uint32_t 562 source/common/quant.cpp const uint32_t sizeIdx = log2TrSize - 2; uint32_t 627 source/common/quant.cpp template<uint32_t log2TrSize> uint32_t 628 source/common/quant.cpp uint32_t Quant::rdoQuant(const CUData& cu, int16_t* dstCoeff, TextType ttype, uint32_t absPartIdx, bool usePsy) uint32_t 632 source/common/quant.cpp const uint32_t usePsyMask = usePsy ? -1 : 0; uint32_t 643 source/common/quant.cpp uint32_t numSig = primitives.nquant(m_resiDctCoeff, qCoef, dstCoeff, qbits, add, numCoeff); uint32_t 648 source/common/quant.cpp const uint32_t trSize = 1 << log2TrSize; uint32_t 676 source/common/quant.cpp const uint32_t cgSize = (1 << MLS_CG_SIZE); /* 4x4 num coef = 16 */ uint32_t 689 source/common/quant.cpp const uint32_t log2TrSizeCG = log2TrSize - 2; uint32_t 690 source/common/quant.cpp const uint32_t cgNum = 1 << (log2TrSizeCG * 2); uint32_t 691 source/common/quant.cpp const uint32_t cgStride = (trSize >> MLS_CG_LOG2_SIZE); uint32_t 710 source/common/quant.cpp uint32_t scanPos = 0; uint32_t 711 source/common/quant.cpp uint32_t c1 = 1; uint32_t 729 source/common/quant.cpp uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t 730 source/common/quant.cpp uint32_t blkPos = codeParams.scan[scanPosBase]; uint32_t 759 source/common/quant.cpp uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t 760 source/common/quant.cpp uint32_t blkPos = codeParams.scan[scanPosBase]; uint32_t 819 source/common/quant.cpp uint32_t ctxSet = (cgScanPos && bIsLuma) ? 2 : 0; uint32_t 820 source/common/quant.cpp const uint32_t cgBlkPos = codeParams.scanCG[cgScanPos]; uint32_t 821 source/common/quant.cpp const uint32_t cgPosY = cgBlkPos >> log2TrSizeCG; uint32_t 822 source/common/quant.cpp const uint32_t cgPosX = cgBlkPos & ((1 << log2TrSizeCG) - 1); uint32_t 834 source/common/quant.cpp const uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE); uint32_t 835 source/common/quant.cpp uint32_t blkPos = codeParams.scan[scanPosBase]; uint32_t 855 source/common/quant.cpp const uint32_t scanPosOffset = y * MLS_CG_SIZE + x; uint32_t 856 source/common/quant.cpp const uint32_t ctxSig = table_cnt[patternSigCtx][g_scan4x4[codeParams.scanType][scanPosOffset]] + ctxSigOffset; uint32_t 880 source/common/quant.cpp const uint32_t scanPosOffset = y * MLS_CG_SIZE + x; uint32_t 881 source/common/quant.cpp const uint32_t ctxSig = table_cnt[patternSigCtx][g_scan4x4[codeParams.scanType][scanPosOffset]] + ctxSigOffset; uint32_t 895 source/common/quant.cpp uint32_t ctxSig = getSigCoeffGroupCtxInc(sigCoeffGroupFlag64, cgPosX, cgPosY, cgBlkPos, cgStride); uint32_t 905 source/common/quant.cpp uint32_t subFlagMask = coeffFlag[cgScanPos]; uint32_t 907 source/common/quant.cpp uint32_t goRiceParam = 0; uint32_t 908 source/common/quant.cpp uint32_t levelThreshold = 3; uint32_t 909 source/common/quant.cpp uint32_t c1Idx = 0; uint32_t 910 source/common/quant.cpp uint32_t c2Idx = 0; uint32_t 915 source/common/quant.cpp uint32_t blkPos = codeParams.scan[scanPos]; uint32_t 916 source/common/quant.cpp uint32_t maxAbsLevel = dstCoeff[blkPos]; /* abs(quantized coeff) */ uint32_t 938 source/common/quant.cpp const uint32_t ctxSig = (blkPos == 0) ? 0 : ((ctxCnt >> (4 * g_scan4x4[codeParams.scanType][scanPosinCG])) & 0xF) + ctxSigOffset; uint32_t 943 source/common/quant.cpp if (scanPos > (uint32_t)lastScanPos) uint32_t 970 source/common/quant.cpp const uint32_t c1c2idx = ((c1Idx - 8) >> (sizeof(int) * CHAR_BIT - 1)) + (((-(int)c2Idx) >> (sizeof(int) * CHAR_BIT - 1)) + 1) * 2; uint32_t 971 source/common/quant.cpp const uint32_t baseLevel = ((uint32_t)0xD9 >> (c1c2idx * 2)) & 3; // {1, 2, 1, 3} uint32_t 980 source/common/quant.cpp const uint32_t c1c2Rate = ((c1c2idx & 1) ? greaterOneBits[1] : 0) + ((c1c2idx == 3) ? levelAbsBits[1] : 0); uint32_t 982 source/common/quant.cpp uint32_t level = 0; uint32_t 983 source/common/quant.cpp uint32_t sigCoefBits = 0; uint32_t 1000 source/common/quant.cpp const uint32_t unQuantLevel = (maxAbsLevel * (unquantScale[blkPos] << per) + unquantRound); uint32_t 1004 source/common/quant.cpp uint32_t levelBits = (c1c2idx & 1) ? greaterOneBits[0] + IEP_RATE : ((1 + goRiceParam) << 15) + IEP_RATE; uint32_t 1028 source/common/quant.cpp uint32_t levelBits0 = getICRateCost(maxAbsLevel, maxAbsLevel - baseLevel, greaterOneBits, levelAbsBits, goRiceParam, c1c2Rate) + IEP_RATE; uint32_t 1029 source/common/quant.cpp uint32_t levelBits1 = getICRateCost(maxAbsLevel - 1, maxAbsLevel - 1 - baseLevel, greaterOneBits, levelAbsBits, goRiceParam, c1c2Rate) + IEP_RATE; uint32_t 1031 source/common/quant.cpp const uint32_t preDQuantLevelDiff = (unquantScale[blkPos] << per); uint32_t 1034 source/common/quant.cpp X265_CHECK(UNQUANT(maxAbsLevel) == (uint32_t)unquantAbsLevel0, "DQuant check failed\n"); uint32_t 1039 source/common/quant.cpp X265_CHECK(UNQUANT(maxAbsLevel - 1) == (uint32_t)unquantAbsLevel1, "DQuant check failed\n"); uint32_t 1124 source/common/quant.cpp const uint32_t isNonZero = (uint32_t)(-(int32_t)level) >> 31; uint32_t 1131 source/common/quant.cpp c2 += (uint32_t)(c2 - 2) >> 31; uint32_t 1175 source/common/quant.cpp uint32_t sigCtx = getSigCoeffGroupCtxInc(sigCoeffGroupFlag64, cgPosX, cgPosY, cgBlkPos, cgStride); uint32_t 1192 source/common/quant.cpp const uint32_t blkPos = codeParams.scan[cgScanPos * cgSize]; uint32_t 1202 source/common/quant.cpp uint32_t ctxSig = getSigCoeffGroupCtxInc(sigCoeffGroupFlag64, cgPosX, cgPosY, cgBlkPos, cgStride); uint32_t 1261 source/common/quant.cpp uint32_t blkPos = codeParams.scan[scanPos]; uint32_t 1265 source/common/quant.cpp uint32_t pos[2] = { (blkPos & (trSize - 1)), (blkPos >> log2TrSize) }; uint32_t 1268 source/common/quant.cpp uint32_t bitsLastNZ = 0; uint32_t 1309 source/common/quant.cpp uint32_t mask = (int32_t)m_resiDctCoeff[blkPos] >> 31; uint32_t 1315 source/common/quant.cpp X265_CHECK((uint32_t)(fastMin(lastScanPos, bestLastIdx) | (SCAN_SET_SIZE - 1)) < trSize * trSize, "array beyond bound\n"); uint32_t 1322 source/common/quant.cpp const uint32_t blkPos = codeParams.scan[pos]; uint32_t 1345 source/common/quant.cpp const uint32_t posFirstLast = primitives.findPosFirstLast(&dstCoeff[codeParams.scan[subPos]], trSize, g_scan4x4[codeParams.scanType]); uint32_t 1348 source/common/quant.cpp const uint32_t absSumSign = posFirstLast; uint32_t 1358 source/common/quant.cpp X265_CHECK(((uint32_t)absSum_dummy & 1) == (absSumSign >> 31), "absSumSign check failure\n"); uint32_t 1369 source/common/quant.cpp uint32_t minPos = 0; uint32_t 1372 source/common/quant.cpp uint32_t lastCoeffAdjust = (lastCG & (abs(dstCoeff[codeParams.scan[lastNZPosInCG + subPos]]) == 1)) * 4 * IEP_RATE; uint32_t 1376 source/common/quant.cpp const uint32_t blkPos = codeParams.scan[n + subPos]; uint32_t 1380 source/common/quant.cpp const uint32_t preDQuantLevelDiff = (unquantScale[blkPos] << per); uint32_t 1381 source/common/quant.cpp const uint32_t unQuantLevel = (absLevel * (unquantScale[blkPos] << per) + unquantRound); uint32_t 1384 source/common/quant.cpp X265_CHECK((uint32_t)UNQUANT(absLevel) == (unQuantLevel >> unquantShift), "dquant check failed\n"); uint32_t 1390 source/common/quant.cpp const uint32_t isOne = (absLevel == 1); uint32_t 1394 source/common/quant.cpp X265_CHECK((uint32_t)UNQUANT(absLevel + 1) == ((unQuantLevel + preDQuantLevelDiff) >> unquantShift), "dquant check failed\n"); uint32_t 1400 source/common/quant.cpp X265_CHECK((uint32_t)UNQUANT(absLevel - 1) == ((unQuantLevel - preDQuantLevelDiff) >> unquantShift), "dquant check failed\n"); uint32_t 1422 source/common/quant.cpp X265_CHECK((uint32_t)UNQUANT(1) == ((preDQuantLevelDiff + unquantRound) >> unquantShift), "dquant check failed\n"); uint32_t 1470 source/common/quant.cpp uint32_t Quant::getSigCtxInc(uint32_t patternSigCtx, uint32_t log2TrSize, uint32_t trSize, uint32_t blkPos, bool bIsLuma, uint32_t 1471 source/common/quant.cpp uint32_t firstSignificanceMapContext) uint32_t 1487 source/common/quant.cpp const uint32_t posY = blkPos >> log2TrSize; uint32_t 1488 source/common/quant.cpp const uint32_t posX = blkPos & (trSize - 1); uint32_t 69 source/common/quant.h ALIGN_VAR_16(uint32_t, nrResidualSum[MAX_NUM_TR_CATEGORIES][MAX_NUM_TR_COEFFS]); uint32_t 70 source/common/quant.h uint32_t nrCount[MAX_NUM_TR_CATEGORIES]; uint32_t 73 source/common/quant.h uint32_t (*residualSum)[MAX_NUM_TR_COEFFS]; uint32_t 74 source/common/quant.h uint32_t *count; uint32_t 109 source/common/quant.h uint32_t transformNxN(const CUData& cu, const pixel* fenc, uint32_t fencStride, const int16_t* residual, uint32_t resiStride, coeff_t* coeff, uint32_t 110 source/common/quant.h uint32_t log2TrSize, TextType ttype, uint32_t absPartIdx, bool useTransformSkip); uint32_t 112 source/common/quant.h void invtransformNxN(const CUData& cu, int16_t* residual, uint32_t resiStride, const coeff_t* coeff, uint32_t 113 source/common/quant.h uint32_t log2TrSize, TextType ttype, bool bIntra, bool useTransformSkip, uint32_t numSig); uint32_t 114 source/common/quant.h uint64_t ssimDistortion(const CUData& cu, const pixel* fenc, uint32_t fStride, const pixel* recon, intptr_t rstride, uint32_t 115 source/common/quant.h uint32_t log2TrSize, TextType ttype, uint32_t absPartIdx); uint32_t 118 source/common/quant.h static uint32_t calcPatternSigCtx(uint64_t sigCoeffGroupFlag64, uint32_t cgPosX, uint32_t cgPosY, uint32_t cgBlkPos, uint32_t trSizeCG) uint32_t 128 source/common/quant.h const uint32_t sigPos = (uint32_t)(sigCoeffGroupFlag64 >> (cgBlkPos + 1)); // just need lowest 7-bits valid uint32_t 131 source/common/quant.h const uint32_t sigRight = (cgPosX != (trSizeCG - 1)) & sigPos; uint32_t 132 source/common/quant.h const uint32_t sigLower = (cgPosY != (trSizeCG - 1)) & (sigPos >> (trSizeCG - 1)); uint32_t 137 source/common/quant.h static uint32_t getSigCoeffGroupCtxInc(uint64_t cgGroupMask, uint32_t cgPosX, uint32_t cgPosY, uint32_t cgBlkPos, uint32_t trSizeCG) uint32_t 141 source/common/quant.h const uint32_t sigPos = (uint32_t)(cgGroupMask >> (cgBlkPos + 1)); // just need lowest 8-bits valid uint32_t 142 source/common/quant.h const uint32_t sigRight = (cgPosX != (trSizeCG - 1)) & sigPos; uint32_t 143 source/common/quant.h const uint32_t sigLower = (cgPosY != (trSizeCG - 1)) & (sigPos >> (trSizeCG - 1)); uint32_t 149 source/common/quant.h static uint32_t getSigCtxInc(uint32_t patternSigCtx, uint32_t log2TrSize, uint32_t trSize, uint32_t blkPos, bool bIsLuma, uint32_t firstSignificanceMapContext); uint32_t 155 source/common/quant.h uint32_t signBitHidingHDQ(int16_t* qcoeff, int32_t* deltaU, uint32_t numSig, const TUEntropyCodingParameters &codingParameters, uint32_t log2TrSize); uint32_t 157 source/common/quant.h template<uint32_t log2TrSize> uint32_t 158 source/common/quant.h uint32_t rdoQuant(const CUData& cu, int16_t* dstCoeff, TextType ttype, uint32_t absPartIdx, bool usePsy); uint32_t 161 source/common/quant.h typedef uint32_t (Quant::*rdoQuant_t)(const CUData& cu, int16_t* dstCoeff, TextType ttype, uint32_t absPartIdx, bool usePsy); uint32_t 40 source/common/shortyuv.cpp bool ShortYuv::create(uint32_t size, int csp) uint32_t 81 source/common/shortyuv.cpp void ShortYuv::subtract(const Yuv& srcYuv0, const Yuv& srcYuv1, uint32_t log2Size, int picCsp) uint32_t 92 source/common/shortyuv.cpp void ShortYuv::copyPartToPartLuma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const uint32_t 100 source/common/shortyuv.cpp void ShortYuv::copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const uint32_t 108 source/common/shortyuv.cpp void ShortYuv::copyPartToPartChroma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const uint32_t 120 source/common/shortyuv.cpp void ShortYuv::copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const uint32_t 44 source/common/shortyuv.h uint32_t m_size; uint32_t 45 source/common/shortyuv.h uint32_t m_csize; uint32_t 53 source/common/shortyuv.h bool create(uint32_t size, int csp); uint32_t 57 source/common/shortyuv.h int16_t* getLumaAddr(uint32_t absPartIdx) { return m_buf[0] + getAddrOffset(absPartIdx, m_size); } uint32_t 58 source/common/shortyuv.h int16_t* getCbAddr(uint32_t absPartIdx) { return m_buf[1] + getChromaAddrOffset(absPartIdx); } uint32_t 59 source/common/shortyuv.h int16_t* getCrAddr(uint32_t absPartIdx) { return m_buf[2] + getChromaAddrOffset(absPartIdx); } uint32_t 60 source/common/shortyuv.h int16_t* getChromaAddr(uint32_t chromaId, uint32_t partUnitIdx) { return m_buf[chromaId] + getChromaAddrOffset(partUnitIdx); } uint32_t 62 source/common/shortyuv.h const int16_t* getLumaAddr(uint32_t absPartIdx) const { return m_buf[0] + getAddrOffset(absPartIdx, m_size); } uint32_t 63 source/common/shortyuv.h const int16_t* getCbAddr(uint32_t absPartIdx) const { return m_buf[1] + getChromaAddrOffset(absPartIdx); } uint32_t 64 source/common/shortyuv.h const int16_t* getCrAddr(uint32_t absPartIdx) const { return m_buf[2] + getChromaAddrOffset(absPartIdx); } uint32_t 65 source/common/shortyuv.h const int16_t* getChromaAddr(uint32_t chromaId, uint32_t partUnitIdx) const { return m_buf[chromaId] + getChromaAddrOffset(partUnitIdx); } uint32_t 67 source/common/shortyuv.h void subtract(const Yuv& srcYuv0, const Yuv& srcYuv1, uint32_t log2Size, int picCsp); uint32_t 69 source/common/shortyuv.h void copyPartToPartLuma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const; uint32_t 70 source/common/shortyuv.h void copyPartToPartChroma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const; uint32_t 72 source/common/shortyuv.h void copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const; uint32_t 73 source/common/shortyuv.h void copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const; uint32_t 75 source/common/shortyuv.h int getChromaAddrOffset(uint32_t idx) const uint32_t 83 source/common/shortyuv.h static int getAddrOffset(uint32_t idx, uint32_t width) uint32_t 185 source/common/slice.cpp uint32_t Slice::realEndAddress(uint32_t endCUAddr) const uint32_t 188 source/common/slice.cpp uint32_t internalAddress = (endCUAddr - 1) % m_param->num4x4Partitions; uint32_t 189 source/common/slice.cpp uint32_t externalAddress = (endCUAddr - 1) / m_param->num4x4Partitions; uint32_t 190 source/common/slice.cpp uint32_t xmax = m_sps->picWidthInLumaSamples - (externalAddress % m_sps->numCuInWidth) * m_param->maxCUSize; uint32_t 191 source/common/slice.cpp uint32_t ymax = m_sps->picHeightInLumaSamples - (externalAddress / m_sps->numCuInWidth) * m_param->maxCUSize; uint32_t 111 source/common/slice.h uint32_t minCrForLevel; uint32_t 112 source/common/slice.h uint32_t maxLumaSrForLevel; uint32_t 113 source/common/slice.h uint32_t bitDepthConstraint; uint32_t 128 source/common/slice.h uint32_t bitRateScale; uint32_t 129 source/common/slice.h uint32_t cpbSizeScale; uint32_t 130 source/common/slice.h uint32_t initialCpbRemovalDelayLength; uint32_t 131 source/common/slice.h uint32_t cpbRemovalDelayLength; uint32_t 132 source/common/slice.h uint32_t dpbOutputDelayLength; uint32_t 133 source/common/slice.h uint32_t bitRateValue; uint32_t 134 source/common/slice.h uint32_t cpbSizeValue; uint32_t 150 source/common/slice.h uint32_t numUnitsInTick; uint32_t 151 source/common/slice.h uint32_t timeScale; uint32_t 158 source/common/slice.h uint32_t maxTempSubLayers; uint32_t 159 source/common/slice.h uint32_t numReorderPics; uint32_t 160 source/common/slice.h uint32_t maxDecPicBuffering; uint32_t 161 source/common/slice.h uint32_t maxLatencyIncrease; uint32_t 216 source/common/slice.h uint32_t picWidthInLumaSamples; // use param uint32_t 217 source/common/slice.h uint32_t picHeightInLumaSamples; // use param uint32_t 219 source/common/slice.h uint32_t numCuInWidth; uint32_t 220 source/common/slice.h uint32_t numCuInHeight; uint32_t 221 source/common/slice.h uint32_t numCUsInFrame; uint32_t 222 source/common/slice.h uint32_t numPartitions; uint32_t 223 source/common/slice.h uint32_t numPartInCUSize; uint32_t 229 source/common/slice.h uint32_t quadtreeTULog2MaxSize; uint32_t 230 source/common/slice.h uint32_t quadtreeTULog2MinSize; uint32_t 232 source/common/slice.h uint32_t quadtreeTUMaxDepthInter; // use param uint32_t 233 source/common/slice.h uint32_t quadtreeTUMaxDepthIntra; // use param uint32_t 235 source/common/slice.h uint32_t maxAMPDepth; uint32_t 237 source/common/slice.h uint32_t maxTempSubLayers; // max number of Temporal Sub layers uint32_t 238 source/common/slice.h uint32_t maxDecPicBuffering; // these are dups of VPS values uint32_t 239 source/common/slice.h uint32_t maxLatencyIncrease; uint32_t 272 source/common/slice.h uint32_t maxCuDQPDepth; uint32_t 298 source/common/slice.h uint32_t log2WeightDenom; uint32_t 348 source/common/slice.h uint32_t m_colRefIdx; // never modified uint32_t 353 source/common/slice.h uint32_t m_maxNumMergeCand; // use param uint32_t 354 source/common/slice.h uint32_t m_endCUAddr; uint32_t 404 source/common/slice.h uint32_t realEndAddress(uint32_t endCUAddr) const; uint32_t 153 source/common/threading.h bool timedWait(uint32_t milliseconds) uint32_t 314 source/common/threading.h bool timedWait(uint32_t waitms) uint32_t 361 source/common/threading.h uint32_t m_counter; uint32_t 642 source/common/threadpool.cpp uint32_t count; uint32_t 40 source/common/threadpool.h typedef uint32_t sleepbitmap_t; uint32_t 38 source/common/wavefront.cpp m_internalDependencyBitmap = X265_MALLOC(uint32_t, m_numWords); uint32_t 40 source/common/wavefront.cpp memset((void*)m_internalDependencyBitmap, 0, sizeof(uint32_t) * m_numWords); uint32_t 42 source/common/wavefront.cpp m_externalDependencyBitmap = X265_MALLOC(uint32_t, m_numWords); uint32_t 44 source/common/wavefront.cpp memset((void*)m_externalDependencyBitmap, 0, sizeof(uint32_t) * m_numWords); uint32_t 57 source/common/wavefront.cpp memset((void*)m_externalDependencyBitmap, 0, sizeof(uint32_t) * m_numWords); uint32_t 58 source/common/wavefront.cpp memset((void*)m_internalDependencyBitmap, 0, sizeof(uint32_t) * m_numWords); uint32_t 63 source/common/wavefront.cpp uint32_t bit = 1 << (row & 31); uint32_t 69 source/common/wavefront.cpp uint32_t bit = 1 << (row & 31); uint32_t 75 source/common/wavefront.cpp memset((void*)m_externalDependencyBitmap, ~0, sizeof(uint32_t) * m_numWords); uint32_t 80 source/common/wavefront.cpp uint32_t bit = 1 << (row & 31); uint32_t 91 source/common/wavefront.cpp uint32_t oldval = m_internalDependencyBitmap[w] & m_externalDependencyBitmap[w]; uint32_t 96 source/common/wavefront.cpp uint32_t bit = 1 << id; uint32_t 47 source/common/wavefront.h uint32_t volatile *m_internalDependencyBitmap; uint32_t 48 source/common/wavefront.h uint32_t volatile *m_externalDependencyBitmap; uint32_t 3742 source/common/x86/asm-primitives.cpp uint32_t cpu = x265::cpu_detect(); uint32_t 44 source/common/x86/blockcopy8.h FUNCDEF_TU_S(uint32_t, copy_cnt, sse2, int16_t* dst, const int16_t* src, intptr_t srcStride); uint32_t 45 source/common/x86/blockcopy8.h FUNCDEF_TU_S(uint32_t, copy_cnt, sse4, int16_t* dst, const int16_t* src, intptr_t srcStride); uint32_t 46 source/common/x86/blockcopy8.h FUNCDEF_TU_S(uint32_t, copy_cnt, avx2, int16_t* dst, const int16_t* src, intptr_t srcStride); uint32_t 43 source/common/x86/dct8.h void PFX(denoise_dct_sse4)(int16_t* dct, uint32_t* sum, const uint16_t* offset, int size); uint32_t 44 source/common/x86/dct8.h void PFX(denoise_dct_avx2)(int16_t* dct, uint32_t* sum, const uint16_t* offset, int size); uint32_t 32 source/common/x86/pixel-util.h uint32_t PFX(quant_ ## cpu(const int16_t* coef, const int32_t* quantCoeff, int32_t* deltaU, int16_t* qCoef, int qBits, int add, int numCoeff)); \ uint32_t 33 source/common/x86/pixel-util.h uint32_t PFX(nquant_ ## cpu(const int16_t* coef, const int32_t* quantCoeff, int16_t* qCoef, int qBits, int add, int numCoeff)); \ uint32_t 40 source/common/x86/pixel-util.h uint32_t PFX(costCoeffRemain_ ## cpu(uint16_t *absCoeff, int numNonZero, int idx)); \ uint32_t 41 source/common/x86/pixel-util.h uint32_t PFX(costC1C2Flag_sse2(uint16_t *absCoeff, intptr_t numNonZero, uint8_t *baseCtxMod, intptr_t ctxOffset)); \ uint32_t 57 source/common/x86/pixel-util.h uint32_t PFX(findPosFirstLast_ssse3(const int16_t *dstCoeff, const intptr_t trSize, const uint16_t scanTbl[16])); uint32_t 58 source/common/x86/pixel-util.h uint32_t PFX(costCoeffNxN_sse4(const uint16_t *scan, const coeff_t *coeff, intptr_t trSize, uint16_t *absCoeff, const uint8_t *tabSigCtx, uint32_t scanFlagMask, uint8_t *baseCtx, int offset, int scanPosSigOff, int subPosBase)); uint32_t 59 source/common/x86/pixel-util.h uint32_t PFX(costCoeffNxN_avx2_bmi2(const uint16_t *scan, const coeff_t *coeff, intptr_t trSize, uint16_t *absCoeff, const uint8_t *tabSigCtx, uint32_t scanFlagMask, uint8_t *baseCtx, int offset, int scanPosSigOff, int subPosBase)); uint32_t 29 source/common/x86/seaintegral.h void PFX(integral4v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 30 source/common/x86/seaintegral.h void PFX(integral8v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 31 source/common/x86/seaintegral.h void PFX(integral12v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 32 source/common/x86/seaintegral.h void PFX(integral16v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 33 source/common/x86/seaintegral.h void PFX(integral24v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 34 source/common/x86/seaintegral.h void PFX(integral32v_avx2)(uint32_t *sum, intptr_t stride); uint32_t 35 source/common/x86/seaintegral.h void PFX(integral4h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 36 source/common/x86/seaintegral.h void PFX(integral8h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 37 source/common/x86/seaintegral.h void PFX(integral12h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 38 source/common/x86/seaintegral.h void PFX(integral16h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 39 source/common/x86/seaintegral.h void PFX(integral24h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 40 source/common/x86/seaintegral.h void PFX(integral32h_avx2)(uint32_t *sum, pixel *pix, intptr_t stride); uint32_t 41 source/common/yuv.cpp bool Yuv::create(uint32_t size, int csp) uint32_t 87 source/common/yuv.cpp void Yuv::copyToPicYuv(PicYuv& dstPic, uint32_t cuAddr, uint32_t absPartIdx) const uint32_t 100 source/common/yuv.cpp void Yuv::copyFromPicYuv(const PicYuv& srcPic, uint32_t cuAddr, uint32_t absPartIdx) uint32_t 126 source/common/yuv.cpp void Yuv::copyPUFromYuv(const Yuv& srcYuv, uint32_t absPartIdx, int partEnum, bool bChroma) uint32_t 142 source/common/yuv.cpp void Yuv::copyToPartYuv(Yuv& dstYuv, uint32_t absPartIdx) const uint32_t 155 source/common/yuv.cpp void Yuv::copyPartToYuv(Yuv& dstYuv, uint32_t absPartIdx) const uint32_t 171 source/common/yuv.cpp void Yuv::addClip(const Yuv& srcYuv0, const ShortYuv& srcYuv1, uint32_t log2SizeL, int picCsp) uint32_t 186 source/common/yuv.cpp void Yuv::addAvg(const ShortYuv& srcYuv0, const ShortYuv& srcYuv1, uint32_t absPartIdx, uint32_t width, uint32_t height, bool bLuma, bool bChroma) uint32_t 210 source/common/yuv.cpp void Yuv::copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const uint32_t 217 source/common/yuv.cpp void Yuv::copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const uint32_t 44 source/common/yuv.h uint32_t m_size; uint32_t 45 source/common/yuv.h uint32_t m_csize; uint32_t 51 source/common/yuv.h uint32_t *m_integral[2][MAX_NUM_REF][INTEGRAL_PLANE_NUM]; uint32_t 55 source/common/yuv.h bool create(uint32_t size, int csp); uint32_t 59 source/common/yuv.h void copyToPicYuv(PicYuv& destPicYuv, uint32_t cuAddr, uint32_t absPartIdx) const; uint32_t 62 source/common/yuv.h void copyFromPicYuv(const PicYuv& srcPicYuv, uint32_t cuAddr, uint32_t absPartIdx); uint32_t 68 source/common/yuv.h void copyPUFromYuv(const Yuv& srcYuv, uint32_t absPartIdx, int partEnum, bool bChroma); uint32_t 71 source/common/yuv.h void copyToPartYuv(Yuv& dstYuv, uint32_t absPartIdx) const; uint32_t 74 source/common/yuv.h void copyPartToYuv(Yuv& dstYuv, uint32_t absPartIdx) const; uint32_t 77 source/common/yuv.h void addClip(const Yuv& srcYuv0, const ShortYuv& srcYuv1, uint32_t log2SizeL, int picCsp); uint32_t 80 source/common/yuv.h void addAvg(const ShortYuv& srcYuv0, const ShortYuv& srcYuv1, uint32_t absPartIdx, uint32_t width, uint32_t height, bool bLuma, bool bChroma); uint32_t 82 source/common/yuv.h void copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const; uint32_t 83 source/common/yuv.h void copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const; uint32_t 85 source/common/yuv.h pixel* getLumaAddr(uint32_t absPartIdx) { return m_buf[0] + getAddrOffset(absPartIdx, m_size); } uint32_t 86 source/common/yuv.h pixel* getCbAddr(uint32_t absPartIdx) { return m_buf[1] + getChromaAddrOffset(absPartIdx); } uint32_t 87 source/common/yuv.h pixel* getCrAddr(uint32_t absPartIdx) { return m_buf[2] + getChromaAddrOffset(absPartIdx); } uint32_t 88 source/common/yuv.h pixel* getChromaAddr(uint32_t chromaId, uint32_t absPartIdx) { return m_buf[chromaId] + getChromaAddrOffset(absPartIdx); } uint32_t 90 source/common/yuv.h const pixel* getLumaAddr(uint32_t absPartIdx) const { return m_buf[0] + getAddrOffset(absPartIdx, m_size); } uint32_t 91 source/common/yuv.h const pixel* getCbAddr(uint32_t absPartIdx) const { return m_buf[1] + getChromaAddrOffset(absPartIdx); } uint32_t 92 source/common/yuv.h const pixel* getCrAddr(uint32_t absPartIdx) const { return m_buf[2] + getChromaAddrOffset(absPartIdx); } uint32_t 93 source/common/yuv.h const pixel* getChromaAddr(uint32_t chromaId, uint32_t absPartIdx) const { return m_buf[chromaId] + getChromaAddrOffset(absPartIdx); } uint32_t 95 source/common/yuv.h int getChromaAddrOffset(uint32_t absPartIdx) const uint32_t 103 source/common/yuv.h static int getAddrOffset(uint32_t absPartIdx, uint32_t width) uint32_t 28 source/dynamicHDR10/api.cpp bool hdr10plus_json_to_frame_cim(const char* path, uint32_t frameNumber, uint8_t *&cim) uint32_t 42 source/dynamicHDR10/api.cpp bool hdr10plus_json_to_frame_eif(const char* path, uint32_t frameNumber, uint8_t *&eif) uint32_t 39 source/dynamicHDR10/hdr10plus.h bool hdr10plus_json_to_frame_cim(const char* path, uint32_t frameNumber, uint8_t *&cim); uint32_t 59 source/dynamicHDR10/hdr10plus.h bool hdr10plus_json_to_frame_eif(const char* path, uint32_t frameNumber, uint8_t *&eif); uint32_t 86 source/dynamicHDR10/hdr10plus.h bool (*hdr10plus_json_to_frame_cim)(const char *, uint32_t, uint8_t *&); uint32_t 88 source/dynamicHDR10/hdr10plus.h bool (*hdr10plus_json_to_frame_eif)(const char *, uint32_t, uint8_t *&); uint32_t 438 source/dynamicHDR10/metadataFromJson.cpp uint32_t TEMPmonitorPeak = fileData[frame][JsonDataKeys::TargetDisplayLuminance].int_value(); //500; uint32_t 87 source/encoder/analysis.cpp uint32_t maxDQPDepth = g_log2Size[m_param->maxCUSize] - g_log2Size[m_param->rc.qgSize]; uint32_t 88 source/encoder/analysis.cpp for (uint32_t i = 1; i <= maxDQPDepth; i++) uint32_t 93 source/encoder/analysis.cpp uint32_t cuSize = m_param->maxCUSize; uint32_t 96 source/encoder/analysis.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++, cuSize >>= 1) uint32_t 119 source/encoder/analysis.cpp for (uint32_t i = 0; i <= m_param->maxCUDepth; i++) uint32_t 153 source/encoder/analysis.cpp uint32_t numPartition = ctu.m_numPartitions; uint32_t 160 source/encoder/analysis.cpp uint32_t maxNum8x8Partitions = 64; uint32_t 172 source/encoder/analysis.cpp for (uint32_t l = 0; l < numPartition >> 2 * depth; l++) uint32_t 184 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i++) uint32_t 267 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i++) uint32_t 294 source/encoder/analysis.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu.m_numPartitions; absPartIdx += ctu.m_numPartitions >> (depth * 2)) uint32_t 298 source/encoder/analysis.cpp uint32_t numPU = nbPartsTable[(int)partSize]; uint32_t 300 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 425 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 490 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 502 source/encoder/analysis.cpp split = ((cuGeom.log2CUSize == (uint32_t)(g_log2Size[m_param->minCUSize] + 1)) && bDecidedDepth); uint32_t 503 source/encoder/analysis.cpp if (cuGeom.log2CUSize == (uint32_t)(g_log2Size[m_param->minCUSize]) && !bDecidedDepth) uint32_t 558 source/encoder/analysis.cpp uint32_t nextDepth = depth + 1; uint32_t 564 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 614 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i++) uint32_t 671 source/encoder/analysis.cpp uint32_t refMasks[2] = { 0, 0 }; uint32_t 816 source/encoder/analysis.cpp uint32_t Analysis::compressInterCU_dist(const CUData& parentCTU, const CUGeom& cuGeom, int32_t qp) uint32_t 818 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 819 source/encoder/analysis.cpp uint32_t cuAddr = parentCTU.m_cuAddr; uint32_t 825 source/encoder/analysis.cpp uint32_t minDepth = m_param->rdLevel <= 4 ? topSkipMinDepth(parentCTU, cuGeom) : 0; uint32_t 826 source/encoder/analysis.cpp uint32_t splitRefs[4] = { 0, 0, 0, 0 }; uint32_t 860 source/encoder/analysis.cpp uint32_t nextDepth = depth + 1; uint32_t 867 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 977 source/encoder/analysis.cpp uint32_t numPU = bestInter->cu.getNumPartInter(0); uint32_t 978 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1014 source/encoder/analysis.cpp uint32_t numPU = md.bestMode->cu.getNumPartInter(0); uint32_t 1015 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1069 source/encoder/analysis.cpp uint32_t refMask; uint32_t 1078 source/encoder/analysis.cpp uint32_t numPU = cu.getNumPartInter(0); uint32_t 1080 source/encoder/analysis.cpp for (uint32_t puIdx = 0, subPartIdx = 0; puIdx < numPU; puIdx++, subPartIdx += cu.getPUOffset(puIdx, 0)) uint32_t 1106 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 1107 source/encoder/analysis.cpp uint32_t cuAddr = parentCTU.m_cuAddr; uint32_t 1125 source/encoder/analysis.cpp uint32_t minDepth = topSkipMinDepth(parentCTU, cuGeom); uint32_t 1280 source/encoder/analysis.cpp uint32_t nextDepth = depth + 1; uint32_t 1287 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 1322 source/encoder/analysis.cpp splitPred->sa8dCost = m_rdCost.calcRdSADCost((uint32_t)splitPred->distortion, splitPred->sa8dBits); uint32_t 1328 source/encoder/analysis.cpp uint32_t allSplitRefs = splitData[0].splitRefs | splitData[1].splitRefs | splitData[2].splitRefs | splitData[3].splitRefs; uint32_t 1337 source/encoder/analysis.cpp uint32_t refMasks[2]; uint32_t 1345 source/encoder/analysis.cpp uint32_t refMask = cu.getBestRefIdx(0); uint32_t 1361 source/encoder/analysis.cpp uint32_t threshold_2NxN, threshold_Nx2N; uint32_t 1411 source/encoder/analysis.cpp uint32_t threshold_2NxnU, threshold_2NxnD, threshold_nLx2N, threshold_nRx2N; uint32_t 1520 source/encoder/analysis.cpp uint32_t numPU = bestInter->cu.getNumPartInter(0); uint32_t 1521 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1537 source/encoder/analysis.cpp uint32_t numPU = md.pred[PRED_BIDIR].cu.getNumPartInter(0); uint32_t 1539 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1603 source/encoder/analysis.cpp uint32_t numPU = md.bestMode->cu.getNumPartInter(0); uint32_t 1606 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1619 source/encoder/analysis.cpp uint32_t tuDepthRange[2]; uint32_t 1642 source/encoder/analysis.cpp uint32_t tuDepthRange[2]; uint32_t 1689 source/encoder/analysis.cpp uint32_t numPU = cu.getNumPartInter(0); uint32_t 1690 source/encoder/analysis.cpp for (uint32_t puIdx = 0, subPartIdx = 0; puIdx < numPU; puIdx++, subPartIdx += cu.getPUOffset(puIdx, 0)) uint32_t 1722 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i++) uint32_t 1736 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 1782 source/encoder/analysis.cpp uint32_t allSplitRefs = splitData[0].splitRefs | splitData[1].splitRefs | splitData[2].splitRefs | splitData[3].splitRefs; uint32_t 1783 source/encoder/analysis.cpp uint32_t refMasks[2]; uint32_t 1907 source/encoder/analysis.cpp uint32_t nextDepth = depth + 1; uint32_t 1914 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 1965 source/encoder/analysis.cpp uint32_t refMask = cu.getBestRefIdx(0); uint32_t 1975 source/encoder/analysis.cpp uint32_t numPU = md.pred[PRED_BIDIR].cu.getNumPartInter(0); uint32_t 1977 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 1992 source/encoder/analysis.cpp uint32_t threshold_2NxN, threshold_Nx2N; uint32_t 2040 source/encoder/analysis.cpp uint32_t threshold_2NxnU, threshold_2NxnD, threshold_nLx2N, threshold_nRx2N; uint32_t 2163 source/encoder/analysis.cpp uint32_t numPU = md.bestMode->cu.getNumPartInter(0); uint32_t 2165 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 2185 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i++) uint32_t 2212 source/encoder/analysis.cpp uint32_t numPU = cu.getNumPartInter(0); uint32_t 2213 source/encoder/analysis.cpp for (uint32_t puIdx = 0, subPartIdx = 0; puIdx < numPU; puIdx++, subPartIdx += cu.getPUOffset(puIdx, 0)) uint32_t 2234 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 2243 source/encoder/analysis.cpp int split = (m_param->interRefine && cuGeom.log2CUSize == (uint32_t)(g_log2Size[m_param->minCUSize] + 1) uint32_t 2266 source/encoder/analysis.cpp uint32_t numPU = parentCTU.getNumPartInter(cuGeom.absPartIdx); uint32_t 2267 source/encoder/analysis.cpp for (uint32_t part = 0; part < numPU; part++) uint32_t 2355 source/encoder/analysis.cpp uint32_t nextDepth = depth + 1; uint32_t 2361 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 2417 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 2440 source/encoder/analysis.cpp uint32_t numMergeCand = tempPred->cu.getInterMergeCandidates(0, 0, candMvField, candDir); uint32_t 2452 source/encoder/analysis.cpp for (uint32_t i = 0; i < numMergeCand; ++i) uint32_t 2496 source/encoder/analysis.cpp tempPred->sa8dCost = m_rdCost.calcRdSADCost((uint32_t)tempPred->distortion, tempPred->sa8dBits); uint32_t 2550 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 2569 source/encoder/analysis.cpp uint32_t numMergeCand = merge.cu.getInterMergeCandidates(0, 0, candMvField, candDir); uint32_t 2582 source/encoder/analysis.cpp for (uint32_t i = 0; i < numMergeCand; i++) uint32_t 2678 source/encoder/analysis.cpp uint32_t bestCand = bestPred->cu.m_mvpIdx[0][0]; uint32_t 2688 source/encoder/analysis.cpp void Analysis::checkInter_rd0_4(Mode& interMode, const CUGeom& cuGeom, PartSize partSize, uint32_t refMask[2]) uint32_t 2700 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2701 source/encoder/analysis.cpp for (uint32_t part = 0; part < numPU; part++) uint32_t 2711 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2712 source/encoder/analysis.cpp for (uint32_t part = 0; part < numPU; part++) uint32_t 2735 source/encoder/analysis.cpp interMode.sa8dCost = m_rdCost.calcRdSADCost((uint32_t)interMode.distortion, interMode.sa8dBits); uint32_t 2742 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2743 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 2752 source/encoder/analysis.cpp void Analysis::checkInter_rd5_6(Mode& interMode, const CUGeom& cuGeom, PartSize partSize, uint32_t refMask[2]) uint32_t 2764 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2765 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 2775 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2776 source/encoder/analysis.cpp for (uint32_t part = 0; part < numPU; part++) uint32_t 2798 source/encoder/analysis.cpp uint32_t numPU = interMode.cu.getNumPartInter(0); uint32_t 2799 source/encoder/analysis.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 2906 source/encoder/analysis.cpp uint32_t bits0 = bestME[0].bits - m_me.bitcost(bestME[0].mv, mvp0) + m_me.bitcost(mvzero, mvp0); uint32_t 2907 source/encoder/analysis.cpp uint32_t bits1 = bestME[1].bits - m_me.bitcost(bestME[1].mv, mvp1) + m_me.bitcost(mvzero, mvp1); uint32_t 2908 source/encoder/analysis.cpp uint32_t zcost = zsa8d + m_rdCost.getCost(bits0) + m_rdCost.getCost(bits1); uint32_t 2914 source/encoder/analysis.cpp uint32_t zbits = bits0 + bits1 + m_listSelBits[2] - (m_listSelBits[0] + m_listSelBits[1]); uint32_t 2948 source/encoder/analysis.cpp for (uint32_t subPartIdx = 0; subPartIdx < 4; subPartIdx++) uint32_t 2957 source/encoder/analysis.cpp uint32_t absPartIdx = cuGeom.absPartIdx; uint32_t 2977 source/encoder/analysis.cpp uint32_t tuDepthRange[2]; uint32_t 3018 source/encoder/analysis.cpp uint32_t tuDepthRange[2]; uint32_t 3058 source/encoder/analysis.cpp void Analysis::addSplitFlagCost(Mode& mode, uint32_t depth) uint32_t 3065 source/encoder/analysis.cpp uint32_t bits = mode.contexts.getNumberOfWrittenBits(); uint32_t 3072 source/encoder/analysis.cpp mode.sa8dCost = m_rdCost.calcRdSADCost((uint32_t)mode.distortion, mode.sa8dBits); uint32_t 3081 source/encoder/analysis.cpp uint32_t Analysis::topSkipMinDepth(const CUData& parentCTU, const CUGeom& cuGeom) uint32_t 3087 source/encoder/analysis.cpp uint32_t minDepth0 = 4, minDepth1 = 4; uint32_t 3088 source/encoder/analysis.cpp uint32_t sum = 0; uint32_t 3097 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i += 4) uint32_t 3099 source/encoder/analysis.cpp uint32_t d = cu.m_cuDepth[cuGeom.absPartIdx + i]; uint32_t 3110 source/encoder/analysis.cpp for (uint32_t i = 0; i < cuGeom.numPartitions; i += 4) uint32_t 3112 source/encoder/analysis.cpp uint32_t d = cu.m_cuDepth[cuGeom.absPartIdx + i]; uint32_t 3120 source/encoder/analysis.cpp uint32_t minDepth = X265_MIN(minDepth0, minDepth1); uint32_t 3121 source/encoder/analysis.cpp uint32_t thresh = minDepth * numRefs * (cuGeom.numPartitions >> 2); uint32_t 3139 source/encoder/analysis.cpp uint32_t depth = cuGeom.depth; uint32_t 3191 source/encoder/analysis.cpp uint32_t mean = 0; uint32_t 3192 source/encoder/analysis.cpp uint32_t homo = 0; uint32_t 3193 source/encoder/analysis.cpp uint32_t cuSize = bestMode.fencYuv->m_size; uint32_t 3194 source/encoder/analysis.cpp for (uint32_t y = 0; y < cuSize; y++) { uint32_t 3195 source/encoder/analysis.cpp for (uint32_t x = 0; x < cuSize; x++) { uint32_t 3200 source/encoder/analysis.cpp for (uint32_t y = 0 ; y < cuSize; y++){ uint32_t 3201 source/encoder/analysis.cpp for (uint32_t x = 0 ; x < cuSize; x++){ uint32_t 3240 source/encoder/analysis.cpp uint32_t width = m_frame->m_fencPic->m_picWidth; uint32_t 3241 source/encoder/analysis.cpp uint32_t height = m_frame->m_fencPic->m_picHeight; uint32_t 3242 source/encoder/analysis.cpp uint32_t block_x = ctu.m_cuPelX + g_zscanToPelX[cuGeom.absPartIdx]; uint32_t 3243 source/encoder/analysis.cpp uint32_t block_y = ctu.m_cuPelY + g_zscanToPelY[cuGeom.absPartIdx]; uint32_t 3244 source/encoder/analysis.cpp uint32_t maxCols = (m_frame->m_fencPic->m_picWidth + (loopIncr - 1)) / loopIncr; uint32_t 3245 source/encoder/analysis.cpp uint32_t blockSize = m_param->maxCUSize >> cuGeom.depth; uint32_t 3247 source/encoder/analysis.cpp uint32_t cnt = 0; uint32_t 3248 source/encoder/analysis.cpp uint32_t idx; uint32_t 3250 source/encoder/analysis.cpp for (uint32_t block_yy = block_y; block_yy < block_y + blockSize && block_yy < height; block_yy += loopIncr) uint32_t 3252 source/encoder/analysis.cpp for (uint32_t block_xx = block_x; block_xx < block_x + blockSize && block_xx < width; block_xx += loopIncr) uint32_t 3277 source/encoder/analysis.cpp void Analysis::normFactor(const pixel* src, uint32_t blockSize, CUData& ctu, int qp, TextType ttype) uint32_t 3290 source/encoder/analysis.cpp for (uint32_t block_yy = 0; block_yy < blockSize; block_yy += 4) uint32_t 3292 source/encoder/analysis.cpp for (uint32_t block_xx = 0; block_xx < blockSize; block_xx += 4) uint32_t 3294 source/encoder/analysis.cpp uint32_t temp = src[block_yy * blockSize + block_xx] >> shift; uint32_t 3303 source/encoder/analysis.cpp for (uint32_t block_yy = 0; block_yy < blockSize; block_yy += 1) uint32_t 3305 source/encoder/analysis.cpp for (uint32_t block_xx = 0; block_xx < blockSize; block_xx += 1) uint32_t 3307 source/encoder/analysis.cpp uint32_t temp = src[block_yy * blockSize + block_xx] >> shift; uint32_t 3325 source/encoder/analysis.cpp uint32_t blockSize = m_modeDepth[0].fencYuv.m_size; uint32_t 3333 source/encoder/analysis.cpp uint32_t blockSizeC = m_modeDepth[0].fencYuv.m_csize; uint32_t 46 source/encoder/analysis.h uint32_t splitRefs; uint32_t 47 source/encoder/analysis.h uint32_t mvCost[2]; uint32_t 130 source/encoder/analysis.h uint32_t m_splitRefIdx[4]; uint32_t 151 source/encoder/analysis.h uint32_t compressInterCU_dist(const CUData& parentCTU, const CUGeom& cuGeom, int32_t qp); uint32_t 162 source/encoder/analysis.h void checkInter_rd0_4(Mode& interMode, const CUGeom& cuGeom, PartSize partSize, uint32_t refmask[2]); uint32_t 163 source/encoder/analysis.h void checkInter_rd5_6(Mode& interMode, const CUGeom& cuGeom, PartSize partSize, uint32_t refmask[2]); uint32_t 171 source/encoder/analysis.h void addSplitFlagCost(Mode& mode, uint32_t depth); uint32_t 174 source/encoder/analysis.h uint32_t topSkipMinDepth(const CUData& parentCTU, const CUGeom& cuGeom); uint32_t 184 source/encoder/analysis.h void normFactor(const pixel* src, uint32_t blockSize, CUData& ctu, int qp, TextType ttype); uint32_t 189 source/encoder/analysis.h inline void checkBestMode(Mode& mode, uint32_t depth) uint32_t 146 source/encoder/api.cpp int x265_encoder_headers(x265_encoder *enc, x265_nal **pp_nal, uint32_t *pi_nal) uint32_t 238 source/encoder/api.cpp int x265_encoder_encode(x265_encoder *enc, x265_nal **pp_nal, uint32_t *pi_nal, x265_picture *pic_in, x265_picture *pic_out) uint32_t 280 source/encoder/api.cpp void x265_encoder_get_stats(x265_encoder *enc, x265_stats *outputStats, uint32_t statsSizeBytes) uint32_t 357 source/encoder/api.cpp uint32_t widthInCU = (param->sourceWidth + param->maxCUSize - 1) >> param->maxLog2CUSize; uint32_t 358 source/encoder/api.cpp uint32_t heightInCU = (param->sourceHeight + param->maxCUSize - 1) >> param->maxLog2CUSize; uint32_t 360 source/encoder/api.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 48 source/encoder/bitcost.h inline uint32_t bitcost(const MV& mv) const uint32_t 50 source/encoder/bitcost.h return (uint32_t)(s_bitsizes[mv.x - m_mvp.x] + uint32_t 54 source/encoder/bitcost.h static inline uint32_t bitcost(const MV& mv, const MV& mvp) uint32_t 56 source/encoder/bitcost.h return (uint32_t)(s_bitsizes[mv.x - mvp.x] + uint32_t 110 source/encoder/dpb.cpp uint32_t widthInCU = (curFrame->m_param->sourceWidth + curFrame->m_param->maxCUSize - 1) >> curFrame->m_param->maxLog2CUSize; uint32_t 111 source/encoder/dpb.cpp uint32_t heightInCU = (curFrame->m_param->sourceHeight + curFrame->m_param->maxCUSize - 1) >> curFrame->m_param->maxLog2CUSize; uint32_t 112 source/encoder/dpb.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 113 source/encoder/dpb.cpp for (uint32_t i = 0; i < numCUsInFrame; i++) uint32_t 543 source/encoder/encoder.cpp uint32_t numBlocksInRow = slice->m_sps->numCuInWidth; uint32_t 1049 source/encoder/encoder.cpp uint32_t numCuInHeight = (frameEnc->m_encData->m_reconPic->m_picHeight + m_param->maxCUSize - 1) / m_param->maxCUSize; uint32_t 1053 source/encoder/encoder.cpp frameEnc->m_encData->m_meBuffer[i] = X265_MALLOC(uint32_t, frameEnc->m_reconPic->m_stride * (maxHeight + (2 * padY))); uint32_t 1056 source/encoder/encoder.cpp memset(frameEnc->m_encData->m_meBuffer[i], 0, sizeof(uint32_t)* frameEnc->m_reconPic->m_stride * (maxHeight + (2 * padY))); uint32_t 1114 source/encoder/encoder.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 1115 source/encoder/encoder.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 1117 source/encoder/encoder.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 1188 source/encoder/encoder.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 1189 source/encoder/encoder.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 1193 source/encoder/encoder.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 1194 source/encoder/encoder.cpp uint32_t maxNum8x8Partitions = 64; uint32_t 1229 source/encoder/encoder.cpp for (uint32_t i = 0; i < numCUsInFrame; i++) uint32_t 1240 source/encoder/encoder.cpp for (uint32_t j = 0; j < maxNum8x8Partitions; j++) uint32_t 1262 source/encoder/encoder.cpp for (uint32_t l = 0; l < numCUsInFrame; l++) uint32_t 1273 source/encoder/encoder.cpp for (uint32_t j = 0; j < maxNum8x8Partitions; j++) uint32_t 1287 source/encoder/encoder.cpp for (uint32_t i = 0; i < numCUsInFrame; i++) uint32_t 1450 source/encoder/encoder.cpp for (uint32_t i = 0; i <= m_param->maxCUDepth; i++) uint32_t 1783 source/encoder/encoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 1814 source/encoder/encoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 1955 source/encoder/encoder.cpp idsei.setSize((uint32_t)strlen(buffer)); uint32_t 2004 source/encoder/encoder.cpp uint32_t maxLog2TUSize = (uint32_t)g_log2Size[m_param->maxTUSize]; uint32_t 2005 source/encoder/encoder.cpp sps->quadtreeTULog2MaxSize = X265_MIN((uint32_t)m_param->maxLog2CUSize, maxLog2TUSize); uint32_t 2418 source/encoder/encoder.cpp uint32_t rem = (p->sourceWidth / 2) & (p->minCUSize - 1); uint32_t 2419 source/encoder/encoder.cpp uint32_t padsize = p->minCUSize - rem; uint32_t 2427 source/encoder/encoder.cpp uint32_t rem = p->sourceWidth & (p->minCUSize - 1); uint32_t 2428 source/encoder/encoder.cpp uint32_t padsize = p->minCUSize - rem; uint32_t 2607 source/encoder/encoder.cpp uint32_t rem = (p->sourceHeight / 2) & (p->minCUSize - 1); uint32_t 2608 source/encoder/encoder.cpp uint32_t padsize = p->minCUSize - rem; uint32_t 2615 source/encoder/encoder.cpp uint32_t rem = p->sourceHeight & (p->minCUSize - 1); uint32_t 2616 source/encoder/encoder.cpp uint32_t padsize = p->minCUSize - rem; uint32_t 2636 source/encoder/encoder.cpp const uint32_t numRows = (p->sourceHeight + p->maxCUSize - 1) / p->maxCUSize; uint32_t 2637 source/encoder/encoder.cpp const uint32_t slicesLimit = X265_MIN(numRows, NALList::MAX_NAL_UNITS - 1); uint32_t 2692 source/encoder/encoder.cpp uint32_t numPlanes = m_param->internalCsp == X265_CSP_I400 ? 1 : 3; uint32_t 2801 source/encoder/encoder.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 2802 source/encoder/encoder.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 2804 source/encoder/encoder.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 2880 source/encoder/encoder.cpp uint32_t depthBytes = 0; uint32_t 2887 source/encoder/encoder.cpp int poc; uint32_t frameRecordSize; uint32_t 2888 source/encoder/encoder.cpp X265_FREAD(&frameRecordSize, sizeof(uint32_t), 1, m_analysisFile, &(picData->frameRecordSize)); uint32_t 2889 source/encoder/encoder.cpp X265_FREAD(&depthBytes, sizeof(uint32_t), 1, m_analysisFile, &(picData->depthBytes)); uint32_t 2901 source/encoder/encoder.cpp X265_FREAD(&frameRecordSize, sizeof(uint32_t), 1, m_analysisFile, &(picData->frameRecordSize)); uint32_t 2902 source/encoder/encoder.cpp X265_FREAD(&depthBytes, sizeof(uint32_t), 1, m_analysisFile, &(picData->depthBytes)); uint32_t 2947 source/encoder/encoder.cpp for (uint32_t d = 0; d < depthBytes; d++) uint32_t 2971 source/encoder/encoder.cpp for (uint32_t ctu32Idx = 0, cnt = 0; ctu32Idx < analysis->numCUsInFrame * scaledNumPartition; ctu32Idx++, cnt += factor) uint32_t 2981 source/encoder/encoder.cpp uint32_t numDir = analysis->sliceType == X265_TYPE_P ? 1 : 2; uint32_t 2982 source/encoder/encoder.cpp uint32_t numPlanes = m_param->internalCsp == X265_CSP_I400 ? 1 : 3; uint32_t 3024 source/encoder/encoder.cpp for (uint32_t i = 0; i < numDir; i++) uint32_t 3037 source/encoder/encoder.cpp for (uint32_t d = 0; d < depthBytes; d++) uint32_t 3057 source/encoder/encoder.cpp for (uint32_t i = 0; i < numDir; i++) uint32_t 3080 source/encoder/encoder.cpp for (uint32_t i = 0; i < numDir; i++) uint32_t 3096 source/encoder/encoder.cpp for (uint32_t ctu32Idx = 0, cnt = 0; ctu32Idx < analysis->numCUsInFrame * scaledNumPartition; ctu32Idx++, cnt += factor) uint32_t 3124 source/encoder/encoder.cpp uint32_t depthBytes = 0; uint32_t 3125 source/encoder/encoder.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 3126 source/encoder/encoder.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 3127 source/encoder/encoder.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 3129 source/encoder/encoder.cpp int poc; uint32_t frameRecordSize; uint32_t 3130 source/encoder/encoder.cpp X265_FREAD(&frameRecordSize, sizeof(uint32_t), 1, m_analysisFileIn); uint32_t 3131 source/encoder/encoder.cpp X265_FREAD(&depthBytes, sizeof(uint32_t), 1, m_analysisFileIn); uint32_t 3152 source/encoder/encoder.cpp uint32_t ctuCount = 0; uint32_t 3154 source/encoder/encoder.cpp for (uint32_t d = 0; d < depthBytes; d++) uint32_t 3173 source/encoder/encoder.cpp for (uint32_t i = 0; i < numCUsInFrame; ++i) uint32_t 3207 source/encoder/encoder.cpp for (uint32_t d = 0; d < depthBytes; d++) uint32_t 3249 source/encoder/encoder.cpp uint32_t depthBytes = 0; uint32_t 3250 source/encoder/encoder.cpp uint32_t numDir, numPlanes; uint32_t 3267 source/encoder/encoder.cpp for (uint32_t cuAddr = 0; cuAddr < analysis->numCUsInFrame; cuAddr++) uint32_t 3276 source/encoder/encoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu->m_numPartitions; depthBytes++) uint32_t 3295 source/encoder/encoder.cpp for (uint32_t cuAddr = 0; cuAddr < analysis->numCUsInFrame; cuAddr++) uint32_t 3305 source/encoder/encoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu->m_numPartitions; depthBytes++) uint32_t 3322 source/encoder/encoder.cpp uint32_t numPU = (predMode == MODE_INTRA) ? 1 : nbPartsTable[(int)partSize]; uint32_t 3323 source/encoder/encoder.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++) uint32_t 3325 source/encoder/encoder.cpp uint32_t puabsPartIdx = ctu->getPUOffset(puIdx, absPartIdx) + absPartIdx; uint32_t 3332 source/encoder/encoder.cpp for (uint32_t dir = 0; dir < numDir; dir++) uint32_t 3378 source/encoder/encoder.cpp X265_FWRITE(&analysis->frameRecordSize, sizeof(uint32_t), 1, m_analysisFile); uint32_t 3379 source/encoder/encoder.cpp X265_FWRITE(&depthBytes, sizeof(uint32_t), 1, m_analysisFile); uint32_t 3411 source/encoder/encoder.cpp for (uint32_t dir = 0; dir < numDir; dir++) uint32_t 3439 source/encoder/encoder.cpp uint32_t depthBytes = 0; uint32_t 3440 source/encoder/encoder.cpp uint32_t widthInCU = (m_param->sourceWidth + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 3441 source/encoder/encoder.cpp uint32_t heightInCU = (m_param->sourceHeight + m_param->maxCUSize - 1) >> m_param->maxLog2CUSize; uint32_t 3442 source/encoder/encoder.cpp uint32_t numCUsInFrame = widthInCU * heightInCU; uint32_t 3445 source/encoder/encoder.cpp for (uint32_t cuAddr = 0; cuAddr < numCUsInFrame; cuAddr++) uint32_t 3451 source/encoder/encoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu->m_numPartitions; depthBytes++) uint32_t 3463 source/encoder/encoder.cpp for (uint32_t cuAddr = 0; cuAddr < numCUsInFrame; cuAddr++) uint32_t 3470 source/encoder/encoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu->m_numPartitions; depthBytes++) uint32_t 3504 source/encoder/encoder.cpp X265_FWRITE(&analysis2Pass->frameRecordSize, sizeof(uint32_t), 1, m_analysisFileOut); uint32_t 3505 source/encoder/encoder.cpp X265_FWRITE(&depthBytes, sizeof(uint32_t), 1, m_analysisFileOut); uint32_t 3506 source/encoder/encoder.cpp X265_FWRITE(&analysis2Pass->poc, sizeof(uint32_t), 1, m_analysisFileOut); uint32_t 53 source/encoder/encoder.h uint32_t m_numPics; uint32_t 104 source/encoder/encoder.h uint32_t m_residualSumEmergency[MAX_NUM_TR_CATEGORIES][MAX_NUM_TR_COEFFS]; uint32_t 105 source/encoder/encoder.h uint32_t m_countEmergency[MAX_NUM_TR_CATEGORIES]; uint32_t 127 source/encoder/encoder.h uint32_t m_numDelayedPic; uint32_t 246 source/encoder/entropy.cpp for (uint32_t i = 0; i < vps.maxTempSubLayers; i++) uint32_t 292 source/encoder/entropy.cpp for (uint32_t i = 0; i < sps.maxTempSubLayers; i++) uint32_t 395 source/encoder/entropy.cpp uint32_t bitDepthConstraint = ptl.bitDepthConstraint; uint32_t 517 source/encoder/entropy.cpp void Entropy::codeScalingList(const ScalingList& scalingList, uint32_t sizeId, uint32_t listId) uint32_t 586 source/encoder/entropy.cpp void Entropy::codeSliceHeader(const Slice& slice, FrameData& encData, uint32_t slice_addr, uint32_t slice_addr_bits, int sliceQp) uint32_t 714 source/encoder/entropy.cpp void Entropy::codeSliceHeaderWPPEntryPoints(const uint32_t *substreamSizes, uint32_t numSubStreams, uint32_t maxOffset) uint32_t 716 source/encoder/entropy.cpp uint32_t offsetLen = 1; uint32_t 727 source/encoder/entropy.cpp for (uint32_t i = 0; i < numSubStreams; i++) uint32_t 762 source/encoder/entropy.cpp void Entropy::encodeCU(const CUData& ctu, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t depth, bool& bEncodeDQP) uint32_t 771 source/encoder/entropy.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 774 source/encoder/entropy.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 788 source/encoder/entropy.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 791 source/encoder/entropy.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 822 source/encoder/entropy.cpp uint32_t tuDepthRange[2]; uint32_t 836 source/encoder/entropy.cpp uint32_t Entropy::bitsInterMode(const CUData& cu, uint32_t absPartIdx, uint32_t depth) const uint32_t 838 source/encoder/entropy.cpp uint32_t bits; uint32_t 884 source/encoder/entropy.cpp void Entropy::finishCU(const CUData& ctu, uint32_t absPartIdx, uint32_t depth, bool bCodeDQP) uint32_t 887 source/encoder/entropy.cpp uint32_t realEndAddress = slice->m_endCUAddr; uint32_t 888 source/encoder/entropy.cpp uint32_t cuAddr = ctu.getSCUAddr() + absPartIdx; uint32_t 891 source/encoder/entropy.cpp uint32_t granularityMask = ctu.m_encData->m_param->maxCUSize - 1; uint32_t 892 source/encoder/entropy.cpp uint32_t cuSize = 1 << ctu.m_log2CUSize[absPartIdx]; uint32_t 893 source/encoder/entropy.cpp uint32_t rpelx = ctu.m_cuPelX + g_zscanToPelX[absPartIdx] + cuSize; uint32_t 894 source/encoder/entropy.cpp uint32_t bpely = ctu.m_cuPelY + g_zscanToPelY[absPartIdx] + cuSize; uint32_t 904 source/encoder/entropy.cpp uint32_t bTerminateSlice = ctu.m_bLastCuInSlice; uint32_t 917 source/encoder/entropy.cpp void Entropy::encodeTransform(const CUData& cu, uint32_t absPartIdx, uint32_t curDepth, uint32_t log2CurSize, uint32_t 918 source/encoder/entropy.cpp bool& bCodeDQP, const uint32_t depthRange[2]) uint32_t 947 source/encoder/entropy.cpp uint32_t hChromaShift = cu.m_hChromaShift; uint32_t 948 source/encoder/entropy.cpp uint32_t vChromaShift = cu.m_vChromaShift; uint32_t 952 source/encoder/entropy.cpp uint32_t parentIdx = absPartIdx & (0xFF << (log2CurSize + 1 - LOG2_UNIT_SIZE) * 2); uint32_t 964 source/encoder/entropy.cpp uint32_t qNumParts = 1 << (log2CurSize - LOG2_UNIT_SIZE) * 2; uint32_t 973 source/encoder/entropy.cpp uint32_t absPartIdxC = bSmallChroma ? absPartIdx & 0xFC : absPartIdx; uint32_t 982 source/encoder/entropy.cpp uint32_t cbfY = cu.getCbf(absPartIdx, TEXT_LUMA, curDepth); uint32_t 983 source/encoder/entropy.cpp uint32_t cbfU = cu.getCbf(absPartIdxC, TEXT_CHROMA_U, curDepth); uint32_t 984 source/encoder/entropy.cpp uint32_t cbfV = cu.getCbf(absPartIdxC, TEXT_CHROMA_V, curDepth); uint32_t 991 source/encoder/entropy.cpp uint32_t log2CUSize = cu.m_log2CUSize[absPartIdx]; uint32_t 992 source/encoder/entropy.cpp uint32_t absPartIdxLT = absPartIdx & (0xFF << (log2CUSize - LOG2_UNIT_SIZE) * 2); uint32_t 999 source/encoder/entropy.cpp uint32_t coeffOffset = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 1010 source/encoder/entropy.cpp const uint32_t log2CurSizeC = 2; uint32_t 1012 source/encoder/entropy.cpp const uint32_t curPartNum = 4; uint32_t 1013 source/encoder/entropy.cpp uint32_t coeffOffsetC = absPartIdxC << (LOG2_UNIT_SIZE * 2 - (hChromaShift + vChromaShift)); uint32_t 1014 source/encoder/entropy.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 1022 source/encoder/entropy.cpp uint32_t subTUOffset = tuIterator.section << (log2CurSizeC * 2); uint32_t 1031 source/encoder/entropy.cpp uint32_t log2CurSizeC = log2CurSize - hChromaShift; uint32_t 1033 source/encoder/entropy.cpp uint32_t curPartNum = 1 << (log2CurSize - LOG2_UNIT_SIZE) * 2; uint32_t 1034 source/encoder/entropy.cpp uint32_t coeffOffsetC = absPartIdxC << (LOG2_UNIT_SIZE * 2 - (hChromaShift + vChromaShift)); uint32_t 1035 source/encoder/entropy.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 1043 source/encoder/entropy.cpp uint32_t subTUOffset = tuIterator.section << (log2CurSizeC * 2); uint32_t 1052 source/encoder/entropy.cpp void Entropy::encodeTransformLuma(const CUData& cu, uint32_t absPartIdx, uint32_t curDepth, uint32_t log2CurSize, uint32_t 1053 source/encoder/entropy.cpp bool& bCodeDQP, const uint32_t depthRange[2]) uint32_t 1087 source/encoder/entropy.cpp uint32_t qNumParts = 1 << (log2CurSize - LOG2_UNIT_SIZE) * 2; uint32_t 1103 source/encoder/entropy.cpp uint32_t cbfY = cu.getCbf(absPartIdx, TEXT_LUMA, curDepth); uint32_t 1111 source/encoder/entropy.cpp uint32_t log2CUSize = cu.m_log2CUSize[absPartIdx]; uint32_t 1112 source/encoder/entropy.cpp uint32_t absPartIdxLT = absPartIdx & (0xFF << (log2CUSize - LOG2_UNIT_SIZE) * 2); uint32_t 1119 source/encoder/entropy.cpp uint32_t coeffOffset = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 1125 source/encoder/entropy.cpp void Entropy::codePredInfo(const CUData& cu, uint32_t absPartIdx) uint32_t 1132 source/encoder/entropy.cpp uint32_t chromaDirMode[NUM_CHROMA_MODE]; uint32_t 1139 source/encoder/entropy.cpp uint32_t qNumParts = 1 << (cu.m_log2CUSize[absPartIdx] - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 1140 source/encoder/entropy.cpp for (uint32_t qIdx = 1; qIdx < 4; ++qIdx) uint32_t 1154 source/encoder/entropy.cpp void Entropy::codePUWise(const CUData& cu, uint32_t absPartIdx) uint32_t 1157 source/encoder/entropy.cpp uint32_t numPU = cu.getNumPartInter(absPartIdx); uint32_t 1159 source/encoder/entropy.cpp for (uint32_t puIdx = 0, subPartIdx = absPartIdx; puIdx < numPU; puIdx++, subPartIdx += cu.getPUOffset(puIdx, absPartIdx)) uint32_t 1169 source/encoder/entropy.cpp uint32_t interDir = cu.m_interDir[subPartIdx]; uint32_t 1170 source/encoder/entropy.cpp for (uint32_t list = 0; list < 2; list++) uint32_t 1186 source/encoder/entropy.cpp void Entropy::codeRefFrmIdxPU(const CUData& cu, uint32_t absPartIdx, int list) uint32_t 1194 source/encoder/entropy.cpp void Entropy::codeCoeff(const CUData& cu, uint32_t absPartIdx, bool& bCodeDQP, const uint32_t depthRange[2]) uint32_t 1204 source/encoder/entropy.cpp uint32_t log2CUSize = cu.m_log2CUSize[absPartIdx]; uint32_t 1243 source/encoder/entropy.cpp encodeBinsEP((uint32_t)(typeIdx), 2); uint32_t 1263 source/encoder/entropy.cpp encodeBinsEP((uint32_t)(typeIdx), 2); uint32_t 1294 source/encoder/entropy.cpp uint32_t mpState = (initState >= 64); uint32_t 1295 source/encoder/entropy.cpp uint32_t state = ((mpState ? (initState - 64) : (63 - initState)) << 1) + mpState; uint32_t 1351 source/encoder/entropy.cpp uint32_t totalSignalledWeightFlags = 0; uint32_t 1418 source/encoder/entropy.cpp void Entropy::writeUnaryMaxSymbol(uint32_t symbol, uint8_t* scmModel, int offset, uint32_t maxSymbol) uint32_t 1436 source/encoder/entropy.cpp void Entropy::writeEpExGolomb(uint32_t symbol, uint32_t count) uint32_t 1438 source/encoder/entropy.cpp uint32_t bins = 0; uint32_t 1441 source/encoder/entropy.cpp while (symbol >= (uint32_t)(1 << count)) uint32_t 1460 source/encoder/entropy.cpp void Entropy::writeCoefRemainExGolomb(uint32_t codeNumber, uint32_t absGoRice) uint32_t 1462 source/encoder/entropy.cpp uint32_t length; uint32_t 1463 source/encoder/entropy.cpp const uint32_t codeRemain = codeNumber & ((1 << absGoRice) - 1); uint32_t 1509 source/encoder/entropy.cpp void Entropy::codePartSize(const CUData& cu, uint32_t absPartIdx, uint32_t depth) uint32_t 1559 source/encoder/entropy.cpp void Entropy::codeMergeIndex(const CUData& cu, uint32_t absPartIdx) uint32_t 1561 source/encoder/entropy.cpp uint32_t numCand = cu.m_slice->m_maxNumMergeCand; uint32_t 1565 source/encoder/entropy.cpp uint32_t unaryIdx = cu.m_mvpIdx[0][absPartIdx]; // merge candidate index was stored in L0 MVP idx uint32_t 1572 source/encoder/entropy.cpp uint32_t mask = (1 << unaryIdx) - 2; uint32_t 1579 source/encoder/entropy.cpp void Entropy::codeIntraDirLumaAng(const CUData& cu, uint32_t absPartIdx, bool isMultiple) uint32_t 1581 source/encoder/entropy.cpp uint32_t dir[4], j; uint32_t 1582 source/encoder/entropy.cpp uint32_t preds[4][3]; uint32_t 1584 source/encoder/entropy.cpp uint32_t partNum = isMultiple && cu.m_partSize[absPartIdx] != SIZE_2Nx2N ? 4 : 1; uint32_t 1585 source/encoder/entropy.cpp uint32_t qNumParts = 1 << (cu.m_log2CUSize[absPartIdx] - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 1592 source/encoder/entropy.cpp for (uint32_t i = 0; i < 3; i++) uint32_t 1631 source/encoder/entropy.cpp void Entropy::codeIntraDirChroma(const CUData& cu, uint32_t absPartIdx, uint32_t *chromaDirMode) uint32_t 1633 source/encoder/entropy.cpp uint32_t intraDirChroma = cu.m_chromaIntraDir[absPartIdx]; uint32_t 1653 source/encoder/entropy.cpp void Entropy::codeInterDir(const CUData& cu, uint32_t absPartIdx) uint32_t 1655 source/encoder/entropy.cpp const uint32_t interDir = cu.m_interDir[absPartIdx] - 1; uint32_t 1656 source/encoder/entropy.cpp const uint32_t ctx = cu.m_cuDepth[absPartIdx]; // the context of the inter dir is the depth of the CU uint32_t 1664 source/encoder/entropy.cpp void Entropy::codeRefFrmIdx(const CUData& cu, uint32_t absPartIdx, int list) uint32_t 1666 source/encoder/entropy.cpp uint32_t refFrame = cu.m_refIdx[list][absPartIdx]; uint32_t 1672 source/encoder/entropy.cpp uint32_t refNum = cu.m_slice->m_numRefIdx[list] - 2; uint32_t 1680 source/encoder/entropy.cpp uint32_t mask = (1 << refFrame) - 2; uint32_t 1687 source/encoder/entropy.cpp void Entropy::codeMvd(const CUData& cu, uint32_t absPartIdx, int list) uint32_t 1698 source/encoder/entropy.cpp const uint32_t horAbs = 0 > hor ? -hor : hor; uint32_t 1699 source/encoder/entropy.cpp const uint32_t verAbs = 0 > ver ? -ver : ver; uint32_t 1724 source/encoder/entropy.cpp void Entropy::codeDeltaQP(const CUData& cu, uint32_t absPartIdx) uint32_t 1732 source/encoder/entropy.cpp uint32_t absDQp = (uint32_t)((dqp > 0) ? dqp : (-dqp)); uint32_t 1733 source/encoder/entropy.cpp uint32_t TUValue = X265_MIN((int)absDQp, CU_DQP_TU_CMAX); uint32_t 1740 source/encoder/entropy.cpp uint32_t sign = (dqp > 0 ? 0 : 1); uint32_t 1745 source/encoder/entropy.cpp void Entropy::codeQtCbfChroma(const CUData& cu, uint32_t absPartIdx, TextType ttype, uint32_t tuDepth, bool lowestLevel) uint32_t 1747 source/encoder/entropy.cpp uint32_t ctx = tuDepth + 2; uint32_t 1749 source/encoder/entropy.cpp uint32_t log2TrSize = cu.m_log2CUSize[absPartIdx] - tuDepth; uint32_t 1751 source/encoder/entropy.cpp uint32_t lowestTUDepth = tuDepth + ((!lowestLevel && !canQuadSplit) ? 1 : 0); // unsplittable TUs inherit their parent's CBF uint32_t 1755 source/encoder/entropy.cpp uint32_t subTUDepth = lowestTUDepth + 1; // if this is the lowest level of the TU-tree, the sub-TUs are directly below. uint32_t 1757 source/encoder/entropy.cpp uint32_t tuNumParts = 1 << ((log2TrSize - LOG2_UNIT_SIZE) * 2 - 1); uint32_t 1767 source/encoder/entropy.cpp uint32_t costCoeffRemain_c0(uint16_t *absCoeff, int numNonZero) uint32_t 1769 source/encoder/entropy.cpp uint32_t goRiceParam = 0; uint32_t 1771 source/encoder/entropy.cpp uint32_t baseLevelN = 0x5555AAAA; // 2-bits encode format baseLevel uint32_t 1773 source/encoder/entropy.cpp uint32_t sum = 0; uint32_t 1785 source/encoder/entropy.cpp uint32_t length = 0; uint32_t 1787 source/encoder/entropy.cpp codeNumber = ((uint32_t)codeNumber >> goRiceParam) - COEF_REMAIN_BIN_REDUCTION; uint32_t 1815 source/encoder/entropy.cpp void Entropy::codeCoeffNxN(const CUData& cu, const coeff_t* coeff, uint32_t absPartIdx, uint32_t log2TrSize, TextType ttype) uint32_t 1817 source/encoder/entropy.cpp uint32_t trSize = 1 << log2TrSize; uint32_t 1818 source/encoder/entropy.cpp uint32_t tqBypass = cu.m_tqBypass[absPartIdx]; uint32_t 1820 source/encoder/entropy.cpp uint32_t numSig = primitives.cu[log2TrSize - 2].count_nonzero(coeff); uint32_t 1841 source/encoder/entropy.cpp uint32_t posLast; uint32_t 1844 source/encoder/entropy.cpp X265_CHECK((uint32_t)((1 << (log2TrSize - MLS_CG_LOG2_SIZE)) - 1) == (((uint32_t)~0 >> (31 - log2TrSize + MLS_CG_LOG2_SIZE)) >> 1), "maskPosXY fault\n"); uint32_t 1865 source/encoder/entropy.cpp uint32_t packedSuffixBits = 0, packedSuffixLen = 0; uint32_t 1866 source/encoder/entropy.cpp uint32_t pos[2] = { (posLast & (trSize - 1)), (posLast >> log2TrSize) }; uint32_t 1873 source/encoder/entropy.cpp uint32_t maxGroupIdx = (log2TrSize << 1) - 1; uint32_t 1874 source/encoder/entropy.cpp X265_CHECK(((log2TrSize - 1) >> 2) == (uint32_t)(log2TrSize == 5), "ctxIdx check failure\n"); uint32_t 1875 source/encoder/entropy.cpp X265_CHECK((uint32_t)ctxShift == (bIsLuma ? ((log2TrSize + 1) >> 2) : log2TrSize - 2), "ctxShift check failure\n"); uint32_t 1878 source/encoder/entropy.cpp for (uint32_t i = 0; i < 2; i++, ctxIdx += NUM_CTX_LAST_FLAG_XY) uint32_t 1880 source/encoder/entropy.cpp uint32_t temp = g_lastCoeffTable[pos[i]]; uint32_t 1881 source/encoder/entropy.cpp uint32_t prefixOnes = temp & 15; uint32_t 1882 source/encoder/entropy.cpp uint32_t suffixLen = temp >> 4; uint32_t 1884 source/encoder/entropy.cpp for (uint32_t ctxLast = 0; ctxLast < prefixOnes; ctxLast++) uint32_t 1901 source/encoder/entropy.cpp uint32_t c1 = 1; uint32_t 1904 source/encoder/entropy.cpp uint32_t numNonZero = 1; uint32_t 1917 source/encoder/entropy.cpp const uint32_t subCoeffFlag = coeffFlag[subSet]; uint32_t 1918 source/encoder/entropy.cpp uint32_t scanFlagMask = subCoeffFlag; uint32_t 1929 source/encoder/entropy.cpp const int cgPosY = (uint32_t)cgBlkPos >> (log2TrSize - MLS_CG_LOG2_SIZE); uint32_t 1937 source/encoder/entropy.cpp uint32_t sigCoeffGroup = ((sigCoeffGroupFlag64 & cgBlkPosMask) != 0); uint32_t 1938 source/encoder/entropy.cpp uint32_t ctxSig = Quant::getSigCoeffGroupCtxInc(sigCoeffGroupFlag64, cgPosX, cgPosY, cgBlkPos, (trSize >> MLS_CG_LOG2_SIZE)); uint32_t 1947 source/encoder/entropy.cpp const uint32_t posOffset = (bIsLuma && subSet) ? 3 : 0; uint32_t 1990 source/encoder/entropy.cpp const uint32_t blkPosBase = codingParameters.scan[subPosBase]; uint32_t 2010 source/encoder/entropy.cpp uint32_t blkPos, sig, ctxSig; uint32_t 2014 source/encoder/entropy.cpp X265_CHECK((uint32_t)(tmpCoeff[blkPos] != 0) == sig, "sign bit mistake\n"); uint32_t 2030 source/encoder/entropy.cpp const uint8_t *tabSigCtx = table_cnt[(uint32_t)patternSigCtx]; uint32_t 2033 source/encoder/entropy.cpp uint32_t blkPos, sig, ctxSig; uint32_t 2035 source/encoder/entropy.cpp const uint32_t posZeroMask = (subPosBase + scanPosSigOff) ? ~0 : 0; uint32_t 2038 source/encoder/entropy.cpp X265_CHECK((uint32_t)(tmpCoeff[blkPos] != 0) == sig, "sign bit mistake\n"); uint32_t 2041 source/encoder/entropy.cpp const uint32_t cnt = tabSigCtx[blkPos] + offset; uint32_t 2057 source/encoder/entropy.cpp const uint8_t *tabSigCtx = table_cnt[(log2TrSize == 2) ? 4 : (uint32_t)patternSigCtx]; uint32_t 2059 source/encoder/entropy.cpp uint32_t sum = primitives.costCoeffNxN(g_scan4x4[codingParameters.scanType], &coeff[blkPosBase], (intptr_t)trSize, absCoeff + numNonZero, tabSigCtx, scanFlagMask, baseCtx, offset + posOffset, scanPosSigOff, subPosBase); uint32_t 2070 source/encoder/entropy.cpp uint32_t coeffSigns = coeffSign[subSet]; uint32_t 2074 source/encoder/entropy.cpp uint32_t idx; uint32_t 2086 source/encoder/entropy.cpp uint32_t numC1Flag = X265_MIN(numNonZero, C1FLAG_NUMBER); uint32_t 2091 source/encoder/entropy.cpp uint32_t sum = primitives.costC1C2Flag(absCoeff, numC1Flag, baseCtxMod, (bIsLuma ? 0 : NUM_ABS_FLAG_CTX_LUMA - NUM_ONE_FLAG_CTX_LUMA) + (OFF_ABS_FLAG_CTX - OFF_ONE_FLAG_CTX) - 3 * ctxSet); uint32_t 2092 source/encoder/entropy.cpp uint32_t firstC2Idx = (sum >> 28); uint32_t 2110 source/encoder/entropy.cpp uint32_t firstC2Idx = 8; uint32_t 2111 source/encoder/entropy.cpp uint32_t firstC2Flag = 2; uint32_t 2112 source/encoder/entropy.cpp uint32_t c1Next = 0xFFFFFFFE; uint32_t 2117 source/encoder/entropy.cpp const uint32_t symbol1 = absCoeff[idx] > 1; uint32_t 2118 source/encoder/entropy.cpp const uint32_t symbol2 = absCoeff[idx] > 2; uint32_t 2148 source/encoder/entropy.cpp uint32_t goRiceParam = 0; uint32_t 2150 source/encoder/entropy.cpp uint32_t threshold = COEF_REMAIN_BIN_REDUCTION; uint32_t 2165 source/encoder/entropy.cpp X265_CHECK(threshold == (uint32_t)(COEF_REMAIN_BIN_REDUCTION << goRiceParam), "COEF_REMAIN_BIN_REDUCTION check failure\n"); uint32_t 2188 source/encoder/entropy.cpp void Entropy::codeSaoMaxUvlc(uint32_t code, uint32_t maxSymbol) uint32_t 2192 source/encoder/entropy.cpp uint32_t isCodeNonZero = !!code; uint32_t 2197 source/encoder/entropy.cpp uint32_t isCodeLast = (maxSymbol > code); uint32_t 2198 source/encoder/entropy.cpp uint32_t mask = (1 << (code - 1)) - 1; uint32_t 2199 source/encoder/entropy.cpp uint32_t len = code - 1 + isCodeLast; uint32_t 2207 source/encoder/entropy.cpp void Entropy::estBit(EstBitsSbac& estBitsSbac, uint32_t log2TrSize, bool bIsLuma) const uint32_t 2225 source/encoder/entropy.cpp for (uint32_t ctxInc = 0; ctxInc < NUM_QT_CBF_CTX; ctxInc++) uint32_t 2243 source/encoder/entropy.cpp for (uint32_t bin = 0; bin < 2; bin++) uint32_t 2248 source/encoder/entropy.cpp void Entropy::estSignificantMapBit(EstBitsSbac& estBitsSbac, uint32_t log2TrSize, bool bIsLuma) const uint32_t 2274 source/encoder/entropy.cpp const uint32_t maxGroupIdx = log2TrSize * 2 - 1; uint32_t 2284 source/encoder/entropy.cpp for (uint32_t ctx = 0; ctx < 3; ctx++) uint32_t 2303 source/encoder/entropy.cpp for (uint32_t ctx = 0; ctx < (maxGroupIdx >> 1) + 1; ctx++) uint32_t 2326 source/encoder/entropy.cpp for (uint32_t ctx = 0; ctx < maxGroupIdx; ctx++) uint32_t 2444 source/encoder/entropy.cpp void Entropy::encodeBin(uint32_t binValue, uint8_t &ctxModel) uint32_t 2446 source/encoder/entropy.cpp uint32_t mstate = ctxModel; uint32_t 2456 source/encoder/entropy.cpp uint32_t range = m_range; uint32_t 2457 source/encoder/entropy.cpp uint32_t state = sbacGetState(mstate); uint32_t 2458 source/encoder/entropy.cpp uint32_t lps = g_lpsTable[state][((uint8_t)range >> 6)]; uint32_t 2463 source/encoder/entropy.cpp int numBits = (uint32_t)(range - 256) >> 31; uint32_t 2464 source/encoder/entropy.cpp uint32_t low = m_low; uint32_t 2467 source/encoder/entropy.cpp X265_CHECK((uint32_t)((binValue ^ mstate) & 1) == (uint32_t)(binValue != sbacGetMps(mstate)), "binValue failure\n"); uint32_t 2493 source/encoder/entropy.cpp void Entropy::encodeBinEP(uint32_t binValue) uint32_t 2510 source/encoder/entropy.cpp void Entropy::encodeBinsEP(uint32_t binValues, int numBins) uint32_t 2521 source/encoder/entropy.cpp uint32_t pattern = binValues >> numBins; uint32_t 2540 source/encoder/entropy.cpp void Entropy::encodeBinTrm(uint32_t binValue) uint32_t 2572 source/encoder/entropy.cpp uint32_t leadByte = m_low >> (13 + m_bitsLeft); uint32_t 2573 source/encoder/entropy.cpp uint32_t low_mask = (uint32_t)(~0) >> (11 + 8 - m_bitsLeft); uint32_t 2582 source/encoder/entropy.cpp uint32_t numBufferedBytes = m_numBufferedBytes; uint32_t 2585 source/encoder/entropy.cpp uint32_t carry = leadByte >> 8; uint32_t 2586 source/encoder/entropy.cpp uint32_t byteTowrite = m_bufferedByte + carry; uint32_t 2601 source/encoder/entropy.cpp const uint32_t g_entropyBits[128] = uint32_t 2637 source/encoder/entropy.cpp extern "C" const uint32_t PFX(entropyStateBits)[128] = uint32_t 52 source/encoder/entropy.h uint32_t section; uint32_t 53 source/encoder/entropy.h uint32_t splitMode; uint32_t 54 source/encoder/entropy.h uint32_t absPartIdxTURelCU; uint32_t 55 source/encoder/entropy.h uint32_t absPartIdxStep; uint32_t 57 source/encoder/entropy.h TURecurse(SplitType splitType, uint32_t _absPartIdxStep, uint32_t _absPartIdxTU) uint32_t 59 source/encoder/entropy.h static const uint32_t partIdxStepShift[NUMBER_OF_SPLIT_MODES] = { 0, 1, 2 }; uint32_t 62 source/encoder/entropy.h splitMode = (uint32_t)splitType; uint32_t 78 source/encoder/entropy.h return section < (uint32_t)(1 << splitMode); uint32_t 84 source/encoder/entropy.h return (section + 1) >= (uint32_t)(1 << splitMode); uint32_t 107 source/encoder/entropy.h uint32_t m_low; uint32_t 108 source/encoder/entropy.h uint32_t m_range; uint32_t 109 source/encoder/entropy.h uint32_t m_bufferedByte; uint32_t 120 source/encoder/entropy.h uint32_t getNumberOfWrittenBits() uint32_t 123 source/encoder/entropy.h return (uint32_t)(m_fracBits >> 15); uint32_t 151 source/encoder/entropy.h void codeSliceHeader(const Slice& slice, FrameData& encData, uint32_t slice_addr, uint32_t slice_addr_bits, int sliceQp); uint32_t 152 source/encoder/entropy.h void codeSliceHeaderWPPEntryPoints(const uint32_t *substreamSizes, uint32_t numSubStreams, uint32_t maxOffset); uint32_t 158 source/encoder/entropy.h void codeIntraDirLumaAng(const CUData& cu, uint32_t absPartIdx, bool isMultiple); uint32_t 159 source/encoder/entropy.h void codeIntraDirChroma(const CUData& cu, uint32_t absPartIdx, uint32_t *chromaDirMode); uint32_t 161 source/encoder/entropy.h void codeMergeIndex(const CUData& cu, uint32_t absPartIdx); uint32_t 162 source/encoder/entropy.h void codeMvd(const CUData& cu, uint32_t absPartIdx, int list); uint32_t 164 source/encoder/entropy.h void codePartSize(const CUData& cu, uint32_t absPartIdx, uint32_t depth); uint32_t 165 source/encoder/entropy.h void codePredInfo(const CUData& cu, uint32_t absPartIdx); uint32_t 167 source/encoder/entropy.h void codeQtCbfChroma(const CUData& cu, uint32_t absPartIdx, TextType ttype, uint32_t tuDepth, bool lowestLevel); uint32_t 168 source/encoder/entropy.h void codeCoeff(const CUData& cu, uint32_t absPartIdx, bool& bCodeDQP, const uint32_t depthRange[2]); uint32_t 169 source/encoder/entropy.h void codeCoeffNxN(const CUData& cu, const coeff_t* coef, uint32_t absPartIdx, uint32_t log2TrSize, TextType ttype); uint32_t 171 source/encoder/entropy.h inline void codeSaoMerge(uint32_t code) { encodeBin(code, m_contextState[OFF_SAO_MERGE_FLAG_CTX]); } uint32_t 172 source/encoder/entropy.h inline void codeSaoType(uint32_t code) { encodeBin(code, m_contextState[OFF_SAO_TYPE_IDX_CTX]); } uint32_t 173 source/encoder/entropy.h inline void codeMVPIdx(uint32_t symbol) { encodeBin(symbol, m_contextState[OFF_MVP_IDX_CTX]); } uint32_t 174 source/encoder/entropy.h inline void codeMergeFlag(const CUData& cu, uint32_t absPartIdx) { encodeBin(cu.m_mergeFlag[absPartIdx], m_contextState[OFF_MERGE_FLAG_EXT_CTX]); } uint32_t 175 source/encoder/entropy.h inline void codeSkipFlag(const CUData& cu, uint32_t absPartIdx) { encodeBin(cu.isSkipped(absPartIdx), m_contextState[OFF_SKIP_FLAG_CTX + cu.getCtxSkipFlag(absPartIdx)]); } uint32_t 176 source/encoder/entropy.h inline void codeSplitFlag(const CUData& cu, uint32_t absPartIdx, uint32_t depth) { encodeBin(cu.m_cuDepth[absPartIdx] > depth, m_contextState[OFF_SPLIT_FLAG_CTX + cu.getCtxSplitFlag(absPartIdx, depth)]); } uint32_t 177 source/encoder/entropy.h inline void codeTransformSubdivFlag(uint32_t symbol, uint32_t ctx) { encodeBin(symbol, m_contextState[OFF_TRANS_SUBDIV_FLAG_CTX + ctx]); } uint32_t 179 source/encoder/entropy.h inline void codeCUTransquantBypassFlag(uint32_t symbol) { encodeBin(symbol, m_contextState[OFF_TQUANT_BYPASS_FLAG_CTX]); } uint32_t 180 source/encoder/entropy.h inline void codeQtCbfLuma(uint32_t cbf, uint32_t tuDepth) { encodeBin(cbf, m_contextState[OFF_QT_CBF_CTX + !tuDepth]); } uint32_t 181 source/encoder/entropy.h inline void codeQtCbfChroma(uint32_t cbf, uint32_t tuDepth) { encodeBin(cbf, m_contextState[OFF_QT_CBF_CTX + 2 + tuDepth]); } uint32_t 182 source/encoder/entropy.h inline void codeQtRootCbf(uint32_t cbf) { encodeBin(cbf, m_contextState[OFF_QT_ROOT_CBF_CTX]); } uint32_t 183 source/encoder/entropy.h inline void codeTransformSkipFlags(uint32_t transformSkip, TextType ttype) { encodeBin(transformSkip, m_contextState[OFF_TRANSFORMSKIP_FLAG_CTX + (ttype ? NUM_TRANSFORMSKIP_FLAG_CTX : 0)]); } uint32_t 184 source/encoder/entropy.h void codeDeltaQP(const CUData& cu, uint32_t absPartIdx); uint32_t 190 source/encoder/entropy.h void estBit(EstBitsSbac& estBitsSbac, uint32_t log2TrSize, bool bIsLuma) const; uint32_t 193 source/encoder/entropy.h void estSignificantMapBit(EstBitsSbac& estBitsSbac, uint32_t log2TrSize, bool bIsLuma) const; uint32_t 196 source/encoder/entropy.h inline uint32_t bitsIntraModeNonMPM() const { return bitsCodeBin(0, m_contextState[OFF_ADI_CTX]) + 5; } uint32_t 197 source/encoder/entropy.h inline uint32_t bitsIntraModeMPM(const uint32_t preds[3], uint32_t dir) const { return bitsCodeBin(1, m_contextState[OFF_ADI_CTX]) + (dir == preds[0] ? 1 : 2); } uint32_t 198 source/encoder/entropy.h inline uint32_t estimateCbfBits(uint32_t cbf, TextType ttype, uint32_t tuDepth) const { return bitsCodeBin(cbf, m_contextState[OFF_QT_CBF_CTX + ctxCbf[ttype][tuDepth]]); } uint32_t 199 source/encoder/entropy.h uint32_t bitsInterMode(const CUData& cu, uint32_t absPartIdx, uint32_t depth) const; uint32_t 200 source/encoder/entropy.h uint32_t bitsIntraMode(const CUData& cu, uint32_t absPartIdx) const uint32_t 215 source/encoder/entropy.h void encodeBin(uint32_t binValue, uint8_t& ctxModel); uint32_t 216 source/encoder/entropy.h void encodeBinEP(uint32_t binValue); uint32_t 217 source/encoder/entropy.h void encodeBinsEP(uint32_t binValues, int numBins); uint32_t 218 source/encoder/entropy.h void encodeBinTrm(uint32_t binValue); uint32_t 221 source/encoder/entropy.h inline uint32_t bitsCodeBin(uint32_t binValue, uint32_t ctxModel) const uint32_t 224 source/encoder/entropy.h return (uint32_t)(fracBits >> 15); uint32_t 227 source/encoder/entropy.h void encodeCU(const CUData& ctu, const CUGeom &cuGeom, uint32_t absPartIdx, uint32_t depth, bool& bEncodeDQP); uint32_t 228 source/encoder/entropy.h void finishCU(const CUData& ctu, uint32_t absPartIdx, uint32_t depth, bool bEncodeDQP); uint32_t 233 source/encoder/entropy.h void writeUnaryMaxSymbol(uint32_t symbol, uint8_t* scmModel, int offset, uint32_t maxSymbol); uint32_t 234 source/encoder/entropy.h void writeEpExGolomb(uint32_t symbol, uint32_t count); uint32_t 235 source/encoder/entropy.h void writeCoefRemainExGolomb(uint32_t symbol, const uint32_t absGoRice); uint32_t 239 source/encoder/entropy.h void codeScalingList(const ScalingList& scalingList, uint32_t sizeId, uint32_t listId); uint32_t 242 source/encoder/entropy.h void codeInterDir(const CUData& cu, uint32_t absPartIdx); uint32_t 243 source/encoder/entropy.h void codePUWise(const CUData& cu, uint32_t absPartIdx); uint32_t 244 source/encoder/entropy.h void codeRefFrmIdxPU(const CUData& cu, uint32_t absPartIdx, int list); uint32_t 245 source/encoder/entropy.h void codeRefFrmIdx(const CUData& cu, uint32_t absPartIdx, int list); uint32_t 247 source/encoder/entropy.h void codeSaoMaxUvlc(uint32_t code, uint32_t maxSymbol); uint32_t 249 source/encoder/entropy.h void codeLastSignificantXY(uint32_t posx, uint32_t posy, uint32_t log2TrSize, bool bIsLuma, uint32_t scanIdx); uint32_t 251 source/encoder/entropy.h void encodeTransform(const CUData& cu, uint32_t absPartIdx, uint32_t tuDepth, uint32_t log2TrSize, uint32_t 252 source/encoder/entropy.h bool& bCodeDQP, const uint32_t depthRange[2]); uint32_t 253 source/encoder/entropy.h void encodeTransformLuma(const CUData& cu, uint32_t absPartIdx, uint32_t tuDepth, uint32_t log2TrSize, uint32_t 254 source/encoder/entropy.h bool& bCodeDQP, const uint32_t depthRange[2]); uint32_t 119 source/encoder/frameencoder.cpp m_sliceBaseRow = X265_MALLOC(uint32_t, m_param->maxSlices + 1); uint32_t 178 source/encoder/frameencoder.cpp m_ctuGeomMap = X265_MALLOC(uint32_t, m_numRows * m_numCols); uint32_t 185 source/encoder/frameencoder.cpp memset(m_ctuGeomMap, 0, sizeof(uint32_t) * m_numRows * m_numCols); uint32_t 194 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numRows; i++) uint32_t 196 source/encoder/frameencoder.cpp uint32_t ctuAddr = m_numCols * (i + 1) - 1; uint32_t 205 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numCols; i++) uint32_t 207 source/encoder/frameencoder.cpp uint32_t ctuAddr = m_numCols * (m_numRows - 1) + i; uint32_t 217 source/encoder/frameencoder.cpp uint32_t ctuAddr = m_numCols * m_numRows - 1; uint32_t 316 source/encoder/frameencoder.cpp uint32_t getBsLength( int32_t code ) uint32_t 318 source/encoder/frameencoder.cpp uint32_t ucode = (code <= 0) ? -code << 1 : (code << 1) - 1; uint32_t 323 source/encoder/frameencoder.cpp uint32_t length = (uint32_t)idx * 2 + 1; uint32_t 553 source/encoder/frameencoder.cpp const uint32_t sliceGroupSize = (m_numRows + m_param->maxSlices - 1) / m_param->maxSlices; uint32_t 554 source/encoder/frameencoder.cpp const uint32_t sliceGroupSizeAccu = (m_numRows << 8) / m_param->maxSlices; uint32_t 557 source/encoder/frameencoder.cpp uint32_t rowSum = sliceGroupSizeAccu; uint32_t 558 source/encoder/frameencoder.cpp uint32_t sidx = 0; uint32_t 559 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numRows; i++) uint32_t 561 source/encoder/frameencoder.cpp const uint32_t rowRange = (rowSum >> 8); uint32_t 576 source/encoder/frameencoder.cpp uint32_t numSubstreams = m_param->bEnableWavefront ? slice->m_sps->numCuInHeight : m_param->maxSlices; uint32_t 583 source/encoder/frameencoder.cpp m_substreamSizes = X265_MALLOC(uint32_t, numSubstreams); uint32_t 585 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < numSubstreams; i++) uint32_t 589 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < numSubstreams; i++) uint32_t 700 source/encoder/frameencoder.cpp for (uint32_t sliceId = 0; sliceId < m_param->maxSlices; sliceId++) uint32_t 707 source/encoder/frameencoder.cpp for (uint32_t rowInSlice = 0; rowInSlice < m_sliceGroupSize; rowInSlice++) uint32_t 709 source/encoder/frameencoder.cpp for (uint32_t sliceId = 0; sliceId < m_param->maxSlices; sliceId++) uint32_t 711 source/encoder/frameencoder.cpp const uint32_t sliceStartRow = m_sliceBaseRow[sliceId]; uint32_t 712 source/encoder/frameencoder.cpp const uint32_t sliceEndRow = m_sliceBaseRow[sliceId + 1] - 1; uint32_t 713 source/encoder/frameencoder.cpp const uint32_t row = sliceStartRow + rowInSlice; uint32_t 756 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numRows + m_filterRowDelay; i++) uint32_t 794 source/encoder/frameencoder.cpp uint32_t height = reconPic->m_picHeight; uint32_t 795 source/encoder/frameencoder.cpp uint32_t width = reconPic->m_picWidth; uint32_t 797 source/encoder/frameencoder.cpp const uint32_t hChromaShift = CHROMA_H_SHIFT(m_param->internalCsp); uint32_t 798 source/encoder/frameencoder.cpp const uint32_t vChromaShift = CHROMA_V_SHIFT(m_param->internalCsp); uint32_t 840 source/encoder/frameencoder.cpp uint32_t cuHeight = m_param->maxCUSize; uint32_t 866 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numRows; i++) uint32_t 883 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_numRows; i++) uint32_t 893 source/encoder/frameencoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 905 source/encoder/frameencoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 940 source/encoder/frameencoder.cpp uint32_t nextSliceRow = 0; uint32_t 942 source/encoder/frameencoder.cpp for(uint32_t sliceId = 0; sliceId < m_param->maxSlices; sliceId++) uint32_t 946 source/encoder/frameencoder.cpp const uint32_t sliceAddr = nextSliceRow * m_numCols; uint32_t 957 source/encoder/frameencoder.cpp const uint32_t prevSliceRow = nextSliceRow; uint32_t 962 source/encoder/frameencoder.cpp uint32_t maxStreamSize = m_nalList.serializeSubstreams(&m_substreamSizes[prevSliceRow], (nextSliceRow - prevSliceRow), &m_outStreams[prevSliceRow]); uint32_t 985 source/encoder/frameencoder.cpp uint32_t maxStreamSize = m_nalList.serializeSubstreams(m_substreamSizes, numSubstreams, m_outStreams); uint32_t 1030 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < m_nalList.m_numNal; i++) uint32_t 1103 source/encoder/frameencoder.cpp memset(nr->nrCount, 0, sizeof(uint32_t)* MAX_NUM_TR_CATEGORIES); uint32_t 1104 source/encoder/frameencoder.cpp memset(nr->nrResidualSum, 0, sizeof(uint32_t)* MAX_NUM_TR_CATEGORIES * MAX_NUM_TR_COEFFS); uint32_t 1119 source/encoder/frameencoder.cpp void FrameEncoder::encodeSlice(uint32_t sliceAddr) uint32_t 1122 source/encoder/frameencoder.cpp const uint32_t widthInLCUs = slice->m_sps->numCuInWidth; uint32_t 1123 source/encoder/frameencoder.cpp const uint32_t lastCUAddr = (slice->m_endCUAddr + m_param->num4x4Partitions - 1) / m_param->num4x4Partitions; uint32_t 1124 source/encoder/frameencoder.cpp const uint32_t numSubstreams = m_param->bEnableWavefront ? slice->m_sps->numCuInHeight : 1; uint32_t 1127 source/encoder/frameencoder.cpp for (uint32_t cuAddr = sliceAddr; cuAddr < lastCUAddr; cuAddr++) uint32_t 1129 source/encoder/frameencoder.cpp uint32_t col = cuAddr % widthInLCUs; uint32_t 1130 source/encoder/frameencoder.cpp uint32_t row = cuAddr / widthInLCUs; uint32_t 1131 source/encoder/frameencoder.cpp uint32_t subStrm = row % numSubstreams; uint32_t 1199 source/encoder/frameencoder.cpp const uint32_t realRow = row >> 1; uint32_t 1200 source/encoder/frameencoder.cpp const uint32_t typeNum = row & 1; uint32_t 1222 source/encoder/frameencoder.cpp const uint32_t row = (uint32_t)intRow; uint32_t 1251 source/encoder/frameencoder.cpp const uint32_t numCols = m_numCols; uint32_t 1252 source/encoder/frameencoder.cpp const uint32_t lineStartCUAddr = row * numCols; uint32_t 1255 source/encoder/frameencoder.cpp uint32_t maxBlockCols = (m_frame->m_fencPic->m_picWidth + (16 - 1)) / 16; uint32_t 1256 source/encoder/frameencoder.cpp uint32_t maxBlockRows = (m_frame->m_fencPic->m_picHeight + (16 - 1)) / 16; uint32_t 1257 source/encoder/frameencoder.cpp uint32_t noOfBlocks = m_param->maxCUSize / 16; uint32_t 1258 source/encoder/frameencoder.cpp const uint32_t bFirstRowInSlice = ((row == 0) || (m_rows[row - 1].sliceId != curRow.sliceId)) ? 1 : 0; uint32_t 1259 source/encoder/frameencoder.cpp const uint32_t bLastRowInSlice = ((row == m_numRows - 1) || (m_rows[row + 1].sliceId != curRow.sliceId)) ? 1 : 0; uint32_t 1260 source/encoder/frameencoder.cpp const uint32_t sliceId = curRow.sliceId; uint32_t 1261 source/encoder/frameencoder.cpp const uint32_t endRowInSlicePlus1 = m_sliceBaseRow[sliceId + 1]; uint32_t 1262 source/encoder/frameencoder.cpp const uint32_t rowInSlice = row - m_sliceBaseRow[sliceId]; uint32_t 1282 source/encoder/frameencoder.cpp uint32_t loopIncr, count = 0; uint32_t 1291 source/encoder/frameencoder.cpp uint32_t cuYStart = 0, height = m_frame->m_fencPic->m_picHeight; uint32_t 1298 source/encoder/frameencoder.cpp uint32_t qgSize = m_param->rc.qgSize, width = m_frame->m_fencPic->m_picWidth; uint32_t 1299 source/encoder/frameencoder.cpp uint32_t maxOffsetCols = (m_frame->m_fencPic->m_picWidth + (loopIncr - 1)) / loopIncr; uint32_t 1300 source/encoder/frameencoder.cpp for (uint32_t cuY = cuYStart; cuY < height && (cuY < m_frame->m_fencPic->m_picHeight); cuY += qgSize) uint32_t 1302 source/encoder/frameencoder.cpp for (uint32_t cuX = 0; cuX < width; cuX += qgSize) uint32_t 1305 source/encoder/frameencoder.cpp uint32_t cnt = 0; uint32_t 1307 source/encoder/frameencoder.cpp for (uint32_t block_yy = cuY; block_yy < cuY + qgSize && block_yy < m_frame->m_fencPic->m_picHeight; block_yy += loopIncr) uint32_t 1309 source/encoder/frameencoder.cpp for (uint32_t block_xx = cuX; block_xx < cuX + qgSize && block_xx < width; block_xx += loopIncr) uint32_t 1348 source/encoder/frameencoder.cpp const uint32_t col = curRow.completed; uint32_t 1349 source/encoder/frameencoder.cpp const uint32_t cuAddr = lineStartCUAddr + col; uint32_t 1351 source/encoder/frameencoder.cpp const uint32_t bLastCuInSlice = (bLastRowInSlice & (col == numCols - 1)) ? 1 : 0; uint32_t 1377 source/encoder/frameencoder.cpp uint32_t block_y = (ctu->m_cuPelY >> m_param->maxLog2CUSize) * noOfBlocks; uint32_t 1378 source/encoder/frameencoder.cpp uint32_t block_x = (ctu->m_cuPelX >> m_param->maxLog2CUSize) * noOfBlocks; uint32_t 1382 source/encoder/frameencoder.cpp for (uint32_t h = 0; h < noOfBlocks && block_y < maxBlockRows; h++, block_y++) uint32_t 1384 source/encoder/frameencoder.cpp uint32_t idx = block_x + (block_y * maxBlockCols); uint32_t 1386 source/encoder/frameencoder.cpp for (uint32_t w = 0; w < noOfBlocks && (block_x + w) < maxBlockCols; w++, idx++) uint32_t 1489 source/encoder/frameencoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 1512 source/encoder/frameencoder.cpp for (uint32_t depth = 0; depth <= m_param->maxCUDepth; depth++) uint32_t 1605 source/encoder/frameencoder.cpp for (uint32_t r = m_numRows - 1; r >= row; r--) uint32_t 1709 source/encoder/frameencoder.cpp uint32_t rowCount = 0; uint32_t 1714 source/encoder/frameencoder.cpp else if ((uint32_t)m_rce.encodeOrder <= 2 * (m_param->fpsNum / m_param->fpsDenom)) uint32_t 1722 source/encoder/frameencoder.cpp for (uint32_t i = 0; i < rowCount; i++) uint32_t 1725 source/encoder/frameencoder.cpp for (uint32_t cuAddr = 0; cuAddr < rowCount * numCols; cuAddr++) uint32_t 1768 source/encoder/frameencoder.cpp for (uint32_t i = endRowInSlicePlus1 - m_filterRowDelay; i < endRowInSlicePlus1; i++) uint32_t 1794 source/encoder/frameencoder.cpp uint32_t depth = 0; uint32_t 1795 source/encoder/frameencoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu.m_numPartitions; absPartIdx += ctu.m_numPartitions >> (depth * 2)) uint32_t 1806 source/encoder/frameencoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu.m_numPartitions; absPartIdx += ctu.m_numPartitions >> (depth * 2)) uint32_t 1834 source/encoder/frameencoder.cpp for (uint32_t absPartIdx = 0; absPartIdx < ctu.m_numPartitions; absPartIdx += ctu.m_numPartitions >> (depth * 2)) uint32_t 1884 source/encoder/frameencoder.cpp static const uint32_t maxBlocksPerTrSize[4] = {1 << 18, 1 << 16, 1 << 14, 1 << 12}; uint32_t 97 source/encoder/frameencoder.h volatile uint32_t completed; uint32_t 98 source/encoder/frameencoder.h volatile uint32_t avgQPComputed; uint32_t 142 source/encoder/frameencoder.h uint32_t m_numRows; uint32_t 143 source/encoder/frameencoder.h uint32_t m_numCols; uint32_t 144 source/encoder/frameencoder.h uint32_t m_filterRowDelay; uint32_t 145 source/encoder/frameencoder.h uint32_t m_filterRowDelayCus; uint32_t 146 source/encoder/frameencoder.h uint32_t m_refLagRows; uint32_t 151 source/encoder/frameencoder.h uint32_t* m_sliceBaseRow; uint32_t 160 source/encoder/frameencoder.h uint32_t m_ssimCnt; uint32_t 162 source/encoder/frameencoder.h uint32_t m_crc[3]; uint32_t 163 source/encoder/frameencoder.h uint32_t m_checksum[3]; uint32_t 190 source/encoder/frameencoder.h uint32_t* m_substreamSizes; uint32_t 193 source/encoder/frameencoder.h uint32_t* m_ctuGeomMap; uint32_t 225 source/encoder/frameencoder.h void encodeSlice(uint32_t sliceAddr); uint32_t 35 source/encoder/framefilter.cpp static uint64_t computeSSD(pixel *fenc, pixel *rec, intptr_t stride, uint32_t width, uint32_t height); uint32_t 36 source/encoder/framefilter.cpp static float calculateSSIM(pixel *pix1, intptr_t stride1, pixel *pix2, intptr_t stride2, uint32_t width, uint32_t height, void *buf, uint32_t& cnt); uint32_t 40 source/encoder/framefilter.cpp static void integral_init4h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 50 source/encoder/framefilter.cpp static void integral_init8h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 60 source/encoder/framefilter.cpp static void integral_init12h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 71 source/encoder/framefilter.cpp static void integral_init16h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 82 source/encoder/framefilter.cpp static void integral_init24h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 94 source/encoder/framefilter.cpp static void integral_init32h_c(uint32_t *sum, pixel *pix, intptr_t stride) uint32_t 107 source/encoder/framefilter.cpp static void integral_init4v_c(uint32_t *sum4, intptr_t stride) uint32_t 113 source/encoder/framefilter.cpp static void integral_init8v_c(uint32_t *sum8, intptr_t stride) uint32_t 119 source/encoder/framefilter.cpp static void integral_init12v_c(uint32_t *sum12, intptr_t stride) uint32_t 125 source/encoder/framefilter.cpp static void integral_init16v_c(uint32_t *sum16, intptr_t stride) uint32_t 131 source/encoder/framefilter.cpp static void integral_init24v_c(uint32_t *sum24, intptr_t stride) uint32_t 137 source/encoder/framefilter.cpp static void integral_init32v_c(uint32_t *sum32, intptr_t stride) uint32_t 177 source/encoder/framefilter.cpp void FrameFilter::init(Encoder *top, FrameEncoder *frame, int numRows, uint32_t numCols) uint32_t 254 source/encoder/framefilter.cpp static void restoreOrigLosslessYuv(const CUData* cu, Frame& frame, uint32_t absPartIdx) uint32_t 257 source/encoder/framefilter.cpp const uint32_t cuAddr = cu->m_cuAddr; uint32_t 283 source/encoder/framefilter.cpp uint32_t absPartIdx = cuGeom.absPartIdx; uint32_t 300 source/encoder/framefilter.cpp void FrameFilter::ParallelFilter::copySaoAboveRef(const CUData *ctu, PicYuv* reconPic, uint32_t cuAddr, int col) uint32_t 336 source/encoder/framefilter.cpp const uint32_t* ctuGeomMap = m_frameFilter->m_frameEncoder->m_ctuGeomMap; uint32_t 338 source/encoder/framefilter.cpp uint32_t cuAddr = m_rowAddr + col; uint32_t 356 source/encoder/framefilter.cpp const uint32_t lineStartCUAddr = m_rowAddr + col; uint32_t 360 source/encoder/framefilter.cpp const uint32_t lumaMarginX = reconPic->m_lumaMarginX; uint32_t 361 source/encoder/framefilter.cpp const uint32_t lumaMarginY = reconPic->m_lumaMarginY; uint32_t 362 source/encoder/framefilter.cpp const uint32_t chromaMarginX = reconPic->m_chromaMarginX; uint32_t 363 source/encoder/framefilter.cpp const uint32_t chromaMarginY = reconPic->m_chromaMarginY; uint32_t 405 source/encoder/framefilter.cpp for (uint32_t y = 0; y < lumaMarginY; y++) uint32_t 410 source/encoder/framefilter.cpp for (uint32_t y = 0; y < chromaMarginY; y++) uint32_t 424 source/encoder/framefilter.cpp for (uint32_t y = 0; y < lumaMarginY; y++) uint32_t 429 source/encoder/framefilter.cpp for (uint32_t y = 0; y < chromaMarginY; y++) uint32_t 443 source/encoder/framefilter.cpp const uint32_t* ctuGeomMap = m_frameFilter->m_frameEncoder->m_ctuGeomMap; uint32_t 457 source/encoder/framefilter.cpp for (uint32_t col = (uint32_t)colStart; col < (uint32_t)colEnd; col++) uint32_t 459 source/encoder/framefilter.cpp const uint32_t cuAddr = m_rowAddr + col; uint32_t 509 source/encoder/framefilter.cpp const uint32_t cuAddr = m_rowAddr + numCols - 1; uint32_t 661 source/encoder/framefilter.cpp const uint32_t numCols = m_frame->m_encData->m_slice->m_sps->numCuInWidth; uint32_t 662 source/encoder/framefilter.cpp const uint32_t lineStartCUAddr = row * numCols; uint32_t 670 source/encoder/framefilter.cpp uint32_t cuAddr = lineStartCUAddr; uint32_t 676 source/encoder/framefilter.cpp uint32_t width = reconPic->m_picWidth - m_pad[0]; uint32_t 677 source/encoder/framefilter.cpp uint32_t height = m_parallelFilter[row].getCUHeight(); uint32_t 702 source/encoder/framefilter.cpp uint32_t bEnd = ((row) == (this->m_numRows - 1)); uint32_t 703 source/encoder/framefilter.cpp uint32_t bStart = (row == 0); uint32_t 704 source/encoder/framefilter.cpp uint32_t minPixY = row * m_param->maxCUSize - 4 * !bStart; uint32_t 705 source/encoder/framefilter.cpp uint32_t maxPixY = X265_MIN((row + 1) * m_param->maxCUSize - 4 * !bEnd, (uint32_t)m_param->sourceHeight); uint32_t 706 source/encoder/framefilter.cpp uint32_t ssim_cnt; uint32_t 721 source/encoder/framefilter.cpp uint32_t height = m_parallelFilter[row].getCUHeight(); uint32_t 722 source/encoder/framefilter.cpp uint32_t width = reconPic->m_picWidth; uint32_t 747 source/encoder/framefilter.cpp uint32_t height = m_parallelFilter[row].getCUHeight(); uint32_t 748 source/encoder/framefilter.cpp uint32_t width = reconPic->m_picWidth; uint32_t 768 source/encoder/framefilter.cpp uint32_t width = reconPic->m_picWidth; uint32_t 769 source/encoder/framefilter.cpp uint32_t height = m_parallelFilter[row].getCUHeight(); uint32_t 771 source/encoder/framefilter.cpp uint32_t cuHeight = m_param->maxCUSize; uint32_t 831 source/encoder/framefilter.cpp memset(m_frame->m_encData->m_meIntegral[i] - padY * stride - padX, 0, stride * sizeof(uint32_t)); uint32_t 841 source/encoder/framefilter.cpp uint32_t *sum32x32 = m_frame->m_encData->m_meIntegral[0] + (y + 1) * stride - padX; uint32_t 842 source/encoder/framefilter.cpp uint32_t *sum32x24 = m_frame->m_encData->m_meIntegral[1] + (y + 1) * stride - padX; uint32_t 843 source/encoder/framefilter.cpp uint32_t *sum32x8 = m_frame->m_encData->m_meIntegral[2] + (y + 1) * stride - padX; uint32_t 844 source/encoder/framefilter.cpp uint32_t *sum24x32 = m_frame->m_encData->m_meIntegral[3] + (y + 1) * stride - padX; uint32_t 845 source/encoder/framefilter.cpp uint32_t *sum16x16 = m_frame->m_encData->m_meIntegral[4] + (y + 1) * stride - padX; uint32_t 846 source/encoder/framefilter.cpp uint32_t *sum16x12 = m_frame->m_encData->m_meIntegral[5] + (y + 1) * stride - padX; uint32_t 847 source/encoder/framefilter.cpp uint32_t *sum16x4 = m_frame->m_encData->m_meIntegral[6] + (y + 1) * stride - padX; uint32_t 848 source/encoder/framefilter.cpp uint32_t *sum12x16 = m_frame->m_encData->m_meIntegral[7] + (y + 1) * stride - padX; uint32_t 849 source/encoder/framefilter.cpp uint32_t *sum8x32 = m_frame->m_encData->m_meIntegral[8] + (y + 1) * stride - padX; uint32_t 850 source/encoder/framefilter.cpp uint32_t *sum8x8 = m_frame->m_encData->m_meIntegral[9] + (y + 1) * stride - padX; uint32_t 851 source/encoder/framefilter.cpp uint32_t *sum4x16 = m_frame->m_encData->m_meIntegral[10] + (y + 1) * stride - padX; uint32_t 852 source/encoder/framefilter.cpp uint32_t *sum4x4 = m_frame->m_encData->m_meIntegral[11] + (y + 1) * stride - padX; uint32_t 901 source/encoder/framefilter.cpp static uint64_t computeSSD(pixel *fenc, pixel *rec, intptr_t stride, uint32_t width, uint32_t height) uint32_t 908 source/encoder/framefilter.cpp for (uint32_t y = 0; y < height; y++) uint32_t 910 source/encoder/framefilter.cpp for (uint32_t x = 0; x < width; x++) uint32_t 923 source/encoder/framefilter.cpp uint32_t y = 0; uint32_t 928 source/encoder/framefilter.cpp uint32_t rowHeight = 1 << (size + 2); uint32_t 932 source/encoder/framefilter.cpp uint32_t y1, x = 0; uint32_t 967 source/encoder/framefilter.cpp static float calculateSSIM(pixel *pix1, intptr_t stride1, pixel *pix2, intptr_t stride2, uint32_t width, uint32_t height, void *buf, uint32_t& cnt) uint32_t 969 source/encoder/framefilter.cpp uint32_t z = 0; uint32_t 977 source/encoder/framefilter.cpp for (uint32_t y = 1; y < height; y++) uint32_t 982 source/encoder/framefilter.cpp for (uint32_t x = 0; x < width; x += 2) uint32_t 986 source/encoder/framefilter.cpp for (uint32_t x = 0; x < width - 1; x += 4) uint32_t 68 source/encoder/framefilter.h uint32_t m_rowHeight; uint32_t 70 source/encoder/framefilter.h uint32_t m_rowAddr; uint32_t 98 source/encoder/framefilter.h void copySaoAboveRef(const CUData *ctu, PicYuv* reconPic, uint32_t cuAddr, int col); uint32_t 103 source/encoder/framefilter.h uint32_t getCUHeight() const uint32_t 124 source/encoder/framefilter.h uint32_t getCUWidth(int colNum) const uint32_t 129 source/encoder/framefilter.h void init(Encoder *top, FrameEncoder *frame, int numRows, uint32_t numCols); uint32_t 32 source/encoder/level.cpp uint32_t maxLumaSamples; uint32_t 33 source/encoder/level.cpp uint32_t maxLumaSamplesPerSecond; uint32_t 34 source/encoder/level.cpp uint32_t maxBitrateMain; uint32_t 35 source/encoder/level.cpp uint32_t maxBitrateHigh; uint32_t 36 source/encoder/level.cpp uint32_t maxCpbSizeMain; uint32_t 37 source/encoder/level.cpp uint32_t maxCpbSizeHigh; uint32_t 38 source/encoder/level.cpp uint32_t minCompressionRatio; uint32_t 116 source/encoder/level.cpp uint32_t lumaSamples = param.sourceWidth * param.sourceHeight; uint32_t 117 source/encoder/level.cpp uint32_t samplesPerSec = (uint32_t)(lumaSamples * ((double)param.fpsNum / param.fpsDenom)); uint32_t 118 source/encoder/level.cpp uint32_t bitrate = param.rc.vbvMaxBitrate ? param.rc.vbvMaxBitrate : param.rc.bitrate; uint32_t 120 source/encoder/level.cpp const uint32_t MaxDpbPicBuf = 6; uint32_t 125 source/encoder/level.cpp uint32_t i; uint32_t 158 source/encoder/level.cpp uint32_t maxDpbSize = MaxDpbPicBuf; uint32_t 198 source/encoder/level.cpp CHECK_RANGE((uint32_t)param.rc.vbvBufferSize, levels[i].maxCpbSizeMain, levels[i].maxCpbSizeHigh)) uint32_t 292 source/encoder/level.cpp vps.maxDecPicBuffering = X265_MIN(MAX_NUM_REF, X265_MAX(vps.numReorderPics + 2, (uint32_t)param.maxNumReferences) + 1); uint32_t 298 source/encoder/level.cpp uint32_t level = 0; uint32_t 312 source/encoder/level.cpp uint32_t lumaSamples = param.sourceWidth * param.sourceHeight; uint32_t 313 source/encoder/level.cpp uint32_t samplesPerSec = (uint32_t)(lumaSamples * ((double)param.fpsNum / param.fpsDenom)); uint32_t 336 source/encoder/level.cpp if ((uint32_t)param.rc.vbvMaxBitrate > (allowHighTier ? l.maxBitrateHigh : l.maxBitrateMain)) uint32_t 341 source/encoder/level.cpp if ((uint32_t)param.rc.vbvBufferSize > (allowHighTier ? l.maxCpbSizeHigh : l.maxCpbSizeMain)) uint32_t 350 source/encoder/level.cpp if ((uint32_t)param.rc.bitrate > (allowHighTier ? l.maxBitrateHigh : l.maxBitrateMain)) uint32_t 380 source/encoder/level.cpp const uint32_t MaxDpbPicBuf = 6; uint32_t 381 source/encoder/level.cpp uint32_t maxDpbSize = MaxDpbPicBuf; uint32_t 396 source/encoder/level.cpp vps.maxDecPicBuffering = X265_MIN(MAX_NUM_REF, X265_MAX(vps.numReorderPics + 1, (uint32_t)param.maxNumReferences) + 1); uint32_t 742 source/encoder/motion.cpp uint32_t maxSlices, uint32_t 1307 source/encoder/motion.cpp uint32_t *sumsBase = NULL; uint32_t 65 source/encoder/motion.h uint32_t* integral[INTEGRAL_PLANE_NUM]; uint32_t 96 source/encoder/motion.h int motionEstimate(ReferencePlanes* ref, const MV & mvmin, const MV & mvmax, const MV & qmvp, int numCandidates, const MV * mvc, int merange, MV & outQMv, uint32_t maxSlices, pixel *srcReferencePlane = 0); uint32_t 64 source/encoder/nal.cpp uint32_t payloadSize = bs.getNumberOfWrittenBytes(); uint32_t 69 source/encoder/nal.cpp uint32_t nextSize = m_occupancy + sizeof(startCodePrefix) + 2 + payloadSize + (payloadSize >> 1) + m_extraOccupancy; uint32_t 78 source/encoder/nal.cpp for (uint32_t i = 0; i < m_numNal; i++) uint32_t 93 source/encoder/nal.cpp uint32_t bytes = 0; uint32_t 125 source/encoder/nal.cpp for (uint32_t i = 0; i < payloadSize; i++) uint32_t 157 source/encoder/nal.cpp uint32_t dataSize = bytes - 4; uint32_t 166 source/encoder/nal.cpp X265_CHECK(m_numNal < (uint32_t)MAX_NAL_UNITS, "NAL count overflow\n"); uint32_t 176 source/encoder/nal.cpp uint32_t NALList::serializeSubstreams(uint32_t* streamSizeBytes, uint32_t streamCount, const Bitstream* streams) uint32_t 178 source/encoder/nal.cpp uint32_t maxStreamSize = 0; uint32_t 179 source/encoder/nal.cpp uint32_t estSize = 0; uint32_t 180 source/encoder/nal.cpp for (uint32_t s = 0; s < streamCount; s++) uint32_t 200 source/encoder/nal.cpp uint32_t bytes = 0; uint32_t 202 source/encoder/nal.cpp for (uint32_t s = 0; s < streamCount; s++) uint32_t 205 source/encoder/nal.cpp uint32_t inSize = stream.getNumberOfWrittenBytes(); uint32_t 207 source/encoder/nal.cpp uint32_t prevBufSize = bytes; uint32_t 211 source/encoder/nal.cpp for (uint32_t i = 0; i < inSize; i++) uint32_t 43 source/encoder/nal.h uint32_t m_numNal; uint32_t 46 source/encoder/nal.h uint32_t m_occupancy; uint32_t 47 source/encoder/nal.h uint32_t m_allocSize; uint32_t 50 source/encoder/nal.h uint32_t m_extraOccupancy; uint32_t 51 source/encoder/nal.h uint32_t m_extraAllocSize; uint32_t 61 source/encoder/nal.h uint32_t serializeSubstreams(uint32_t* streamSizeBytes, uint32_t streamCount, const Bitstream* streams); uint32_t 70 source/encoder/ratecontrol.cpp inline int calcScale(uint32_t x) uint32_t 82 source/encoder/ratecontrol.cpp inline int calcLength(uint32_t x) uint32_t 425 source/encoder/ratecontrol.cpp uint32_t k , l; uint32_t 2100 source/encoder/ratecontrol.cpp seiBP->m_initialCpbRemovalDelay = (uint32_t)(num * cpbState / denom); uint32_t 2101 source/encoder/ratecontrol.cpp seiBP->m_initialCpbRemovalDelayOffset = (uint32_t)(num * cpbSize / denom - seiBP->m_initialCpbRemovalDelay); uint32_t 2252 source/encoder/ratecontrol.cpp uint32_t rowSatdCostSoFar = 0, totalSatdBits = 0; uint32_t 2260 source/encoder/ratecontrol.cpp uint32_t maxRows = curEncData.m_slice->m_sps->numCuInHeight; uint32_t 2261 source/encoder/ratecontrol.cpp uint32_t maxCols = curEncData.m_slice->m_sps->numCuInWidth; uint32_t 2263 source/encoder/ratecontrol.cpp for (uint32_t row = 0; row < maxRows; row++) uint32_t 2267 source/encoder/ratecontrol.cpp uint32_t satdCostForPendingCus = curEncData.m_rowStat[row].satdForVbv - rowSatdCostSoFar; uint32_t 2272 source/encoder/ratecontrol.cpp uint32_t refRowSatdCost = 0, refRowBits = 0, intraCostForPendingCus = 0; uint32_t 2278 source/encoder/ratecontrol.cpp uint32_t endCuAddr = maxCols * (row + 1); uint32_t 2279 source/encoder/ratecontrol.cpp uint32_t startCuAddr = curEncData.m_rowStat[row].numEncodedCUs; uint32_t 2282 source/encoder/ratecontrol.cpp for (uint32_t cuAddr = startCuAddr + 1 ; cuAddr < endCuAddr; cuAddr++) uint32_t 2333 source/encoder/ratecontrol.cpp int RateControl::rowVbvRateControl(Frame* curFrame, uint32_t row, RateControlEntry* rce, double& qpVbv) uint32_t 2602 source/encoder/ratecontrol.cpp for (uint32_t i = 0; i < slice->m_sps->numCuInHeight; i++) uint32_t 2614 source/encoder/ratecontrol.cpp for (uint32_t i = 0; i < slice->m_sps->numCuInHeight; i++) uint32_t 2743 source/encoder/ratecontrol.cpp uint32_t cpbsizeUnscale = hrd->cpbSizeValue << (hrd->cpbSizeScale + CPB_SHIFT); uint32_t 247 source/encoder/ratecontrol.h int rowVbvRateControl(Frame* curFrame, uint32_t row, RateControlEntry* rce, double& qpVbv); uint32_t 41 source/encoder/rdcost.h uint32_t m_chromaDistWeight[2]; uint32_t 42 source/encoder/rdcost.h uint32_t m_psyRdBase; uint32_t 43 source/encoder/rdcost.h uint32_t m_psyRd; uint32_t 44 source/encoder/rdcost.h uint32_t m_ssimRd; uint32_t 47 source/encoder/rdcost.h void setPsyRdScale(double scale) { m_psyRdBase = (uint32_t)floor(65536.0 * scale * 0.33); } uint32_t 57 source/encoder/rdcost.h static const uint32_t psyScaleFix8[3] = { 300, 256, 96 }; /* B, P, I */ uint32_t 99 source/encoder/rdcost.h inline uint64_t calcRdCost(sse_t distortion, uint32_t bits) const uint32_t 120 source/encoder/rdcost.h inline uint64_t calcPsyRdCost(sse_t distortion, uint32_t bits, uint32_t psycost) const uint32_t 134 source/encoder/rdcost.h inline uint64_t calcSsimRdCost(uint64_t distortion, uint32_t bits, uint32_t ssimCost) const uint32_t 148 source/encoder/rdcost.h inline uint64_t calcRdSADCost(uint32_t sadCost, uint32_t bits) const uint32_t 155 source/encoder/rdcost.h inline sse_t scaleChromaDist(uint32_t plane, sse_t dist) const uint32_t 169 source/encoder/rdcost.h inline uint32_t getCost(uint32_t bits) const uint32_t 173 source/encoder/rdcost.h return (uint32_t)((bits * m_lambda + 128) >> 8); uint32_t 64 source/encoder/reference.cpp numSliceWeightedRows = X265_MALLOC(uint32_t, p.maxSlices); uint32_t 65 source/encoder/reference.cpp memset(numSliceWeightedRows, 0, p.maxSlices * sizeof(uint32_t)); uint32_t 75 source/encoder/reference.cpp uint32_t numCUinHeight = (reconPic->m_picHeight + p.maxCUSize - 1) / p.maxCUSize; uint32_t 119 source/encoder/reference.cpp void MotionReference::applyWeight(uint32_t finishedRows, uint32_t maxNumRows, uint32_t maxNumRowsInSlice, uint32_t sliceId) uint32_t 121 source/encoder/reference.cpp const uint32_t numWeightedRows = numSliceWeightedRows[sliceId]; uint32_t 45 source/encoder/reference.h void applyWeight(uint32_t finishedRows, uint32_t maxNumRows, uint32_t maxNumRowsInSlice, uint32_t sliceId); uint32_t 49 source/encoder/reference.h uint32_t* numSliceWeightedRows; uint32_t 42 source/encoder/sao.cpp return (x >> 31) | ((int)((((uint32_t)-x)) >> 31)); uint32_t 65 source/encoder/sao.cpp const uint32_t SAO::s_eoTable[NUM_EDGETYPE] = uint32_t 279 source/encoder/sao.cpp uint32_t picWidth = m_param->sourceWidth; uint32_t 280 source/encoder/sao.cpp uint32_t picHeight = m_param->sourceHeight; uint32_t 284 source/encoder/sao.cpp uint32_t lpelx = cu->m_cuPelX; uint32_t 285 source/encoder/sao.cpp uint32_t tpely = cu->m_cuPelY; uint32_t 286 source/encoder/sao.cpp const uint32_t firstRowInSlice = cu->m_bFirstRowInSlice; uint32_t 287 source/encoder/sao.cpp const uint32_t lastRowInSlice = cu->m_bLastRowInSlice; uint32_t 288 source/encoder/sao.cpp const uint32_t bAboveUnavail = (!tpely) | firstRowInSlice; uint32_t 305 source/encoder/sao.cpp uint32_t rpelx = x265_min(lpelx + ctuWidth, picWidth); uint32_t 306 source/encoder/sao.cpp uint32_t bpely = x265_min(tpely + ctuHeight, picHeight); uint32_t 745 source/encoder/sao.cpp uint32_t picWidth = m_param->sourceWidth; uint32_t 746 source/encoder/sao.cpp uint32_t picHeight = m_param->sourceHeight; uint32_t 749 source/encoder/sao.cpp uint32_t lpelx = cu->m_cuPelX; uint32_t 750 source/encoder/sao.cpp uint32_t tpely = cu->m_cuPelY; uint32_t 751 source/encoder/sao.cpp const uint32_t firstRowInSlice = cu->m_bFirstRowInSlice; uint32_t 752 source/encoder/sao.cpp const uint32_t lastRowInSlice = cu->m_bLastRowInSlice; uint32_t 753 source/encoder/sao.cpp const uint32_t bAboveUnavail = (!tpely) | firstRowInSlice; uint32_t 764 source/encoder/sao.cpp uint32_t rpelx = x265_min(lpelx + ctuWidth, picWidth); uint32_t 765 source/encoder/sao.cpp uint32_t bpely = x265_min(tpely + ctuHeight, picHeight); uint32_t 929 source/encoder/sao.cpp uint32_t picWidth = m_param->sourceWidth; uint32_t 930 source/encoder/sao.cpp uint32_t picHeight = m_param->sourceHeight; uint32_t 933 source/encoder/sao.cpp uint32_t lpelx = cu->m_cuPelX; uint32_t 934 source/encoder/sao.cpp uint32_t tpely = cu->m_cuPelY; uint32_t 935 source/encoder/sao.cpp const uint32_t firstRowInSlice = cu->m_bFirstRowInSlice; uint32_t 936 source/encoder/sao.cpp const uint32_t lastRowInSlice = cu->m_bLastRowInSlice; uint32_t 937 source/encoder/sao.cpp const uint32_t bAboveAvail = (!tpely) | firstRowInSlice; uint32_t 945 source/encoder/sao.cpp uint32_t rpelx = x265_min(lpelx + ctuWidth, picWidth); uint32_t 946 source/encoder/sao.cpp uint32_t bpely = x265_min(tpely + ctuHeight, picHeight); uint32_t 1343 source/encoder/sao.cpp uint32_t estRate = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1435 source/encoder/sao.cpp inline int64_t SAO::calcSaoRdoCost(int64_t distortion, uint32_t bits, int64_t lambda) uint32_t 1460 source/encoder/sao.cpp uint32_t rate = (typeIdx == SAO_BO) ? (abs(offset) + 2) : (abs(offset) + 1); uint32_t 1623 source/encoder/sao.cpp uint32_t bits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1660 source/encoder/sao.cpp uint32_t estRate = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1724 source/encoder/sao.cpp uint32_t estRate = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1751 source/encoder/sao.cpp uint32_t rate = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1756 source/encoder/sao.cpp uint32_t rate = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1797 source/encoder/sao.cpp uint32_t edgeType = signRight + signLeft + 2; uint32_t 1834 source/encoder/sao.cpp uint32_t edgeType = signDown + upBuff1[x] + 2; uint32_t 1870 source/encoder/sao.cpp uint32_t edgeType = signDown + upBuff1[x] + 2; uint32_t 1908 source/encoder/sao.cpp uint32_t edgeType = signDown + upBuff1[x] + 2; uint32_t 59 source/encoder/sao.h static const uint32_t s_eoTable[NUM_EDGETYPE]; uint32_t 135 source/encoder/sao.h int64_t calcSaoRdoCost(int64_t distortion, uint32_t bits, int64_t lambda); uint32_t 75 source/encoder/search.cpp uint32_t maxLog2CUSize = g_log2Size[param.maxCUSize]; uint32_t 94 source/encoder/search.cpp uint32_t sizeL = 1 << (maxLog2CUSize * 2); uint32_t 95 source/encoder/search.cpp uint32_t sizeC = sizeL >> (m_hChromaShift + m_vChromaShift); uint32_t 96 source/encoder/search.cpp uint32_t numPartitions = 1 << (maxLog2CUSize - LOG2_UNIT_SIZE) * 2; uint32_t 118 source/encoder/search.cpp for (uint32_t i = 0; i <= m_numLayers; i++) uint32_t 129 source/encoder/search.cpp for (uint32_t i = 0; i <= m_numLayers; i++) uint32_t 139 source/encoder/search.cpp for (uint32_t i = 0; i <= m_param->maxCUDepth; i++) uint32_t 182 source/encoder/search.cpp for (uint32_t i = 0; i <= m_numLayers; i++) uint32_t 189 source/encoder/search.cpp for (uint32_t i = 0; i <= m_param->maxCUDepth; i++) uint32_t 233 source/encoder/search.cpp void Search::codeSubdivCbfQTChroma(const CUData& cu, uint32_t tuDepth, uint32_t absPartIdx) uint32_t 235 source/encoder/search.cpp uint32_t subdiv = tuDepth < cu.m_tuDepth[absPartIdx]; uint32_t 236 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 240 source/encoder/search.cpp uint32_t parentIdx = absPartIdx & (0xFF << (log2TrSize + 1 - LOG2_UNIT_SIZE) * 2); uint32_t 249 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 250 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 255 source/encoder/search.cpp void Search::codeCoeffQTChroma(const CUData& cu, uint32_t tuDepth, uint32_t absPartIdx, TextType ttype) uint32_t 260 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 264 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 265 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 271 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 272 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 283 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 287 source/encoder/search.cpp uint32_t shift = (m_csp == X265_CSP_I420) ? 2 : 0; uint32_t 288 source/encoder/search.cpp uint32_t coeffOffset = absPartIdx << (LOG2_UNIT_SIZE * 2 - shift); uint32_t 294 source/encoder/search.cpp uint32_t coeffOffset = absPartIdx << (LOG2_UNIT_SIZE * 2 - 1); uint32_t 296 source/encoder/search.cpp uint32_t subTUSize = 1 << (log2TrSizeC * 2); uint32_t 297 source/encoder/search.cpp uint32_t tuNumParts = 2 << ((log2TrSizeC - LOG2_UNIT_SIZE) * 2); uint32_t 305 source/encoder/search.cpp void Search::codeIntraLumaQT(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, bool bAllowSplit, Cost& outCost, const uint32_t depthRange[2]) uint32_t 308 source/encoder/search.cpp uint32_t fullDepth = cuGeom.depth + tuDepth; uint32_t 309 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 310 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 311 source/encoder/search.cpp uint32_t sizeIdx = log2TrSize - 2; uint32_t 324 source/encoder/search.cpp uint32_t bCBF = 0; uint32_t 327 source/encoder/search.cpp uint32_t reconQtStride = m_rqt[qtLayer].reconQtYuv.m_size; uint32_t 337 source/encoder/search.cpp uint32_t stride = mode.fencYuv->m_size; uint32_t 340 source/encoder/search.cpp uint32_t lumaPredMode = cu.m_lumaIntraDir[absPartIdx]; uint32_t 351 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 360 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffY, log2TrSize, TEXT_LUMA, absPartIdx, false); uint32_t 394 source/encoder/search.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 397 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx) uint32_t 441 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 448 source/encoder/search.cpp uint32_t cbf = 0; uint32_t 449 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 507 source/encoder/search.cpp void Search::codeIntraLumaTSkip(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, Cost& outCost) uint32_t 509 source/encoder/search.cpp uint32_t fullDepth = cuGeom.depth + tuDepth; uint32_t 510 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 511 source/encoder/search.cpp uint32_t tuSize = 1 << log2TrSize; uint32_t 523 source/encoder/search.cpp uint32_t bCBF = 0; uint32_t 528 source/encoder/search.cpp uint32_t stride = fencYuv->m_size; uint32_t 529 source/encoder/search.cpp uint32_t sizeIdx = log2TrSize - 2; uint32_t 532 source/encoder/search.cpp uint32_t lumaPredMode = cu.m_lumaIntraDir[absPartIdx]; uint32_t 542 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 543 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 546 source/encoder/search.cpp uint32_t reconQtStride = m_rqt[qtLayer].reconQtYuv.m_size; uint32_t 558 source/encoder/search.cpp uint32_t tmpEnergy = 0; uint32_t 562 source/encoder/search.cpp uint32_t tmpReconStride = (useTSkip ? MAX_TS_SIZE : reconQtStride); uint32_t 566 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeff, log2TrSize, TEXT_LUMA, absPartIdx, useTSkip); uint32_t 610 source/encoder/search.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 613 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx) uint32_t 626 source/encoder/search.cpp uint32_t tmpBits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 680 source/encoder/search.cpp void Search::residualTransformQuantIntra(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, const uint32_t depthRange[2]) uint32_t 683 source/encoder/search.cpp uint32_t fullDepth = cuGeom.depth + tuDepth; uint32_t 684 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 699 source/encoder/search.cpp uint32_t stride = mode.fencYuv->m_size; uint32_t 702 source/encoder/search.cpp uint32_t lumaPredMode = cu.m_lumaIntraDir[absPartIdx]; uint32_t 713 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 716 source/encoder/search.cpp uint32_t sizeIdx = log2TrSize - 2; uint32_t 723 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffY, log2TrSize, TEXT_LUMA, absPartIdx, false); uint32_t 741 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 742 source/encoder/search.cpp uint32_t cbf = 0; uint32_t 743 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 752 source/encoder/search.cpp void Search::extractIntraResultQT(CUData& cu, Yuv& reconYuv, uint32_t tuDepth, uint32_t absPartIdx) uint32_t 754 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 758 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 761 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 771 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 772 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 785 source/encoder/search.cpp void Search::offsetSubTUCBFs(CUData& cu, TextType ttype, uint32_t tuDepth, uint32_t absPartIdx) uint32_t 787 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 795 source/encoder/search.cpp uint32_t tuNumParts = 1 << ((log2TrSize - LOG2_UNIT_SIZE) * 2 - 1); uint32_t 808 source/encoder/search.cpp void Search::codeIntraChromaQt(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, Cost& outCost) uint32_t 811 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 816 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 817 source/encoder/search.cpp uint32_t splitCbfU = 0, splitCbfV = 0; uint32_t 818 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 830 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 831 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 853 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 854 source/encoder/search.cpp uint32_t stride = mode.fencYuv->m_csize; uint32_t 855 source/encoder/search.cpp const uint32_t sizeIdxC = log2TrSizeC - 2; uint32_t 857 source/encoder/search.cpp uint32_t curPartNum = cuGeom.numPartitions >> tuDepthC * 2; uint32_t 863 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 868 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 875 source/encoder/search.cpp uint32_t coeffOffsetC = absPartIdxC << (LOG2_UNIT_SIZE * 2 - (m_hChromaShift + m_vChromaShift)); uint32_t 878 source/encoder/search.cpp uint32_t reconQtStride = m_rqt[qtLayer].reconQtYuv.m_csize; uint32_t 883 source/encoder/search.cpp uint32_t chromaPredMode = cu.m_chromaIntraDir[absPartIdxC]; uint32_t 897 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffC, log2TrSizeC, ttype, absPartIdxC, false); uint32_t 931 source/encoder/search.cpp void Search::codeIntraChromaTSkip(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t tuDepthC, uint32_t absPartIdx, Cost& outCost) uint32_t 934 source/encoder/search.cpp uint32_t fullDepth = cuGeom.depth + tuDepth; uint32_t 935 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 936 source/encoder/search.cpp const uint32_t log2TrSizeC = 2; uint32_t 937 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2; uint32_t 944 source/encoder/search.cpp uint32_t curPartNum = cuGeom.numPartitions >> tuDepthC * 2; uint32_t 950 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 955 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 962 source/encoder/search.cpp uint32_t stride = mode.fencYuv->m_csize; uint32_t 963 source/encoder/search.cpp const uint32_t sizeIdxC = log2TrSizeC - 2; uint32_t 965 source/encoder/search.cpp uint32_t coeffOffsetC = absPartIdxC << (LOG2_UNIT_SIZE * 2 - (m_hChromaShift + m_vChromaShift)); uint32_t 968 source/encoder/search.cpp uint32_t reconQtStride = m_rqt[qtLayer].reconQtYuv.m_csize; uint32_t 973 source/encoder/search.cpp uint32_t chromaPredMode = cu.m_chromaIntraDir[absPartIdxC]; uint32_t 984 source/encoder/search.cpp uint32_t bCbf = 0; uint32_t 985 source/encoder/search.cpp uint32_t bEnergy = 0; uint32_t 993 source/encoder/search.cpp uint32_t reconStride = (useTSkip ? MAX_TS_SIZE : reconQtStride); uint32_t 997 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeff, log2TrSizeC, ttype, absPartIdxC, useTSkip); uint32_t 1019 source/encoder/search.cpp uint32_t tmpBits = 0, tmpEnergy = 0; uint32_t 1081 source/encoder/search.cpp void Search::extractIntraResultChromaQT(CUData& cu, Yuv& reconYuv, uint32_t absPartIdx, uint32_t tuDepth) uint32_t 1083 source/encoder/search.cpp uint32_t tuDepthL = cu.m_tuDepth[absPartIdx]; uint32_t 1084 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 1085 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 1090 source/encoder/search.cpp uint32_t numCoeffC = 1 << (log2TrSizeC * 2 + (m_csp == X265_CSP_I422)); uint32_t 1091 source/encoder/search.cpp uint32_t coeffOffsetC = absPartIdx << (LOG2_UNIT_SIZE * 2 - (m_hChromaShift + m_vChromaShift)); uint32_t 1093 source/encoder/search.cpp uint32_t qtLayer = log2TrSize - 2 - (tuDepthL - tuDepth); uint32_t 1106 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 1107 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 1112 source/encoder/search.cpp void Search::residualQTIntraChroma(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth) uint32_t 1115 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[absPartIdx] - tuDepth; uint32_t 1119 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 1120 source/encoder/search.cpp uint32_t splitCbfU = 0, splitCbfV = 0; uint32_t 1121 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 1133 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 1134 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 1145 source/encoder/search.cpp uint32_t stride = mode.fencYuv->m_csize; uint32_t 1146 source/encoder/search.cpp const uint32_t sizeIdxC = log2TrSizeC - 2; uint32_t 1148 source/encoder/search.cpp uint32_t curPartNum = cuGeom.numPartitions >> tuDepthC * 2; uint32_t 1154 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 1159 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 1166 source/encoder/search.cpp uint32_t coeffOffsetC = absPartIdxC << (LOG2_UNIT_SIZE * 2 - (m_hChromaShift + m_vChromaShift)); uint32_t 1172 source/encoder/search.cpp uint32_t chromaPredMode = cu.m_chromaIntraDir[absPartIdxC]; uint32_t 1187 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffC, log2TrSizeC, ttype, absPartIdxC, false); uint32_t 1218 source/encoder/search.cpp uint32_t tuDepthRange[2]; uint32_t 1271 source/encoder/search.cpp uint32_t depth = cuGeom.depth; uint32_t 1276 source/encoder/search.cpp const uint32_t initTuDepth = 0; uint32_t 1277 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - initTuDepth; uint32_t 1278 source/encoder/search.cpp uint32_t tuSize = 1 << log2TrSize; uint32_t 1279 source/encoder/search.cpp const uint32_t absPartIdx = 0; uint32_t 1287 source/encoder/search.cpp uint32_t stride = intraMode.fencYuv->m_size; uint32_t 1290 source/encoder/search.cpp uint32_t bits, bbits, mode, bmode; uint32_t 1329 source/encoder/search.cpp uint32_t mpmModes[3]; uint32_t 1330 source/encoder/search.cpp uint32_t rbits = getIntraRemModeBits(cu, absPartIdx, mpmModes, mpms); uint32_t 1379 source/encoder/search.cpp uint32_t lowmode, highmode, amode = 5, abits = 0; uint32_t 1390 source/encoder/search.cpp for (uint32_t dist = 2; dist >= 1; dist--) uint32_t 1439 source/encoder/search.cpp uint32_t tuDepthRange[2]; uint32_t 1484 source/encoder/search.cpp sse_t Search::estIntraPredQT(Mode &intraMode, const CUGeom& cuGeom, const uint32_t depthRange[2]) uint32_t 1491 source/encoder/search.cpp uint32_t depth = cuGeom.depth; uint32_t 1492 source/encoder/search.cpp uint32_t initTuDepth = cu.m_partSize[0] != SIZE_2Nx2N; uint32_t 1493 source/encoder/search.cpp uint32_t numPU = 1 << (2 * initTuDepth); uint32_t 1494 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - initTuDepth; uint32_t 1495 source/encoder/search.cpp uint32_t tuSize = 1 << log2TrSize; uint32_t 1496 source/encoder/search.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 1497 source/encoder/search.cpp uint32_t sizeIdx = log2TrSize - 2; uint32_t 1498 source/encoder/search.cpp uint32_t absPartIdx = 0; uint32_t 1504 source/encoder/search.cpp for (uint32_t puIdx = 0; puIdx < numPU; puIdx++, absPartIdx += qNumParts) uint32_t 1506 source/encoder/search.cpp uint32_t bmode = 0; uint32_t 1513 source/encoder/search.cpp uint32_t rdModeList[MAX_RD_INTRA_MODES]; uint32_t 1527 source/encoder/search.cpp uint32_t stride = predYuv->m_size; uint32_t 1540 source/encoder/search.cpp uint32_t mpmModes[3]; uint32_t 1541 source/encoder/search.cpp uint32_t rbits = getIntraRemModeBits(cu, absPartIdx, mpmModes, mpms); uint32_t 1548 source/encoder/search.cpp uint32_t bits = (mpms & ((uint64_t)1 << DC_IDX)) ? m_entropyCoder.bitsIntraModeMPM(mpmModes, DC_IDX) : rbits; uint32_t 1549 source/encoder/search.cpp uint32_t sad = sa8d(fenc, scaleStride, m_intraPred, scaleStride) << costShift; uint32_t 1601 source/encoder/search.cpp if ((modeCosts[mode] < paddedBcost) || ((uint32_t)mode == mpmModes[0])) uint32_t 1651 source/encoder/search.cpp uint32_t dststride = reconPic->m_stride; uint32_t 1653 source/encoder/search.cpp uint32_t srcstride = reconYuv->m_size; uint32_t 1660 source/encoder/search.cpp uint32_t combCbfY = 0; uint32_t 1661 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = 0; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 1679 source/encoder/search.cpp uint32_t bestMode = 0; uint32_t 1681 source/encoder/search.cpp uint32_t modeList[NUM_CHROMA_MODE]; uint32_t 1683 source/encoder/search.cpp uint32_t log2TrSizeC = cu.m_log2CUSize[0] - m_hChromaShift; uint32_t 1684 source/encoder/search.cpp uint32_t tuSize = 1 << log2TrSizeC; uint32_t 1685 source/encoder/search.cpp uint32_t tuDepth = 0; uint32_t 1700 source/encoder/search.cpp for (uint32_t mode = 0; mode < NUM_CHROMA_MODE; mode++) uint32_t 1702 source/encoder/search.cpp uint32_t chromaPredMode = modeList[mode]; uint32_t 1709 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 1734 source/encoder/search.cpp uint32_t depth = cuGeom.depth; uint32_t 1735 source/encoder/search.cpp uint32_t initTuDepth = cu.m_partSize[0] != SIZE_2Nx2N && m_csp == X265_CSP_I444; uint32_t 1736 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - initTuDepth; uint32_t 1737 source/encoder/search.cpp uint32_t absPartStep = cuGeom.numPartitions; uint32_t 1746 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 1748 source/encoder/search.cpp uint32_t bestMode = 0; uint32_t 1753 source/encoder/search.cpp uint32_t minMode = 0; uint32_t 1754 source/encoder/search.cpp uint32_t maxMode = NUM_CHROMA_MODE; uint32_t 1755 source/encoder/search.cpp uint32_t modeList[NUM_CHROMA_MODE]; uint32_t 1759 source/encoder/search.cpp for (uint32_t l = 0; l < NUM_CHROMA_MODE; l++) uint32_t 1768 source/encoder/search.cpp for (uint32_t l = 1; l < NUM_CHROMA_MODE; l++) uint32_t 1773 source/encoder/search.cpp for (uint32_t mode = minMode; mode < maxMode; mode++) uint32_t 1794 source/encoder/search.cpp uint32_t qNumParts = cuGeom.numPartitions >> 2; uint32_t 1802 source/encoder/search.cpp uint32_t bits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 1821 source/encoder/search.cpp uint32_t zorder = cuGeom.absPartIdx + absPartIdxC; uint32_t 1823 source/encoder/search.cpp uint32_t dststride = reconPic->m_strideC; uint32_t 1847 source/encoder/search.cpp uint32_t combCbfU = 0; uint32_t 1848 source/encoder/search.cpp uint32_t combCbfV = 0; uint32_t 1849 source/encoder/search.cpp uint32_t qNumParts = tuIterator.absPartIdxStep; uint32_t 1850 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = 0; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 1866 source/encoder/search.cpp uint32_t Search::mergeEstimation(CUData& cu, const CUGeom& cuGeom, const PredictionUnit& pu, int puIdx, MergeData& m) uint32_t 1872 source/encoder/search.cpp uint32_t numMergeCand = cu.getInterMergeCandidates(pu.puAbsPartIdx, puIdx, candMvField, candDir); uint32_t 1877 source/encoder/search.cpp for (uint32_t mergeCand = 0; mergeCand < numMergeCand; ++mergeCand) uint32_t 1889 source/encoder/search.cpp uint32_t outCost = MAX_UINT; uint32_t 1890 source/encoder/search.cpp for (uint32_t mergeCand = 0; mergeCand < numMergeCand; ++mergeCand) uint32_t 1921 source/encoder/search.cpp uint32_t costCand = m_me.bufSATD(tempYuv.getLumaAddr(pu.puAbsPartIdx), tempYuv.m_size); uint32_t 1925 source/encoder/search.cpp uint32_t bitsCand = getTUBits(mergeCand, numMergeCand); uint32_t 1955 source/encoder/search.cpp uint32_t block_x = (cu.m_cuPelX + g_zscanToPelX[pu.puAbsPartIdx] + pu.width / 2) >> 4; uint32_t 1956 source/encoder/search.cpp uint32_t block_y = (cu.m_cuPelY + g_zscanToPelY[pu.puAbsPartIdx] + pu.height / 2) >> 4; uint32_t 1957 source/encoder/search.cpp uint32_t idx = block_y * m_frame->m_lowres.maxBlocksInRow + block_x; uint32_t 1973 source/encoder/search.cpp uint32_t costs[AMVP_NUM_CANDS]; uint32_t 2063 source/encoder/search.cpp uint32_t bits = master.m_listSelBits[list] + MVP_IDX_BITS; uint32_t 2090 source/encoder/search.cpp uint32_t mvCost = m_me.mvcost(outmv); uint32_t 2091 source/encoder/search.cpp uint32_t cost = (satdCost - mvCost) + m_rdCost.getCost(bits); uint32_t 2123 source/encoder/search.cpp void Search::predInterSearch(Mode& interMode, const CUGeom& cuGeom, bool bChromaMC, uint32_t refMasks[2]) uint32_t 2137 source/encoder/search.cpp uint32_t lastMode = 0; uint32_t 2153 source/encoder/search.cpp uint32_t mrgCost = numPart == 1 ? MAX_UINT : mergeEstimation(cu, cuGeom, pu, puIdx, merge); uint32_t 2173 source/encoder/search.cpp uint32_t bits = m_listSelBits[list] + MVP_IDX_BITS; uint32_t 2199 source/encoder/search.cpp uint32_t mvCost = m_me.mvcost(outmv); uint32_t 2200 source/encoder/search.cpp uint32_t cost = (satdCost - mvCost) + m_rdCost.getCost(bits); uint32_t 2213 source/encoder/search.cpp uint32_t origOutBits = bits; uint32_t 2238 source/encoder/search.cpp uint32_t refMask = refMasks[puIdx] ? refMasks[puIdx] : (uint32_t)-1; uint32_t 2277 source/encoder/search.cpp uint32_t refMask = refMasks[puIdx] ? refMasks[puIdx] : (uint32_t)-1; uint32_t 2291 source/encoder/search.cpp uint32_t bits = m_listSelBits[list] + MVP_IDX_BITS; uint32_t 2319 source/encoder/search.cpp uint32_t mvCost = m_me.mvcost(outmv); uint32_t 2320 source/encoder/search.cpp uint32_t cost = (satdCost - mvCost) + m_rdCost.getCost(bits); uint32_t 2343 source/encoder/search.cpp uint32_t bidirCost = MAX_UINT; uint32_t 2425 source/encoder/search.cpp uint32_t bits0 = bestME[0].bits - m_me.bitcost(bestME[0].mv, mvp0) + m_me.bitcost(mvzero, mvp0); uint32_t 2429 source/encoder/search.cpp uint32_t bits1 = bestME[1].bits - m_me.bitcost(bestME[1].mv, mvp1) + m_me.bitcost(mvzero, mvp1); uint32_t 2431 source/encoder/search.cpp uint32_t cost = satdCost + m_rdCost.getCost(bits0) + m_rdCost.getCost(bits1); uint32_t 2520 source/encoder/search.cpp void Search::getBlkBits(PartSize cuMode, bool bPSlice, int partIdx, uint32_t lastMode, uint32_t blockBit[3]) uint32_t 2530 source/encoder/search.cpp static const uint32_t listBits[2][3][3] = uint32_t 2542 source/encoder/search.cpp memcpy(blockBit, listBits[partIdx][lastMode], 3 * sizeof(uint32_t)); uint32_t 2546 source/encoder/search.cpp static const uint32_t listBits[2][3][3] = uint32_t 2558 source/encoder/search.cpp memcpy(blockBit, listBits[partIdx][lastMode], 3 * sizeof(uint32_t)); uint32_t 2573 source/encoder/search.cpp const MV& Search::checkBestMVP(const MV* amvpCand, const MV& mv, int& mvpIdx, uint32_t& outBits, uint32_t& outCost) const uint32_t 2579 source/encoder/search.cpp uint32_t origOutBits = outBits; uint32_t 2640 source/encoder/search.cpp uint32_t depth = cu.m_cuDepth[0]; uint32_t 2691 source/encoder/search.cpp uint32_t depth = cuGeom.depth; uint32_t 2697 source/encoder/search.cpp uint32_t log2CUSize = cuGeom.log2CUSize; uint32_t 2702 source/encoder/search.cpp uint32_t tuDepthRange[2]; uint32_t 2719 source/encoder/search.cpp uint32_t splitFlag = interMode.cu.m_partSize[0] != SIZE_2Nx2N; uint32_t 2720 source/encoder/search.cpp uint32_t minSize = tuDepthRange[0]; uint32_t 2721 source/encoder/search.cpp uint32_t maxSize = tuDepthRange[1]; uint32_t 2723 source/encoder/search.cpp m_maxTUDepth = x265_clip3(cuGeom.log2CUSize - maxSize, cuGeom.log2CUSize - minSize, (uint32_t)m_maxTUDepth); uint32_t 2731 source/encoder/search.cpp uint32_t tqBypass = cu.m_tqBypass[0]; uint32_t 2745 source/encoder/search.cpp uint32_t cbf0Bits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 2747 source/encoder/search.cpp uint32_t cbf0Energy; uint64_t cbf0Cost; uint32_t 2778 source/encoder/search.cpp uint32_t coeffBits, bits, mvBits; uint32_t 2839 source/encoder/search.cpp void Search::residualTransformQuantInter(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, const uint32_t depthRange[2]) uint32_t 2841 source/encoder/search.cpp uint32_t depth = cuGeom.depth + tuDepth; uint32_t 2843 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 2852 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 2853 source/encoder/search.cpp uint32_t codeChroma = (m_csp != X265_CSP_I400 && m_frame->m_fencPic->m_picCsp != X265_CSP_I400) ? 1 : 0; uint32_t 2855 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 2864 source/encoder/search.cpp uint32_t absPartIdxStep = cuGeom.numPartitions >> tuDepthC * 2; uint32_t 2865 source/encoder/search.cpp uint32_t setCbf = 1 << tuDepth; uint32_t 2867 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 2870 source/encoder/search.cpp uint32_t sizeIdx = log2TrSize - 2; uint32_t 2879 source/encoder/search.cpp uint32_t strideResiY = resiYuv.m_size; uint32_t 2882 source/encoder/search.cpp uint32_t numSigY = m_quant.transformNxN(cu, fenc, fencYuv->m_size, curResiY, strideResiY, coeffCurY, log2TrSize, TEXT_LUMA, absPartIdx, false); uint32_t 2897 source/encoder/search.cpp uint32_t sizeIdxC = log2TrSizeC - 2; uint32_t 2898 source/encoder/search.cpp uint32_t strideResiC = resiYuv.m_csize; uint32_t 2900 source/encoder/search.cpp uint32_t coeffOffsetC = coeffOffsetY >> (m_hChromaShift + m_vChromaShift); uint32_t 2908 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 2909 source/encoder/search.cpp uint32_t subTUOffset = tuIterator.section << (log2TrSizeC * 2); uint32_t 2916 source/encoder/search.cpp uint32_t numSigU = m_quant.transformNxN(cu, fencCb, fencYuv->m_csize, curResiU, strideResiC, coeffCurU + subTUOffset, log2TrSizeC, TEXT_CHROMA_U, absPartIdxC, false); uint32_t 2930 source/encoder/search.cpp uint32_t numSigV = m_quant.transformNxN(cu, fencCr, fencYuv->m_csize, curResiV, strideResiC, coeffCurV + subTUOffset, log2TrSizeC, TEXT_CHROMA_V, absPartIdxC, false); uint32_t 2955 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 2956 source/encoder/search.cpp uint32_t ycbf = 0, ucbf = 0, vcbf = 0; uint32_t 2957 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 2976 source/encoder/search.cpp uint64_t Search::estimateNullCbfCost(sse_t dist, uint32_t energy, uint32_t tuDepth, TextType compId) uint32_t 2978 source/encoder/search.cpp uint32_t nullBits = m_entropyCoder.estimateCbfBits(0, compId, tuDepth); uint32_t 2988 source/encoder/search.cpp bool Search::splitTU(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, ShortYuv& resiYuv, Cost& splitCost, const uint32_t depthRange[2], int32_t splitMore) uint32_t 2991 source/encoder/search.cpp uint32_t depth = cuGeom.depth + tuDepth; uint32_t 2992 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 2994 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 2995 source/encoder/search.cpp uint32_t ycbf = 0, ucbf = 0, vcbf = 0; uint32_t 2996 source/encoder/search.cpp for (uint32_t qIdx = 0, qPartIdx = absPartIdx; qIdx < 4; ++qIdx, qPartIdx += qNumParts) uint32_t 3002 source/encoder/search.cpp for (uint32_t i = 1; i < cuGeom.numPartitions / 4; i++) uint32_t 3027 source/encoder/search.cpp uint32_t splitCbfBits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 3040 source/encoder/search.cpp void Search::estimateResidualQT(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, ShortYuv& resiYuv, Cost& outCosts, const uint32_t depthRange[2], int32_t splitMore) uint32_t 3043 source/encoder/search.cpp uint32_t depth = cuGeom.depth + tuDepth; uint32_t 3044 source/encoder/search.cpp uint32_t log2TrSize = cuGeom.log2CUSize - tuDepth; uint32_t 3050 source/encoder/search.cpp uint32_t idx = 0; uint32_t 3056 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - LOG2_UNIT_SIZE) * 2; uint32_t 3057 source/encoder/search.cpp uint32_t qIdx = (absPartIdx / qNumParts) % 4; uint32_t 3075 source/encoder/search.cpp uint32_t log2MaxTrSize = cuGeom.log2CUSize - m_maxTUDepth; uint32_t 3087 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 3088 source/encoder/search.cpp uint32_t codeChroma = (m_csp != X265_CSP_I400 && m_frame->m_fencPic->m_picCsp != X265_CSP_I400) ? 1 : 0; uint32_t 3089 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 3103 source/encoder/search.cpp uint32_t numSig[MAX_NUM_COMPONENT][2 /*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = { { 0, 0 }, {0, 0}, {0, 0} }; uint32_t 3104 source/encoder/search.cpp uint32_t singleBits[MAX_NUM_COMPONENT][2 /*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = { { 0, 0 }, { 0, 0 }, { 0, 0 } }; uint32_t 3106 source/encoder/search.cpp uint32_t singleEnergy[MAX_NUM_COMPONENT][2 /*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = { { 0, 0 }, { 0, 0 }, { 0, 0 } }; uint32_t 3107 source/encoder/search.cpp uint32_t bestTransformMode[MAX_NUM_COMPONENT][2 /*0 = top (or whole TU for non-4:2:2) sub-TU, 1 = bottom sub-TU*/] = { { 0, 0 }, { 0, 0 }, { 0, 0 } }; uint32_t 3112 source/encoder/search.cpp uint32_t trSize = 1 << log2TrSize; uint32_t 3114 source/encoder/search.cpp uint32_t absPartIdxStep = cuGeom.numPartitions >> tuDepthC * 2; uint32_t 3120 source/encoder/search.cpp uint32_t trSizeC = 1 << log2TrSizeC; uint32_t 3123 source/encoder/search.cpp const uint32_t qtLayer = log2TrSize - 2; uint32_t 3124 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << (LOG2_UNIT_SIZE * 2); uint32_t 3155 source/encoder/search.cpp uint32_t zeroEnergyY = 0; uint32_t 3162 source/encoder/search.cpp uint32_t strideResiY = m_rqt[qtLayer].resiQtYuv.m_size; uint32_t 3171 source/encoder/search.cpp uint32_t strideReconY = m_rqt[qtLayer].reconQtYuv.m_size; uint32_t 3175 source/encoder/search.cpp uint32_t nzCbfBitsY = m_entropyCoder.estimateCbfBits(cbfFlag[TEXT_LUMA][0], TEXT_LUMA, tuDepth); uint32_t 3176 source/encoder/search.cpp uint32_t nonZeroEnergyY = 0; uint64_t singleCostY = 0; uint32_t 3208 source/encoder/search.cpp uint32_t numCoeffY = 1 << (log2TrSize << 1); uint32_t 3239 source/encoder/search.cpp uint32_t coeffOffsetC = coeffOffsetY >> (m_hChromaShift + m_vChromaShift); uint32_t 3240 source/encoder/search.cpp uint32_t strideResiC = m_rqt[qtLayer].resiQtYuv.m_csize; uint32_t 3241 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 3244 source/encoder/search.cpp uint32_t zeroEnergyC = 0; uint32_t 3250 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 3251 source/encoder/search.cpp uint32_t subTUOffset = tuIterator.section << (log2TrSizeC * 2); uint32_t 3263 source/encoder/search.cpp uint32_t latestBitCount = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 3286 source/encoder/search.cpp uint32_t strideReconC = m_rqt[qtLayer].reconQtYuv.m_csize; uint32_t 3289 source/encoder/search.cpp uint32_t nzCbfBitsC = m_entropyCoder.estimateCbfBits(cbfFlag[chromaId][tuIterator.section], (TextType)chromaId, tuDepth); uint32_t 3290 source/encoder/search.cpp uint32_t nonZeroEnergyC = 0; uint64_t singleCostC = 0; uint32_t 3320 source/encoder/search.cpp uint32_t numCoeffC = 1 << (log2TrSizeC << 1); uint32_t 3355 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 3360 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 3369 source/encoder/search.cpp uint32_t nonZeroEnergyY = 0; uint32_t 3381 source/encoder/search.cpp uint32_t numSigTSkipY = m_quant.transformNxN(cu, fenc, fencYuv->m_size, resi, resiYuv.m_size, m_tsCoeff, log2TrSize, TEXT_LUMA, absPartIdx, true); uint32_t 3388 source/encoder/search.cpp const uint32_t skipSingleBitsY = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 3419 source/encoder/search.cpp uint32_t numCoeffY = 1 << (log2TrSize << 1); uint32_t 3430 source/encoder/search.cpp uint32_t nonZeroEnergyC = 0; uint32_t 3432 source/encoder/search.cpp uint32_t strideResiC = m_rqt[qtLayer].resiQtYuv.m_csize; uint32_t 3433 source/encoder/search.cpp uint32_t coeffOffsetC = coeffOffsetY >> (m_hChromaShift + m_vChromaShift); uint32_t 3437 source/encoder/search.cpp for (uint32_t chromaId = TEXT_CHROMA_U; chromaId <= TEXT_CHROMA_V; chromaId++) uint32_t 3444 source/encoder/search.cpp uint32_t absPartIdxC = tuIterator.absPartIdxTURelCU; uint32_t 3445 source/encoder/search.cpp uint32_t subTUOffset = tuIterator.section << (log2TrSizeC * 2); uint32_t 3456 source/encoder/search.cpp uint32_t numSigTSkipC = m_quant.transformNxN(cu, fenc, fencYuv->m_csize, resi, resiYuv.m_csize, m_tsCoeff, log2TrSizeC, (TextType)chromaId, absPartIdxC, true); uint32_t 3493 source/encoder/search.cpp uint32_t numCoeffC = 1 << (log2TrSizeC << 1); uint32_t 3532 source/encoder/search.cpp uint32_t cbfBits = m_entropyCoder.getNumberOfWrittenBits(); uint32_t 3534 source/encoder/search.cpp uint32_t coeffBits = 0; uint32_t 3536 source/encoder/search.cpp for (uint32_t subTUIndex = 0; subTUIndex < 2; subTUIndex++) uint32_t 3550 source/encoder/search.cpp for (uint32_t subTUIndex = 0; subTUIndex < 2; subTUIndex++) uint32_t 3566 source/encoder/search.cpp uint32_t numCoeff = trSize * trSize; uint32_t 3571 source/encoder/search.cpp uint32_t energy = 0; uint32_t 3572 source/encoder/search.cpp for (uint32_t i = 0; i < numCoeff; i++) uint32_t 3633 source/encoder/search.cpp uint32_t nextlog2TrSize = cuGeom.log2CUSize - (tuDepth + 1); uint32_t 3669 source/encoder/search.cpp uint32_t tuNumParts = absPartIdxStep >> 1; uint32_t 3692 source/encoder/search.cpp uint32_t tuNumParts = absPartIdxStep >> 1; uint32_t 3709 source/encoder/search.cpp void Search::codeInterSubdivCbfQT(CUData& cu, uint32_t absPartIdx, const uint32_t tuDepth, const uint32_t depthRange[2]) uint32_t 3714 source/encoder/search.cpp uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 3719 source/encoder/search.cpp uint32_t parentIdx = absPartIdx & (0xFF << (log2TrSize + 1 - LOG2_UNIT_SIZE) * 2); uint32_t 3733 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize -1 - LOG2_UNIT_SIZE) * 2; uint32_t 3734 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 3739 source/encoder/search.cpp void Search::saveResidualQTData(CUData& cu, ShortYuv& resiYuv, uint32_t absPartIdx, uint32_t tuDepth) uint32_t 3741 source/encoder/search.cpp const uint32_t log2TrSize = cu.m_log2CUSize[0] - tuDepth; uint32_t 3745 source/encoder/search.cpp uint32_t qNumParts = 1 << (log2TrSize - 1 - LOG2_UNIT_SIZE) * 2; uint32_t 3746 source/encoder/search.cpp for (uint32_t qIdx = 0; qIdx < 4; ++qIdx, absPartIdx += qNumParts) uint32_t 3751 source/encoder/search.cpp const uint32_t qtLayer = log2TrSize - 2; uint32_t 3753 source/encoder/search.cpp uint32_t log2TrSizeC = log2TrSize - m_hChromaShift; uint32_t 3754 source/encoder/search.cpp uint32_t codeChroma = (m_csp != X265_CSP_I400 && m_frame->m_fencPic->m_picCsp != X265_CSP_I400) ? 1 : 0; uint32_t 3755 source/encoder/search.cpp uint32_t tuDepthC = tuDepth; uint32_t 3766 source/encoder/search.cpp uint32_t numCoeffY = 1 << (log2TrSize * 2); uint32_t 3767 source/encoder/search.cpp uint32_t coeffOffsetY = absPartIdx << LOG2_UNIT_SIZE * 2; uint32_t 3776 source/encoder/search.cpp uint32_t numCoeffC = 1 << (log2TrSizeC * 2 + (m_csp == X265_CSP_I422)); uint32_t 3777 source/encoder/search.cpp uint32_t coeffOffsetC = coeffOffsetY >> (m_hChromaShift + m_vChromaShift); uint32_t 3790 source/encoder/search.cpp uint32_t Search::getIntraRemModeBits(CUData& cu, uint32_t absPartIdx, uint32_t mpmModes[3], uint64_t& mpms) const uint32_t 3803 source/encoder/search.cpp void Search::updateCandList(uint32_t mode, uint64_t cost, int maxCandCount, uint32_t* candModeList, uint64_t* candCostList) uint32_t 3805 source/encoder/search.cpp uint32_t maxIndex = 0; uint32_t 3835 source/encoder/search.cpp uint32_t bits = mode.contexts.getNumberOfWrittenBits(); uint32_t 3842 source/encoder/search.cpp mode.sa8dCost = m_rdCost.calcRdSADCost((uint32_t)mode.distortion, mode.sa8dBits); uint32_t 3864 source/encoder/search.cpp for (uint32_t blkIdx = 0; blkIdx < cuGeom.numPartitions; blkIdx++) uint32_t 3878 source/encoder/search.cpp uint32_t bits = mode.contexts.getNumberOfWrittenBits(); uint32_t 3885 source/encoder/search.cpp mode.sa8dCost = m_rdCost.calcRdSADCost((uint32_t)mode.distortion, mode.sa8dBits); uint32_t 91 source/encoder/search.h uint32_t mvCost; uint32_t 92 source/encoder/search.h uint32_t cost; uint32_t 119 source/encoder/search.h uint32_t sa8dBits; // signal bits used in sa8dCost calculation uint32_t 120 source/encoder/search.h uint32_t psyEnergy; // sum of partition psycho-visual energy difference uint32_t 121 source/encoder/search.h uint32_t ssimEnergy; uint32_t 126 source/encoder/search.h uint32_t totalBits; // sum of partition bits (mv + coeff) uint32_t 127 source/encoder/search.h uint32_t mvBits; // Mv bits + Ref + block type (or intra mode) uint32_t 128 source/encoder/search.h uint32_t coeffBits; // Texture bits (DCT Coeffs) uint32_t 183 source/encoder/search.h uint32_t skippedMotionReferences[NUM_CU_DEPTH]; uint32_t 184 source/encoder/search.h uint32_t totalMotionReferences[NUM_CU_DEPTH]; uint32_t 185 source/encoder/search.h uint32_t skippedIntraCU[NUM_CU_DEPTH]; uint32_t 186 source/encoder/search.h uint32_t totalIntraCU[NUM_CU_DEPTH]; uint32_t 209 source/encoder/search.h for (uint32_t i = 0; i <= param.maxCUDepth; i++) uint32_t 280 source/encoder/search.h uint32_t m_numLayers; uint32_t 281 source/encoder/search.h uint32_t m_refLagPixels; uint32_t 312 source/encoder/search.h void predInterSearch(Mode& interMode, const CUGeom& cuGeom, bool bChromaMC, uint32_t masks[2]); uint32_t 320 source/encoder/search.h void residualTransformQuantInter(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, const uint32_t depthRange[2]); uint32_t 321 source/encoder/search.h void residualTransformQuantIntra(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, const uint32_t depthRange[2]); uint32_t 322 source/encoder/search.h void residualQTIntraChroma(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth); uint32_t 365 source/encoder/search.h uint32_t m_listSelBits[3]; uint32_t 368 source/encoder/search.h void saveResidualQTData(CUData& cu, ShortYuv& resiYuv, uint32_t absPartIdx, uint32_t tuDepth); uint32_t 371 source/encoder/search.h sse_t estIntraPredQT(Mode &intraMode, const CUGeom& cuGeom, const uint32_t depthRange[2]); uint32_t 376 source/encoder/search.h void codeSubdivCbfQTChroma(const CUData& cu, uint32_t tuDepth, uint32_t absPartIdx); uint32_t 377 source/encoder/search.h void codeInterSubdivCbfQT(CUData& cu, uint32_t absPartIdx, const uint32_t tuDepth, const uint32_t depthRange[2]); uint32_t 378 source/encoder/search.h void codeCoeffQTChroma(const CUData& cu, uint32_t tuDepth, uint32_t absPartIdx, TextType ttype); uint32_t 383 source/encoder/search.h uint32_t bits; uint32_t 385 source/encoder/search.h uint32_t energy; uint32_t 392 source/encoder/search.h uint32_t bestTransformMode[NUM_SUBPART][MAX_NUM_COMPONENT][2]; uint32_t 397 source/encoder/search.h uint64_t estimateNullCbfCost(sse_t dist, uint32_t energy, uint32_t tuDepth, TextType compId); uint32_t 398 source/encoder/search.h bool splitTU(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t tuDepth, ShortYuv& resiYuv, Cost& splitCost, const uint32_t depthRange[2], int32_t splitMore); uint32_t 399 source/encoder/search.h void estimateResidualQT(Mode& mode, const CUGeom& cuGeom, uint32_t absPartIdx, uint32_t depth, ShortYuv& resiYuv, Cost& costs, const uint32_t depthRange[2], int32_t splitMore = -1); uint32_t 402 source/encoder/search.h void codeIntraLumaQT(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, bool bAllowSplit, Cost& costs, const uint32_t depthRange[2]); uint32_t 403 source/encoder/search.h void codeIntraLumaTSkip(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, Cost& costs); uint32_t 404 source/encoder/search.h void extractIntraResultQT(CUData& cu, Yuv& reconYuv, uint32_t tuDepth, uint32_t absPartIdx); uint32_t 407 source/encoder/search.h void codeIntraChromaQt(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t absPartIdx, Cost& outCost); uint32_t 408 source/encoder/search.h void codeIntraChromaTSkip(Mode& mode, const CUGeom& cuGeom, uint32_t tuDepth, uint32_t tuDepthC, uint32_t absPartIdx, Cost& outCost); uint32_t 409 source/encoder/search.h void extractIntraResultChromaQT(CUData& cu, Yuv& reconYuv, uint32_t absPartIdx, uint32_t tuDepth); uint32_t 412 source/encoder/search.h void offsetSubTUCBFs(CUData& cu, TextType ttype, uint32_t tuDepth, uint32_t absPartIdx); uint32_t 418 source/encoder/search.h uint32_t dir; uint32_t 419 source/encoder/search.h uint32_t index; uint32_t 420 source/encoder/search.h uint32_t bits; uint32_t 425 source/encoder/search.h const MV& checkBestMVP(const MV amvpCand[2], const MV& mv, int& mvpIdx, uint32_t& outBits, uint32_t& outCost) const; uint32_t 427 source/encoder/search.h uint32_t mergeEstimation(CUData& cu, const CUGeom& cuGeom, const PredictionUnit& pu, int puIdx, MergeData& m); uint32_t 428 source/encoder/search.h static void getBlkBits(PartSize cuMode, bool bPSlice, int puIdx, uint32_t lastMode, uint32_t blockBit[3]); uint32_t 432 source/encoder/search.h static void updateCandList(uint32_t mode, uint64_t cost, int maxCandCount, uint32_t* candModeList, uint64_t* candCostList); uint32_t 435 source/encoder/search.h uint32_t getIntraRemModeBits(CUData & cu, uint32_t absPartIdx, uint32_t mpmModes[3], uint64_t& mpms) const; uint32_t 41 source/encoder/sei.cpp uint32_t type = m_payloadType; uint32_t 51 source/encoder/sei.cpp uint32_t payloadType = m_payloadType; uint32_t 56 source/encoder/sei.cpp uint32_t payloadSize; uint32_t 92 source/encoder/sei.cpp void SEI::setSize(uint32_t size) uint32_t 41 source/encoder/sei.h void setSize(uint32_t size); uint32_t 45 source/encoder/sei.h uint32_t m_payloadSize; uint32_t 62 source/encoder/sei.h for (uint32_t i = 0; i < 16; i++) uint32_t 64 source/encoder/sei.h for (uint32_t i = 0; i < m_payloadSize; i++) uint32_t 80 source/encoder/sei.h uint32_t maxDisplayMasteringLuminance; uint32_t 81 source/encoder/sei.h uint32_t minDisplayMasteringLuminance; uint32_t 93 source/encoder/sei.h for (uint32_t i = 0; i < 3; i++) uint32_t 145 source/encoder/sei.h for (uint32_t i = 0; i < 16; i++) uint32_t 150 source/encoder/sei.h uint32_t val = (m_digest[yuvIdx][0] << 8) + m_digest[yuvIdx][1]; uint32_t 155 source/encoder/sei.h uint32_t val = (m_digest[yuvIdx][0] << 24) + (m_digest[yuvIdx][1] << 16) + (m_digest[yuvIdx][2] << 8) + m_digest[yuvIdx][3]; uint32_t 197 source/encoder/sei.h uint32_t m_initialCpbRemovalDelay; uint32_t 198 source/encoder/sei.h uint32_t m_initialCpbRemovalDelayOffset; uint32_t 199 source/encoder/sei.h uint32_t m_auCpbRemovalDelayDelta; uint32_t 224 source/encoder/sei.h uint32_t m_picStruct; uint32_t 225 source/encoder/sei.h uint32_t m_sourceScanType; uint32_t 228 source/encoder/sei.h uint32_t m_auCpbRemovalDelay; uint32_t 229 source/encoder/sei.h uint32_t m_picDpbOutputDelay; uint32_t 287 source/encoder/sei.h uint32_t i = 0; uint32_t 48 source/encoder/slicetype.cpp inline uint32_t acEnergyVar(Frame *curFrame, uint64_t sum_ssd, int shift, int plane) uint32_t 50 source/encoder/slicetype.cpp uint32_t sum = (uint32_t)sum_ssd; uint32_t 51 source/encoder/slicetype.cpp uint32_t ssd = (uint32_t)(sum_ssd >> 32); uint32_t 59 source/encoder/slicetype.cpp inline uint32_t acEnergyPlane(Frame *curFrame, pixel* src, intptr_t srcStride, int plane, int colorFormat, uint32_t qgSize) uint32_t 88 source/encoder/slicetype.cpp uint32_t LookaheadTLD::acEnergyCu(Frame* curFrame, uint32_t blockX, uint32_t blockY, int csp, uint32_t qgSize) uint32_t 97 source/encoder/slicetype.cpp uint32_t var; uint32_t 109 source/encoder/slicetype.cpp uint32_t LookaheadTLD::lumaSumCu(Frame* curFrame, uint32_t blockX, uint32_t blockY, uint32_t qgSize) uint32_t 121 source/encoder/slicetype.cpp return (uint32_t)sum_ssd; uint32_t 204 source/encoder/slicetype.cpp uint32_t energy = acEnergyCu(curFrame, blockX, blockY, param->internalCsp, param->rc.qgSize); uint32_t 242 source/encoder/slicetype.cpp uint32_t energy = acEnergyCu(curFrame, blockX, blockY, param->internalCsp,param->rc.qgSize); uint32_t 248 source/encoder/slicetype.cpp uint32_t sum = lumaSumCu(curFrame, blockX, blockY, param->rc.qgSize); uint32_t 249 source/encoder/slicetype.cpp uint32_t lumaAvg = sum / (loopIncr * loopIncr); uint32_t 313 source/encoder/slicetype.cpp void LookaheadTLD::lowresIntraEstimate(Lowres& fenc, uint32_t qgSize) uint32_t 355 source/encoder/slicetype.cpp uint32_t ilowmode = 0; uint32_t 368 source/encoder/slicetype.cpp uint32_t mode, alowmode = 4; uint32_t 376 source/encoder/slicetype.cpp for (uint32_t dist = 2; dist >= 1; dist--) uint32_t 424 source/encoder/slicetype.cpp uint32_t LookaheadTLD::weightCostLuma(Lowres& fenc, Lowres& ref, WeightParam& wp) uint32_t 443 source/encoder/slicetype.cpp uint32_t cost = 0; uint32_t 908 source/encoder/slicetype.cpp uint32_t lowresRow = 0, lowresCol = 0, lowresCuIdx = 0, sum = 0, intraSum = 0; uint32_t 909 source/encoder/slicetype.cpp uint32_t scale = m_param->maxCUSize / (2 * X265_LOWRES_CU_SIZE); uint32_t 910 source/encoder/slicetype.cpp uint32_t numCuInHeight = (m_param->sourceHeight + m_param->maxCUSize - 1) / m_param->maxCUSize; uint32_t 911 source/encoder/slicetype.cpp uint32_t widthInLowresCu = (uint32_t)m_8x8Width, heightInLowresCu = (uint32_t)m_8x8Height; uint32_t 917 source/encoder/slicetype.cpp for (uint32_t row = 0; row < numCuInHeight; row++) uint32_t 920 source/encoder/slicetype.cpp for (uint32_t cnt = 0; cnt < scale && lowresRow < heightInLowresCu; lowresRow++, cnt++) uint32_t 943 source/encoder/slicetype.cpp for (uint32_t x = curFrame->m_encData->m_pir.pirStartCol; x <= curFrame->m_encData->m_pir.pirEndCol; x++) uint32_t 87 source/encoder/slicetype.h void lowresIntraEstimate(Lowres& fenc, uint32_t qgSize); uint32_t 93 source/encoder/slicetype.h uint32_t acEnergyCu(Frame* curFrame, uint32_t blockX, uint32_t blockY, int csp, uint32_t qgSize); uint32_t 94 source/encoder/slicetype.h uint32_t lumaSumCu(Frame* curFrame, uint32_t blockX, uint32_t blockY, uint32_t qgSize); uint32_t 95 source/encoder/slicetype.h uint32_t weightCostLuma(Lowres& fenc, Lowres& ref, WeightParam& wp); uint32_t 169 source/encoder/weightPrediction.cpp uint32_t weightCost(pixel * fenc, uint32_t 194 source/encoder/weightPrediction.cpp uint32_t cost = 0; uint32_t 406 source/encoder/weightPrediction.cpp uint32_t origscore = weightCost(orig, fref, weightTemp, stride, cache, width, height, NULL, !plane); uint32_t 413 source/encoder/weightPrediction.cpp uint32_t minscore = origscore; uint32_t 447 source/encoder/weightPrediction.cpp uint32_t s = weightCost(orig, fref, weightTemp, stride, cache, width, height, &wsp, !plane) + uint32_t 40 source/input/y4m.h uint32_t rateNum; uint32_t 42 source/input/y4m.h uint32_t rateDenom; uint32_t 44 source/input/y4m.h uint32_t sarWidth; uint32_t 46 source/input/y4m.h uint32_t sarHeight; uint32_t 54 source/input/yuv.cpp uint32_t pixelbytes = depth > 8 ? 2 : 1; uint32_t 58 source/input/yuv.cpp uint32_t w = width >> x265_cli_csps[colorSpace].width[i]; uint32_t 59 source/input/yuv.cpp uint32_t h = height >> x265_cli_csps[colorSpace].height[i]; uint32_t 89 source/input/yuv.cpp for (uint32_t i = 0; i < QUEUE_SIZE; i++) uint32_t 229 source/input/yuv.cpp uint32_t pixelbytes = depth > 8 ? 2 : 1; uint32_t 46 source/input/yuv.h uint32_t depth; uint32_t 48 source/input/yuv.h uint32_t framesize; uint32_t 33 source/output/output.cpp ReconFile* ReconFile::open(const char *fname, int width, int height, uint32_t bitdepth, uint32_t fpsNum, uint32_t fpsDenom, int csp) uint32_t 44 source/output/output.h static ReconFile* open(const char *fname, int width, int height, uint32_t bitdepth, uint32_t 45 source/output/output.h uint32_t fpsNum, uint32_t fpsDenom, int csp); uint32_t 78 source/output/output.h virtual int writeHeaders(const x265_nal* nal, uint32_t nalcount) = 0; uint32_t 80 source/output/output.h virtual int writeFrame(const x265_nal* nal, uint32_t nalcount, x265_picture& pic) = 0; uint32_t 48 source/output/raw.cpp int RAWOutput::writeHeaders(const x265_nal* nal, uint32_t nalcount) uint32_t 50 source/output/raw.cpp uint32_t bytes = 0; uint32_t 52 source/output/raw.cpp for (uint32_t i = 0; i < nalcount; i++) uint32_t 62 source/output/raw.cpp int RAWOutput::writeFrame(const x265_nal* nal, uint32_t nalcount, x265_picture&) uint32_t 64 source/output/raw.cpp uint32_t bytes = 0; uint32_t 66 source/output/raw.cpp for (uint32_t i = 0; i < nalcount; i++) uint32_t 56 source/output/raw.h int writeHeaders(const x265_nal* nal, uint32_t nalcount); uint32_t 58 source/output/raw.h int writeFrame(const x265_nal* nal, uint32_t nalcount, x265_picture&); uint32_t 64 source/output/reconplay.cpp frameSize += (uint32_t)((width >> x265_cli_csps[colorSpace].width[i]) * (height >> x265_cli_csps[colorSpace].height[i])); uint32_t 31 source/output/y4m.cpp Y4MOutput::Y4MOutput(const char *filename, int w, int h, uint32_t fpsNum, uint32_t fpsDenom, int csp) uint32_t 49 source/output/y4m.cpp frameSize += (uint32_t)((width >> x265_cli_csps[colorSpace].width[i]) * (height >> x265_cli_csps[colorSpace].height[i])); uint32_t 43 source/output/y4m.h uint32_t frameSize; uint32_t 55 source/output/y4m.h Y4MOutput(const char *filename, int width, int height, uint32_t fpsNum, uint32_t fpsDenom, int csp); uint32_t 31 source/output/yuv.cpp YUVOutput::YUVOutput(const char *filename, int w, int h, uint32_t d, int csp) uint32_t 42 source/output/yuv.cpp frameSize += (uint32_t)((width >> x265_cli_csps[colorSpace].width[i]) * (height >> x265_cli_csps[colorSpace].height[i])); uint32_t 43 source/output/yuv.h uint32_t depth; uint32_t 47 source/output/yuv.h uint32_t frameSize; uint32_t 55 source/output/yuv.h YUVOutput(const char *filename, int width, int height, uint32_t bitdepth, int csp); uint32_t 215 source/test/mbdstharness.cpp uint32_t optReturnValue = 0; uint32_t 216 source/test/mbdstharness.cpp uint32_t refReturnValue = 0; uint32_t 234 source/test/mbdstharness.cpp optReturnValue = (uint32_t)checked(opt, short_test_buff[index1] + j, int_test_buff[index2] + j, mintbuf3, mshortbuf3, bits, valueToAdd, numCoeff); uint32_t 261 source/test/mbdstharness.cpp uint32_t optReturnValue = 0; uint32_t 262 source/test/mbdstharness.cpp uint32_t refReturnValue = 0; uint32_t 273 source/test/mbdstharness.cpp optReturnValue = (uint32_t)checked(opt, short_test_buff[index1] + j, int_test_buff[index2] + j, mshortbuf3, bits, valueToAdd, numCoeff); uint32_t 316 source/test/mbdstharness.cpp memset(mubuf1, 0, num * sizeof(uint32_t)); uint32_t 317 source/test/mbdstharness.cpp memset(mubuf2, 0, num * sizeof(uint32_t)); uint32_t 59 source/test/mbdstharness.h uint32_t mubuf1[MAX_TU_SIZE]; uint32_t 60 source/test/mbdstharness.h uint32_t mubuf2[MAX_TU_SIZE]; uint32_t 1618 source/test/pixelharness.cpp const uint32_t idxY = j / MLS_CG_SIZE; uint32_t 1619 source/test/pixelharness.cpp const uint32_t idxX = j % MLS_CG_SIZE; uint32_t 1623 source/test/pixelharness.cpp uint32_t ref_scanPos = ref(rand_src, trSize, scanTbl); uint32_t 1624 source/test/pixelharness.cpp uint32_t opt_scanPos = (int)checked(opt, rand_src, trSize, scanTbl); uint32_t 1742 source/test/pixelharness.cpp const uint8_t *rand_tabSigCtx = table_cnt[(rand_scan_size == 2) ? 4 : (uint32_t)rand_patternSigCtx]; uint32_t 1749 source/test/pixelharness.cpp uint32_t scanFlagMask = 0; uint32_t 1754 source/test/pixelharness.cpp uint32_t pos = scanTbl[subPosBase + k]; uint32_t 1767 source/test/pixelharness.cpp const uint32_t blkPosBase = scanTbl[subPosBase]; uint32_t 1768 source/test/pixelharness.cpp uint32_t ref_sum = ref(scanTblCG4x4, &ref_src[blkPosBase + i], (intptr_t)trSize, ref_absCoeff + numNonZero, rand_tabSigCtx, scanFlagMask, (uint8_t*)ref_baseCtx, offset, rand_scanPosSigOff, subPosBase); uint32_t 1769 source/test/pixelharness.cpp uint32_t opt_sum = (uint32_t)checked(opt, scanTblCG4x4, &ref_src[blkPosBase + i], (intptr_t)trSize, opt_absCoeff + numNonZero, rand_tabSigCtx, scanFlagMask, (uint8_t*)opt_baseCtx, offset, rand_scanPosSigOff, subPosBase); uint32_t 1804 source/test/pixelharness.cpp uint32_t firstC2Idx = 0; uint32_t 2009 source/test/pixelharness.cpp uint32_t dst_ref[BUFFSIZE] = { 0 }; uint32_t 2010 source/test/pixelharness.cpp uint32_t dst_opt[BUFFSIZE] = { 0 }; uint32_t 2028 source/test/pixelharness.cpp uint32_t *dst_ref_ptr = dst_ref + srcStep * pady + padx; uint32_t 2029 source/test/pixelharness.cpp uint32_t *dst_opt_ptr = dst_opt + srcStep * pady + padx; uint32_t 2035 source/test/pixelharness.cpp if (memcmp(dst_ref, dst_opt, sizeof(uint32_t) * BUFFSIZE)) uint32_t 2051 source/test/pixelharness.cpp uint32_t dst_ref[BUFFSIZE] = { 0 }; uint32_t 2052 source/test/pixelharness.cpp uint32_t dst_opt[BUFFSIZE] = { 0 }; uint32_t 2058 source/test/pixelharness.cpp uint32_t *dst_ref_ptr = dst_ref + srcStep[l] * pady + padx; uint32_t 2059 source/test/pixelharness.cpp uint32_t *dst_opt_ptr = dst_opt + srcStep[l] * pady + padx; uint32_t 2065 source/test/pixelharness.cpp if (memcmp(dst_ref, dst_opt, sizeof(uint32_t) * BUFFSIZE)) uint32_t 3368 source/test/pixelharness.cpp REPORT_SPEEDUP(opt.integral_initv[k], ref.integral_initv[k], (uint32_t*)pbuf1, STRIDE); uint32_t 3376 source/test/pixelharness.cpp uint32_t dst_buf[BUFFSIZE] = { 0 }; uint32_t 73 source/test/testharness.h static inline uint32_t __rdtsc(void) uint32_t 75 source/test/testharness.h uint32_t a = 0; uint32_t 97 source/test/testharness.h uint32_t cycles = 0; int runs = 0; \ uint32_t 100 source/test/testharness.h uint32_t t0 = (uint32_t)__rdtsc(); \ uint32_t 105 source/test/testharness.h uint32_t t1 = (uint32_t)__rdtsc() - t0; \ uint32_t 108 source/test/testharness.h uint32_t refcycles = 0; int refruns = 0; \ uint32_t 111 source/test/testharness.h uint32_t t0 = (uint32_t)__rdtsc(); \ uint32_t 116 source/test/testharness.h uint32_t t1 = (uint32_t)__rdtsc() - t0; \ uint32_t 71 source/x265-extras.cpp uint32_t size = param.maxCUSize; uint32_t 72 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 81 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 91 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 98 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 104 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 120 source/x265-extras.cpp for (uint32_t i = 0; i< param.maxLog2CUSize - (uint32_t)g_log2Size[param.minCUSize] + 1; i++) uint32_t 134 source/x265-extras.cpp if ((uint32_t)g_log2Size[param.minCUSize] == 3) uint32_t 191 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 198 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 208 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 211 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 213 source/x265-extras.cpp for (uint32_t depth = 0; depth <= param.maxCUDepth; depth++) uint32_t 232 source/x265-extras.cpp for (uint32_t i = 0; i < param.maxLog2CUSize - (uint32_t)g_log2Size[param.minCUSize] + 1; i++) uint32_t 237 source/x265-extras.cpp for (uint32_t j = 0; j < 3; j++) uint32_t 243 source/x265-extras.cpp if ((uint32_t)g_log2Size[param.minCUSize] == 3) uint32_t 433 source/x265-extras.cpp uint32_t pixelCount = x265_picturePlaneSize(picIn.colorSpace, picWidth, picHeight, i); uint32_t 438 source/x265-extras.cpp for (uint32_t j = 0; j < pixelCount; j++) uint32_t 82 source/x265.cpp uint32_t seek; // number of frames to skip from the beginning uint32_t 83 source/x265.cpp uint32_t framesToBeEncoded; // number of frames to encode uint32_t 110 source/x265.cpp void printStatus(uint32_t frameNum); uint32_t 131 source/x265.cpp void CLIOptions::printStatus(uint32_t frameNum) uint32_t 284 source/x265.cpp OPT2("frame-skip", "seek") this->seek = (uint32_t)x265_atoi(optarg, bError); uint32_t 285 source/x265.cpp OPT("frames") this->framesToBeEncoded = (uint32_t)x265_atoi(optarg, bError); uint32_t 290 source/x265.cpp OPT("input-depth") inputBitDepth = (uint32_t)x265_atoi(optarg, bError); uint32_t 292 source/x265.cpp OPT("recon-depth") reconFileBitDepth = (uint32_t)x265_atoi(optarg, bError); uint32_t 452 source/x265.cpp uint32_t filePos; uint32_t 586 source/x265.cpp uint32_t inFrameCount = 0; uint32_t 587 source/x265.cpp uint32_t outFrameCount = 0; uint32_t 590 source/x265.cpp uint32_t nal; uint32_t 86 source/x265.h uint32_t type; /* NalUnitType */ uint32_t 87 source/x265.h uint32_t sizeBytes; /* size in bytes */ uint32_t 95 source/x265.h uint32_t frameRecordSize; uint32_t 96 source/x265.h uint32_t poc; uint32_t 97 source/x265.h uint32_t sliceType; uint32_t 98 source/x265.h uint32_t numCUsInFrame; uint32_t 99 source/x265.h uint32_t numPartitions; uint32_t 100 source/x265.h uint32_t depthBytes; uint32_t 136 source/x265.h uint32_t poc; uint32_t 137 source/x265.h uint32_t frameRecordSize; uint32_t 499 source/x265.h uint32_t numPics; uint32_t 514 source/x265.h uint32_t encodedPictureCount; /* number of output pictures thus far */ uint32_t 515 source/x265.h uint32_t totalWPFrames; /* number of uni-directional weighted frames used */ uint32_t 679 source/x265.h uint32_t fpsNum; uint32_t 680 source/x265.h uint32_t fpsDenom; uint32_t 860 source/x265.h uint32_t maxCUSize; uint32_t 865 source/x265.h uint32_t minCUSize; uint32_t 883 source/x265.h uint32_t maxTUSize; uint32_t 889 source/x265.h uint32_t tuQTMaxInterDepth; uint32_t 895 source/x265.h uint32_t tuQTMaxIntraDepth; uint32_t 899 source/x265.h uint32_t limitTU; uint32_t 962 source/x265.h uint32_t maxNumMergeCand; uint32_t 971 source/x265.h uint32_t limitReferences; uint32_t 974 source/x265.h uint32_t limitModes; uint32_t 1235 source/x265.h uint32_t qgSize; uint32_t 1465 source/x265.h uint32_t maxLog2CUSize; uint32_t 1468 source/x265.h uint32_t maxCUDepth; uint32_t 1471 source/x265.h uint32_t unitSizeDepth; uint32_t 1474 source/x265.h uint32_t num4x4Partitions; uint32_t 1617 source/x265.h int x265_encoder_headers(x265_encoder *, x265_nal **pp_nal, uint32_t *pi_nal); uint32_t 1627 source/x265.h int x265_encoder_encode(x265_encoder *encoder, x265_nal **pp_nal, uint32_t *pi_nal, x265_picture *pic_in, x265_picture *pic_out); uint32_t 1646 source/x265.h void x265_encoder_get_stats(x265_encoder *encoder, x265_stats *, uint32_t statsSizeBytes); uint32_t 1718 source/x265.h int (*encoder_headers)(x265_encoder*, x265_nal**, uint32_t*); uint32_t 1719 source/x265.h int (*encoder_encode)(x265_encoder*, x265_nal**, uint32_t*, x265_picture*, x265_picture*); uint32_t 1720 source/x265.h void (*encoder_get_stats)(x265_encoder*, x265_stats*, uint32_t);