changeset 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
files VSs_tinyjpeg/loadjpeg.c VSs_tinyjpeg/tinyjpeg.c VSs_tinyjpeg/tinyjpeg.h
diffstat 3 files changed, 6 insertions(+), 4 deletions(-) [+]
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  
     2.1 --- a/VSs_tinyjpeg/tinyjpeg.c	Thu Jul 05 11:35:03 2012 +0200
     2.2 +++ b/VSs_tinyjpeg/tinyjpeg.c	Thu Jul 05 04:15:38 2012 -0700
     2.3 @@ -552,7 +552,7 @@
     2.4  			priv->plane += (bytes_per_blocklines - priv->width*3);
     2.5  		}
     2.6  	}
     2.7 -	return;
     2.8 +   VSs__end_task(animatingSlv);
     2.9  }
    2.10  
    2.11  const char *tinyjpeg_get_errorstring()
     3.1 --- a/VSs_tinyjpeg/tinyjpeg.h	Thu Jul 05 11:35:03 2012 +0200
     3.2 +++ b/VSs_tinyjpeg/tinyjpeg.h	Thu Jul 05 04:15:38 2012 -0700
     3.3 @@ -63,7 +63,7 @@
     3.4  void tinyjpeg_decode_task(void *data, SlaveVP *animatingSlv );
     3.5  
     3.6  VSsTaskType *tinyjpegTaskType;
     3.7 -SlaveVP* master;
     3.8 +SlaveVP* seedSlv;
     3.9  
    3.10  void convert_one_image_wrapper( void *_params, SlaveVP *animSlv );
    3.11