diff 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
line diff
     1.1 --- a/VSs_tinyjpeg/loadjpeg.c	Thu Jul 05 11:35:03 2012 +0200
     1.2 +++ b/VSs_tinyjpeg/loadjpeg.c	Thu Jul 05 04:15:38 2012 -0700
     1.3 @@ -174,7 +174,7 @@
     1.4                  
     1.5                  args.priv = jdec_task[i];
     1.6                  args.context = rgb_data+i*width*RGB_DEPTH*MCU_Y_STRIDE;
     1.7 -                VSs__submit_task(tinyjpegTaskType, &args, master);
     1.8 +                VSs__submit_task(tinyjpegTaskType, &args, seedSlv);
     1.9                          	
    1.10  	}
    1.11  	
    1.12 @@ -242,10 +242,12 @@
    1.13  
    1.14  
    1.15  void convert_one_image_wrapper( void *_params, SlaveVP *animSlv ){
    1.16 -    master = animSlv;
    1.17 +    seedSlv = animSlv;
    1.18  
    1.19      printf("Input file: %s\nOutput file: %s\n",input_filename,output_filename);
    1.20      
    1.21      convert_one_image(input_filename, output_filename);
    1.22 +    
    1.23 +    VSs__dissipate_slave( animSlv );
    1.24  }
    1.25