Changeset 1077 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
10 Mar 2015, 17:32:41 (10 years ago)
Author:
seregin
Message:

update the older Visual Studio project files and some fixes to avoid implicit cast warnings, patch was provided by Karsten Sühring <karsten.suehring@…>

Location:
branches/SHM-dev/source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1057 r1077  
    14911491    if( it != listOfPocsInEachLayer[layerId].end() )  // picture found.
    14921492    {
    1493       Int picPosition = std::distance( listOfPocsInEachLayer[layerId].begin(), it );
     1493      Int picPosition = (Int)std::distance( listOfPocsInEachLayer[layerId].begin(), it );
    14941494      Int j;
    14951495      for(j = 0, iterPic = m_acTDecTop[layerId].getListPic()->begin(); j < listOfPocsPositionInEachLayer[layerId][picPosition]; j++) // Picture to be output
     
    16481648      if( it != listOfPocsInEachLayer[i].end() )
    16491649      {
    1650         Int picPosition = std::distance( listOfPocsInEachLayer[i].begin(), it );
     1650        Int picPosition = (Int)std::distance( listOfPocsInEachLayer[i].begin(), it );
    16511651        Int j;
    16521652        for(j = 0, iterPic = m_acTDecTop[i].getListPic()->begin(); j < listOfPocsPositionInEachLayer[i][picPosition]; j++) // Picture to be output
     
    18031803  Int targetLsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() );
    18041804  // Update status
    1805   dpbStatus.m_numAUsNotDisplayed = listOfPocs.size();   // Number of AUs not displayed
     1805  dpbStatus.m_numAUsNotDisplayed = (Int)listOfPocs.size();   // Number of AUs not displayed
    18061806  dpbStatus.m_numLayers = vps->getNumLayersInIdList( targetLsIdx );
    18071807#if FIX_ALIGN_BUMPING
     
    18231823#endif
    18241824  {
    1825     dpbStatus.m_numPicsNotDisplayedInLayer[i] = listOfPocsInEachLayer[i].size();
     1825    dpbStatus.m_numPicsNotDisplayedInLayer[i] = (Int)listOfPocsInEachLayer[i].size();
    18261826#if RESOLUTION_BASED_DPB
    18271827    dpbStatus.m_numPicsInSubDpb[vps->getSubDpbAssigned(targetLsIdx,i)] += dpbStatus.m_numPicsInLayer[i];
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1073 r1077  
    33293329      }
    33303330    }
    3331     m_numLayerInIdList.push_back(m_layerSetLayerIdList[i].size());
     3331    m_numLayerInIdList.push_back((Int)m_layerSetLayerIdList[i].size());
    33323332  }
    33333333}
     
    35913591  if( it != m_layerSetLayerIdList[olsIdx].end() )
    35923592  {
    3593     layerIdc = std::distance( m_layerSetLayerIdList[olsIdx].begin(), it );
     3593    layerIdc = (Int)std::distance( m_layerSetLayerIdList[olsIdx].begin(), it );
    35943594  }
    35953595
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp

    r1037 r1077  
    11651165#if NESTING_SEI_EXTENSIBILITY
    11661166  assert( sei.m_nestedSEIs.size() <= MAX_SEIS_IN_BSP_NESTING );
    1167   WRITE_UVLC( sei.m_nestedSEIs.size(), "num_seis_in_bsp_minus1" );
     1167  WRITE_UVLC( (UInt)sei.m_nestedSEIs.size(), "num_seis_in_bsp_minus1" );
    11681168#endif
    11691169  // write nested SEI messages
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1063 r1077  
    30473047          if (m_pcCfg->getCabacZeroWordPaddingEnabled())
    30483048          {
    3049             std::vector<Char> zeroBytesPadding(numberOfAdditionalCabacZeroBytes, Char(0));
    3050             for(Int64 i=0; i<numberOfAdditionalCabacZeroWords; i++)
     3049            std::vector<Char> zeroBytesPadding((size_t)numberOfAdditionalCabacZeroBytes, Char(0));
     3050            for(size_t i=0; i<numberOfAdditionalCabacZeroWords; i++)
    30513051            {
    30523052              zeroBytesPadding[i*3+2]=3;  // 00 00 03
    30533053            }
    3054             accessUnit.back()->m_nalUnitData.write(&(zeroBytesPadding[0]), numberOfAdditionalCabacZeroBytes);
     3054            accessUnit.back()->m_nalUnitData.write(&(zeroBytesPadding[0]), (size_t)numberOfAdditionalCabacZeroBytes);
    30553055            printf("Adding %lld bytes of padding\n", numberOfAdditionalCabacZeroWords*3);
    30563056          }
     
    44484448      {               
    44494449        strTmp = m_pcCfg->getOverlaySEILanguage()[i];
    4450         nBytes = m_pcCfg->getOverlaySEILanguage()[i].size();       
     4450        nBytes = (Int)m_pcCfg->getOverlaySEILanguage()[i].size();       
    44514451        assert( nBytes>0 );
    44524452        sei->m_overlayLanguage[i] = new UChar[nBytes];
     
    44574457      //overlay name
    44584458      strTmp = m_pcCfg->getOverlaySEIName()[i];
    4459       nBytes = m_pcCfg->getOverlaySEIName()[i].size();       
     4459      nBytes = (Int)m_pcCfg->getOverlaySEIName()[i].size();       
    44604460      assert( nBytes>0 );
    44614461      sei->m_overlayName[i] = new UChar[nBytes];     
     
    44724472        {
    44734473          strTmp = m_pcCfg->getOverlaySEIElementName()[i][j];
    4474           nBytes = m_pcCfg->getOverlaySEIElementName()[i][j].size();       
     4474          nBytes = (Int)m_pcCfg->getOverlaySEIElementName()[i][j].size();       
    44754475          assert( nBytes>0 );
    44764476          sei->m_overlayElementName[i][j] = new UChar[nBytes];
  • branches/SHM-dev/source/Lib/TLibVideoIO/TVideoIOYuv.cpp

    r1029 r1077  
    202202  /* fall back to consuming the input */
    203203  Char buf[512];
    204   const UInt offset_mod_bufsize = offset % sizeof(buf);
     204  const streamoff offset_mod_bufsize = offset % sizeof(buf);
    205205  for (streamoff i = 0; i < offset - offset_mod_bufsize; i += sizeof(buf))
    206206  {
Note: See TracChangeset for help on using the changeset viewer.