# HG changeset patch # User Sean Halle # Date 1341486938 25200 # Node ID 7e13c9ecc89c115e9cb255179a3138ffe384773a # Parent a8af8b3fc99d05da0a3c9b23bccf4a72c21bac67 Debugged the jpeg app -- added VSs__end_task and VSs__dissipate_slave diff -r a8af8b3fc99d -r 7e13c9ecc89c VSs_tinyjpeg/loadjpeg.c --- a/VSs_tinyjpeg/loadjpeg.c Thu Jul 05 11:35:03 2012 +0200 +++ b/VSs_tinyjpeg/loadjpeg.c Thu Jul 05 04:15:38 2012 -0700 @@ -174,7 +174,7 @@ args.priv = jdec_task[i]; args.context = rgb_data+i*width*RGB_DEPTH*MCU_Y_STRIDE; - VSs__submit_task(tinyjpegTaskType, &args, master); + VSs__submit_task(tinyjpegTaskType, &args, seedSlv); } @@ -242,10 +242,12 @@ void convert_one_image_wrapper( void *_params, SlaveVP *animSlv ){ - master = animSlv; + seedSlv = animSlv; printf("Input file: %s\nOutput file: %s\n",input_filename,output_filename); convert_one_image(input_filename, output_filename); + + VSs__dissipate_slave( animSlv ); } diff -r a8af8b3fc99d -r 7e13c9ecc89c VSs_tinyjpeg/tinyjpeg.c --- a/VSs_tinyjpeg/tinyjpeg.c Thu Jul 05 11:35:03 2012 +0200 +++ b/VSs_tinyjpeg/tinyjpeg.c Thu Jul 05 04:15:38 2012 -0700 @@ -552,7 +552,7 @@ priv->plane += (bytes_per_blocklines - priv->width*3); } } - return; + VSs__end_task(animatingSlv); } const char *tinyjpeg_get_errorstring() diff -r a8af8b3fc99d -r 7e13c9ecc89c VSs_tinyjpeg/tinyjpeg.h --- a/VSs_tinyjpeg/tinyjpeg.h Thu Jul 05 11:35:03 2012 +0200 +++ b/VSs_tinyjpeg/tinyjpeg.h Thu Jul 05 04:15:38 2012 -0700 @@ -63,7 +63,7 @@ void tinyjpeg_decode_task(void *data, SlaveVP *animatingSlv ); VSsTaskType *tinyjpegTaskType; -SlaveVP* master; +SlaveVP* seedSlv; void convert_one_image_wrapper( void *_params, SlaveVP *animSlv );