PDF Presentation - Uplinq
PDF Presentation - Uplinq
PDF Presentation - Uplinq
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
JPEG Decoding Optimization<br />
• 5Mp image decoding time vastly improved with 1/8 scaling factor<br />
• IDownSample API: Integer DownScaling While decoding (1/8, 1/4, /1/2)<br />
• AEECLSID_GenericViewerAsync: Prevent hogging UI while decoding<br />
• Also a great memory saving as the generated bitmaps are close to QVGA<br />
IDownSample Fidelity Window<br />
Scaled Decoded Image<br />
Factor 1/8 or 1/4 or 1/2 or 1:1<br />
Factor selected against the<br />
fidelity size.<br />
The highest scaling factor<br />
meeting the fidelity minimum size<br />
requirement<br />
ERR_BAIL(IEnv_CreateInstance(pMe CreateInstance(pMe->piEnv, AEECLSID_JPEGDecoder, (void **)&piImageDecoder));<br />
nErr= IIMAGEDECODER_QueryInterface(piImageDecoder,AEEIID_IDownSample,(void**)&piDownSample)<br />
if(AEE_SUCCESS == nErr)<br />
{<br />
if (NULL != piDownSample){<br />
IDownSample_SetTargetFidelity(piDownSample, fidelityX, fidelityY);<br />
}<br />
}<br />
ERR_BAIL(IEnv_CreateInstance(pMe->piEnv, AEECLSID_GenericViewerAsync, (void **)&piImage));<br />
IImage_SetParm(piImage, IPARM_DECODER, (int)piImageDecoder, 0);<br />
21