Changeset 615 in 3DVCSoftware for branches/HTM-8.0-dev0/source/Lib/TLibEncoder
- Timestamp:
- 6 Sep 2013, 00:42:44 (12 years ago)
- Location:
- branches/HTM-8.0-dev0/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r608 r615 848 848 } 849 849 } 850 #if H_3D_TMVP851 850 WRITE_FLAG( pcVPS->getIvMvScalingFlag( ) ? 1 : 0 , "iv_mv_scaling_flag" ); 852 #endif853 851 #else 854 852 WRITE_FLAG( 0, "vps_extension2_flag" ); -
branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncCu.cpp
r608 r615 416 416 417 417 Bool bTrySplitDQP = true; 418 #if MTK_VSP_FIX_ALIGN_WD_E0172418 #if H_3D_VSP 419 419 DisInfo DvInfo; 420 420 DvInfo.bDV = false; … … 530 530 531 531 #if H_3D_NBDV 532 #if !MTK_VSP_FIX_ALIGN_WD_E0172533 DisInfo DvInfo;534 DvInfo.bDV = false;535 DvInfo.m_acNBDV.setZero();536 DvInfo.m_aVIdxCan = 0;537 #if H_3D_NBDV_REF538 DvInfo.m_acDoNBDV.setZero();539 #endif540 #endif541 532 if( rpcTempCU->getSlice()->getSliceType() != I_SLICE ) 542 533 { … … 598 589 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N ); rpcTempCU->initEstData( uiDepth, iQP );//by Competition for inter_2Nx2N 599 590 #endif 600 #if MTK_VSP_FIX_ALIGN_WD_E0172591 #if H_3D_VSP 601 592 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 602 593 #endif … … 611 602 #endif 612 603 rpcTempCU->initEstData( uiDepth, iQP ); 613 #if MTK_VSP_FIX_ALIGN_WD_E0172604 #if H_3D_VSP 614 605 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 615 606 #endif … … 638 629 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N ); rpcTempCU->initEstData( uiDepth, iQP ); 639 630 #endif 640 #if MTK_VSP_FIX_ALIGN_WD_E0172631 #if H_3D_VSP 641 632 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 642 633 #endif … … 725 716 #endif 726 717 rpcTempCU->initEstData( uiDepth, iQP ); 727 #if MTK_VSP_FIX_ALIGN_WD_E0172718 #if H_3D_VSP 728 719 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 729 720 #endif … … 745 736 #endif 746 737 rpcTempCU->initEstData( uiDepth, iQP ); 747 #if MTK_VSP_FIX_ALIGN_WD_E0172738 #if H_3D_VSP 748 739 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 749 740 #endif … … 765 756 #endif 766 757 rpcTempCU->initEstData( uiDepth, iQP ); 767 #if MTK_VSP_FIX_ALIGN_WD_E0172758 #if H_3D_VSP 768 759 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 769 760 #endif … … 804 795 #endif 805 796 rpcTempCU->initEstData( uiDepth, iQP ); 806 #if MTK_VSP_FIX_ALIGN_WD_E0172797 #if H_3D_VSP 807 798 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 808 799 #endif … … 824 815 #endif 825 816 rpcTempCU->initEstData( uiDepth, iQP ); 826 #if MTK_VSP_FIX_ALIGN_WD_E0172817 #if H_3D_VSP 827 818 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 828 819 #endif … … 848 839 #endif 849 840 rpcTempCU->initEstData( uiDepth, iQP ); 850 #if MTK_VSP_FIX_ALIGN_WD_E0172841 #if H_3D_VSP 851 842 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 852 843 #endif … … 868 859 #endif 869 860 rpcTempCU->initEstData( uiDepth, iQP ); 870 #if MTK_VSP_FIX_ALIGN_WD_E0172861 #if H_3D_VSP 871 862 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 872 863 #endif … … 894 885 #endif 895 886 rpcTempCU->initEstData( uiDepth, iQP ); 896 #if MTK_VSP_FIX_ALIGN_WD_E0172887 #if H_3D_VSP 897 888 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 898 889 #endif … … 914 905 #endif 915 906 rpcTempCU->initEstData( uiDepth, iQP ); 916 #if MTK_VSP_FIX_ALIGN_WD_E0172907 #if H_3D_VSP 917 908 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 918 909 #endif … … 934 925 #endif 935 926 rpcTempCU->initEstData( uiDepth, iQP ); 936 #if MTK_VSP_FIX_ALIGN_WD_E0172927 #if H_3D_VSP 937 928 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 938 929 #endif … … 954 945 #endif 955 946 rpcTempCU->initEstData( uiDepth, iQP ); 956 #if MTK_VSP_FIX_ALIGN_WD_E0172947 #if H_3D_VSP 957 948 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 958 949 #endif … … 968 959 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU ); 969 960 rpcTempCU->initEstData( uiDepth, iQP ); 970 #if MTK_VSP_FIX_ALIGN_WD_E0172961 #if H_3D_VSP 971 962 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 972 963 #endif 973 964 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD ); 974 965 rpcTempCU->initEstData( uiDepth, iQP ); 975 #if MTK_VSP_FIX_ALIGN_WD_E0172966 #if H_3D_VSP 976 967 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 977 968 #endif … … 983 974 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N ); 984 975 rpcTempCU->initEstData( uiDepth, iQP ); 985 #if MTK_VSP_FIX_ALIGN_WD_E0172976 #if H_3D_VSP 986 977 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 987 978 #endif 988 979 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N ); 989 980 rpcTempCU->initEstData( uiDepth, iQP ); 990 #if MTK_VSP_FIX_ALIGN_WD_E0172981 #if H_3D_VSP 991 982 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 992 983 #endif … … 1761 1752 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 1762 1753 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 1763 #if MTK_VSP_FIX_ALIGN_WD_E01721764 1754 InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM]; 1765 1755 rpcTempCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, vspFlag,inheritedVSPDisInfo, numValidMergeCand ); 1766 #else1767 #if MTK_VSP_FIX_E01721768 Int vspDir[MRG_MAX_NUM_CANDS_MEM];1769 memset(vspDir, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);1770 rpcTempCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, vspFlag,vspDir, numValidMergeCand );1771 #else1772 rpcTempCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, vspFlag, numValidMergeCand );1773 #endif1774 #endif//end of MTK_VSP_FIX_ALIGN_WD_E01721775 1756 #else 1776 1757 rpcTempCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, numValidMergeCand ); … … 1840 1821 #if H_3D_VSP 1841 1822 rpcTempCU->setVSPFlagSubParts( vspFlag[uiMergeCand], 0, 0, uhDepth ); 1842 #if MTK_VSP_FIX_ALIGN_WD_E01721843 1823 rpcTempCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeCand].m_acDvInfo, 0, 0, uhDepth ); 1844 #endif1845 #if MTK_VSP_FIX_E01721846 rpcTempCU->setVSPDirSubParts( vspDir[uiMergeCand], 0, 0, uhDepth );1847 #endif1848 1824 #endif 1849 1825 rpcTempCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeCand], 0, 0, uhDepth ); // interprets depth relative to LCU level -
branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
r614 r615 3603 3603 #if H_3D_VSP 3604 3604 , Int* vspFlag 3605 #if MTK_VSP_FIX_ALIGN_WD_E01723606 3605 , InheritedVSPDisInfo* inheritedVSPDisInfo 3607 #endif3608 #if MTK_VSP_FIX_E01723609 , Int* vspDir3610 #endif3611 3606 #endif 3612 3607 , Int& numValidMergeCand … … 3628 3623 #if H_3D_VSP 3629 3624 , vspFlag 3630 #if MTK_VSP_FIX_ALIGN_WD_E01723631 3625 , inheritedVSPDisInfo 3632 #endif3633 #if MTK_VSP_FIX_E01723634 , vspDir3635 #endif3636 3626 #endif 3637 3627 , numValidMergeCand … … 3645 3635 #if H_3D_VSP 3646 3636 , vspFlag 3647 #if MTK_VSP_FIX_ALIGN_WD_E01723648 3637 , inheritedVSPDisInfo 3649 #endif3650 #if MTK_VSP_FIX_E01723651 , vspDir3652 #endif3653 3638 #endif 3654 3639 , numValidMergeCand 3655 3640 ); 3656 3641 } 3657 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E01723642 #if H_3D_VSP 3658 3643 xRestrictBipredMergeCand( pcCU, iPUIdx, cMvFieldNeighbours, uhInterDirNeighbours,vspFlag, numValidMergeCand ); 3659 #else3660 xRestrictBipredMergeCand( pcCU, iPUIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );3661 3644 #endif 3662 3645 … … 3675 3658 #if H_3D_VSP 3676 3659 pcCU->setVSPFlagSubParts( vspFlag[uiMergeCand], uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) ); 3677 #if MTK_VSP_FIX_ALIGN_WD_E01723678 3660 pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeCand].m_acDvInfo, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) ); 3679 #endif3680 #if MTK_VSP_FIX_E01723681 pcCU->setVSPDirSubParts( vspDir[uiMergeCand], uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );3682 #endif3683 3661 #endif 3684 3662 … … 3710 3688 * \returns Void 3711 3689 */ 3712 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E01723690 #if H_3D_VSP 3713 3691 Void TEncSearch::xRestrictBipredMergeCand( TComDataCU* pcCU, UInt puIdx, TComMvField* mvFieldNeighbours, UChar* interDirNeighbours, Int* vspFlag, Int numValidMergeCand ) 3714 3692 #else … … 3720 3698 for( UInt mergeCand = 0; mergeCand < numValidMergeCand; ++mergeCand ) 3721 3699 { 3722 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E01723700 #if H_3D_VSP 3723 3701 if ( (interDirNeighbours[mergeCand] == 3) && (vspFlag[mergeCand] == false) ) 3724 3702 #else … … 3851 3829 #if H_3D_VSP 3852 3830 pcCU->setVSPFlagSubParts( 0, uiPartAddr, iPartIdx, pcCU->getDepth(uiPartAddr) ); 3853 #if MTK_VSP_FIX_E01723854 pcCU->setVSPDirSubParts( 0, uiPartAddr, iPartIdx, pcCU->getDepth(uiPartAddr) );3855 #endif3856 3831 #endif 3857 3832 … … 4349 4324 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 4350 4325 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 4351 #if MTK_VSP_FIX_ALIGN_WD_E01724352 4326 InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM]; 4353 4327 UInt uiAbsPartIdx = 0; … … 4357 4331 DisInfo OriginalDvInfo = pcCU->getDvInfo(uiAbsPartIdx); 4358 4332 #endif 4359 #if MTK_VSP_FIX_E01724360 Int vspDir[MRG_MAX_NUM_CANDS_MEM];4361 memset(vspDir, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);4362 #endif4363 #endif4364 4333 4365 4334 xMergeEstimation( pcCU, pcOrgYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost, cMvFieldNeighbours, uhInterDirNeighbours 4366 4335 #if H_3D_VSP 4367 4336 , vspFlag 4368 #if MTK_VSP_FIX_ALIGN_WD_E01724369 4337 , inheritedVSPDisInfo 4370 #endif4371 #if MTK_VSP_FIX_E01724372 , vspDir4373 #endif4374 4338 #endif 4375 4339 , numValidMergeCand … … 4382 4346 #if H_3D_VSP 4383 4347 pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4384 #if MTK_VSP_FIX_ALIGN_WD_E01724385 4348 pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMRGIndex].m_acDvInfo, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4386 #endif4387 #if MTK_VSP_FIX_E01724388 pcCU->setVSPDirSubParts( vspDir[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4389 #endif4390 4349 #endif 4391 4350 pcCU->setInterDirSubParts ( uiMRGInterDir, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); … … 4410 4369 #if H_3D_VSP 4411 4370 pcCU->setVSPFlagSubParts ( 0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4412 #if MTK_VSP_FIX_ALIGN_WD_E01724413 4371 pcCU->setDvInfoSubParts(OriginalDvInfo, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4414 #endif4415 #if MTK_VSP_FIX_E01724416 pcCU->setVSPDirSubParts ( 0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4417 #endif4418 4372 #endif 4419 4373 { -
branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncSearch.h
r613 r615 431 431 #if H_3D_VSP 432 432 , Int* vspFlag 433 #if MTK_VSP_FIX_ALIGN_WD_E0172434 433 , InheritedVSPDisInfo* inheritedVSPDisInfo 435 #endif436 #if MTK_VSP_FIX_E0172437 , Int* vspDir438 #endif439 434 #endif 440 435 , Int& numValidMergeCand … … 445 440 TComMvField* mvFieldNeighbours, 446 441 UChar* interDirNeighbours, 447 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E0172448 442 Int* vspFlag, 449 #endif450 443 Int numValidMergeCand ); 451 444
Note: See TracChangeset for help on using the changeset viewer.