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/TLibCommon/TComBitStream.cpp

    r362 r438  
    177177  }
    178178}
    179 
    180179Void TComOutputBitstream::writeByteAlignment()
    181180{
     
    183182  writeAlignZero();
    184183}
    185 
    186 Int TComOutputBitstream::countStartCodeEmulations()
    187 {
    188   UInt cnt = 0;
    189   vector<uint8_t>& rbsp   = getFIFO();
    190   for (vector<uint8_t>::iterator it = rbsp.begin(); it != rbsp.end();)
    191   {
    192     vector<uint8_t>::iterator found = it;
    193     do
    194     {
    195       // find the next emulated 00 00 {00,01,02,03}
    196       // NB, end()-1, prevents finding a trailing two byte sequence
    197       found = search_n(found, rbsp.end()-1, 2, 0);
    198       found++;
    199       // if not found, found == end, otherwise found = second zero byte
    200       if (found == rbsp.end())
    201       {
    202         break;
    203       }
    204       if (*(++found) <= 3)
    205       {
    206         break;
    207       }
    208     } while (true);
    209     it = found;
    210     if (found != rbsp.end())
    211     {
    212       cnt++;
    213     }
    214   }
    215   return cnt;
    216 }
    217 
    218184/**
    219185 * read #uiNumberOfBits# from bitstream without updating the bitstream
Note: See TracChangeset for help on using the changeset viewer.