@@ -346,10 +346,10 @@ pyCMSdoTransform(Imaging im, Imaging imOut, cmsHTRANSFORM hTransform) {
346
346
return -1 ;
347
347
}
348
348
349
- Py_BEGIN_ALLOW_THREADS
349
+ Py_BEGIN_ALLOW_THREADS ;
350
350
351
- // transform color channels only
352
- for (i = 0 ; i < im -> ysize ; i ++ ) {
351
+ // transform color channels only
352
+ for (i = 0 ; i < im -> ysize ; i ++ ) {
353
353
cmsDoTransform (hTransform , im -> image [i ], imOut -> image [i ], im -> xsize );
354
354
}
355
355
@@ -362,9 +362,9 @@ pyCMSdoTransform(Imaging im, Imaging imOut, cmsHTRANSFORM hTransform) {
362
362
// enough available on all platforms, so we polyfill it here for now.
363
363
pyCMScopyAux (hTransform , imOut , im );
364
364
365
- Py_END_ALLOW_THREADS
365
+ Py_END_ALLOW_THREADS ;
366
366
367
- return 0 ;
367
+ return 0 ;
368
368
}
369
369
370
370
static cmsHTRANSFORM
@@ -378,17 +378,17 @@ _buildTransform(
378
378
) {
379
379
cmsHTRANSFORM hTransform ;
380
380
381
- Py_BEGIN_ALLOW_THREADS
381
+ Py_BEGIN_ALLOW_THREADS ;
382
382
383
- /* create the transform */
384
- hTransform = cmsCreateTransform (
385
- hInputProfile ,
386
- findLCMStype (sInMode ),
387
- hOutputProfile ,
388
- findLCMStype (sOutMode ),
389
- iRenderingIntent ,
390
- cmsFLAGS
391
- );
383
+ /* create the transform */
384
+ hTransform = cmsCreateTransform (
385
+ hInputProfile ,
386
+ findLCMStype (sInMode ),
387
+ hOutputProfile ,
388
+ findLCMStype (sOutMode ),
389
+ iRenderingIntent ,
390
+ cmsFLAGS
391
+ );
392
392
393
393
Py_END_ALLOW_THREADS ;
394
394
@@ -412,19 +412,19 @@ _buildProofTransform(
412
412
) {
413
413
cmsHTRANSFORM hTransform ;
414
414
415
- Py_BEGIN_ALLOW_THREADS
416
-
417
- /* create the transform */
418
- hTransform = cmsCreateProofingTransform (
419
- hInputProfile ,
420
- findLCMStype (sInMode ),
421
- hOutputProfile ,
422
- findLCMStype (sOutMode ),
423
- hProofProfile ,
424
- iRenderingIntent ,
425
- iProofIntent ,
426
- cmsFLAGS
427
- );
415
+ Py_BEGIN_ALLOW_THREADS ;
416
+
417
+ /* create the transform */
418
+ hTransform = cmsCreateProofingTransform (
419
+ hInputProfile ,
420
+ findLCMStype (sInMode ),
421
+ hOutputProfile ,
422
+ findLCMStype (sOutMode ),
423
+ hProofProfile ,
424
+ iRenderingIntent ,
425
+ iProofIntent ,
426
+ cmsFLAGS
427
+ );
428
428
429
429
Py_END_ALLOW_THREADS ;
430
430
0 commit comments