Ignore:
Timestamp:
23 May 2013, 15:40:36 (12 years ago)
Author:
tech
Message:

Integrated 3D encoder control, camera parameters, renderer and MV fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.2-dev/source/Lib/TLibDecoder/NALread.cpp

    r368 r438  
    5050//! \ingroup TLibDecoder
    5151//! \{
    52 static void convertPayloadToRBSP(vector<uint8_t>& nalUnitBuf, TComInputBitstream *bitstream, Bool isVclNalUnit)
     52static void convertPayloadToRBSP(vector<uint8_t>& nalUnitBuf, Bool isVclNalUnit)
    5353{
    5454  UInt zeroCount = 0;
    5555  vector<uint8_t>::iterator it_read, it_write;
    5656
    57   UInt pos = 0;
    58   bitstream->clearEmulationPreventionByteLocation();
    59   for (it_read = it_write = nalUnitBuf.begin(); it_read != nalUnitBuf.end(); it_read++, it_write++, pos++)
     57  for (it_read = it_write = nalUnitBuf.begin(); it_read != nalUnitBuf.end(); it_read++, it_write++)
    6058  {
    6159    assert(zeroCount < 2 || *it_read >= 0x03);
    6260    if (zeroCount == 2 && *it_read == 0x03)
    6361    {
    64       bitstream->pushEmulationPreventionByteLocation( pos );
    65       pos++;
    6662      it_read++;
    6763      zeroCount = 0;
     
    113109  if ( nalu.m_temporalId )
    114110  {
    115     assert( nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_BLA_W_LP
    116          && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_BLA_W_RADL
     111    assert( nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_BLA
     112         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_BLANT
    117113         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_BLA_N_LP
    118          && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_IDR_W_RADL
     114         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_IDR
    119115         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_IDR_N_LP
    120116         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_CRA
     
    126122  else
    127123  {
    128     assert( nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_TLA_R
     124    assert( nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_TLA
    129125         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_TSA_N
    130126         && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_STSA_R
     
    140136  /* perform anti-emulation prevention */
    141137  TComInputBitstream *pcBitstream = new TComInputBitstream(NULL);
    142   convertPayloadToRBSP(nalUnitBuf, pcBitstream, (nalUnitBuf[0] & 64) == 0);
     138  convertPayloadToRBSP(nalUnitBuf, (nalUnitBuf[0] & 64) == 0);
    143139 
    144140  nalu.m_Bitstream = new TComInputBitstream(&nalUnitBuf);
    145   nalu.m_Bitstream->setEmulationPreventionByteLocation(pcBitstream->getEmulationPreventionByteLocation());
    146141  delete pcBitstream;
    147142  readNalUnitHeader(nalu);
Note: See TracChangeset for help on using the changeset viewer.