[Common-dev] annex g implementation

[Common-dev] annex g implementation

Gang.Shen at nokia.com Gang.Shen at nokia.com
Fri Apr 8 16:13:49 PDT 2005


Hi, 

I have a question regarding annex g implementation. In "sdpmdparse.cpp" #229, why it sums up ulPreDec and ulPostDec as "Preroll" period? It seems "vidrenderer" use this value to calculate preroll buffer size. Could we just use ulPreDec for "Preroll"? 

Thanks,

Gang Shen

......
sdpmdparse.cpp line#218 to line#235. 
......
        if (HXR_OK != pHeader->GetPropertyULONG32("Preroll", ulTmp))
        {
            // We don't have a preroll so we should use the Annex G
            // headers to create one
            ULONG32 ulPreDec = 0;
            ULONG32 ulPostDec = 0;
            pHeader->GetPropertyULONG32("x-initpredecbufperiod", ulPreDec);
            pHeader->GetPropertyULONG32("x-initpostdecbufperiod", ulPostDec);
            
            // Add x-initpredecbufperiod to x-initpostdecbufperiod and
            // convert the value to milliseconds.
            ULONG32 ulPreroll = (ulPreDec  + ulPostDec) / 90;

            if (ulPreroll)
            {
                pHeader->SetPropertyULONG32("Preroll", ulPreroll);
            }
        }
....




More information about the Common-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.