Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__jpeg_decoder__Proj
comparison VSs_tinyjpeg/loadjpeg.c @ 1:7e13c9ecc89c
Debugged the jpeg app -- added VSs__end_task and VSs__dissipate_slave
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Thu, 05 Jul 2012 04:15:38 -0700 |
| parents | a8af8b3fc99d |
| children | a52de05d2e2b |
comparison
equal
deleted
inserted
replaced
| 0:f853b84b39ae | 1:59abd2f874ea |
|---|---|
| 172 for (i=0; i<ntasks; i++){ | 172 for (i=0; i<ntasks; i++){ |
| 173 jdec_task[i] = create_jdec_priv_task(jdec, i); | 173 jdec_task[i] = create_jdec_priv_task(jdec, i); |
| 174 | 174 |
| 175 args.priv = jdec_task[i]; | 175 args.priv = jdec_task[i]; |
| 176 args.context = rgb_data+i*width*RGB_DEPTH*MCU_Y_STRIDE; | 176 args.context = rgb_data+i*width*RGB_DEPTH*MCU_Y_STRIDE; |
| 177 VSs__submit_task(tinyjpegTaskType, &args, master); | 177 VSs__submit_task(tinyjpegTaskType, &args, seedSlv); |
| 178 | 178 |
| 179 } | 179 } |
| 180 | 180 |
| 181 char dummy; | 181 char dummy; |
| 182 for(i=0; i<ntasks;i++) { | 182 for(i=0; i<ntasks;i++) { |
| 240 } | 240 } |
| 241 | 241 |
| 242 | 242 |
| 243 | 243 |
| 244 void convert_one_image_wrapper( void *_params, SlaveVP *animSlv ){ | 244 void convert_one_image_wrapper( void *_params, SlaveVP *animSlv ){ |
| 245 master = animSlv; | 245 seedSlv = animSlv; |
| 246 | 246 |
| 247 printf("Input file: %s\nOutput file: %s\n",input_filename,output_filename); | 247 printf("Input file: %s\nOutput file: %s\n",input_filename,output_filename); |
| 248 | 248 |
| 249 convert_one_image(input_filename, output_filename); | 249 convert_one_image(input_filename, output_filename); |
| 250 } | 250 |
| 251 | 251 VSs__dissipate_slave( animSlv ); |
| 252 } | |
| 253 |
