Hot Spot of JPEG-LS Encoder

  • encoder.c
/* LOSSLESS mode */
/*======= About 99% time =======*/
while(++n <= rows)
{
                    :
                       :
       /*======= About 95% time =======*/
       for (n_c=0;n_c<components;n_c++) {
                if (components > 1) {
                       /*----HOT SPOT------------------------------------------------------------*/
                       for (my_i=0;my_i<columns+LEFTMARGIN+RIGHTMARGIN;my_i++){
                               local_cscanline[-1+my_i]=cscanline[-components+my_i*components+n_c];
                               local_pscanline[-1+my_i]=pscanline[-components+my_i*components+n_c];
                       }
                       /*------------------------------------------------------------------------*/
                 }
                 else {
                       local_cscanline=cscanline;
                       local_pscanline=pscanline;
                 }
       }
                    :
                       :
}

Solution

  • Place these instructions into RAM
 
andes/hot_spots_of_jpeg-ls.txt · Last modified: 2010/05/22 09:20 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki