Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__jpeg_decoder__Proj
comparison VSs_tinyjpeg/tinyjpeg.c @ 4:62350c40504f
running in sequential mode
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 20 Aug 2012 16:56:27 +0200 |
| parents | 7e13c9ecc89c |
| children |
comparison
equal
deleted
inserted
replaced
| 1:7f1360a7091a | 2:b6da42a9d039 |
|---|---|
| 438 */ | 438 */ |
| 439 struct jdec_private *tinyjpeg_init(void) | 439 struct jdec_private *tinyjpeg_init(void) |
| 440 { | 440 { |
| 441 struct jdec_private *priv; | 441 struct jdec_private *priv; |
| 442 | 442 |
| 443 priv = (struct jdec_private *)calloc(1, sizeof(struct jdec_private)); | 443 priv = (struct jdec_private *)VMS_App__malloc(1* sizeof(struct jdec_private)); |
| 444 if (priv == NULL) | 444 if (priv == NULL) |
| 445 return NULL; | 445 return NULL; |
| 446 memset(priv,0,sizeof(struct jdec_private)); | |
| 446 return priv; | 447 return priv; |
| 447 } | 448 } |
| 448 | 449 |
| 449 /** | 450 /** |
| 450 * Free a tinyjpeg object. | 451 * Free a tinyjpeg object. |
| 451 * | 452 * |
| 452 * No others function can be called after this one. | 453 * No others function can be called after this one. |
| 453 */ | 454 */ |
| 454 void tinyjpeg_free(struct jdec_private *priv) | 455 void tinyjpeg_free(struct jdec_private *priv) |
| 455 { | 456 { |
| 456 free(priv); | 457 VMS_App__free(priv); |
| 457 } | 458 } |
| 458 | 459 |
| 459 | 460 |
| 460 /** | 461 /** |
| 461 * Create a new JPEG decode task | 462 * Create a new JPEG decode task |
