@@ -348,9 +348,9 @@ vips_foreign_load_jp2k_print( VipsForeignLoadJp2k *jp2k )
348
348
"x0 = %u, y0 = %u\n" ,
349
349
i , this -> dx , this -> dy , this -> w , this -> h ,
350
350
this -> x0 , this -> y0 );
351
- printf ( " prec = %d, bpp = %x, sgnd = %x, "
351
+ printf ( " prec = %d, sgnd = %x, "
352
352
"resno_decoded = %u, factor = %u\n" ,
353
- this -> prec , this -> bpp , this -> sgnd ,
353
+ this -> prec , this -> sgnd ,
354
354
this -> resno_decoded , this -> factor );
355
355
printf ( " data = %p, alpha = %u\n" ,
356
356
this -> data , this -> alpha );
@@ -378,7 +378,7 @@ vips_foreign_load_jp2k_set_header( VipsForeignLoadJp2k *jp2k, VipsImage *out )
378
378
VipsBandFormat format ;
379
379
VipsInterpretation interpretation ;
380
380
381
- /* OpenJPEG only supports up to 31 bpp . Treat it as 32.
381
+ /* OpenJPEG only supports up to 31 bits per pixel . Treat it as 32.
382
382
*/
383
383
if ( first -> prec <= 8 )
384
384
format = first -> sgnd ? VIPS_FORMAT_CHAR : VIPS_FORMAT_UCHAR ;
@@ -547,7 +547,6 @@ vips_foreign_load_jp2k_header( VipsForeignLoad *load )
547
547
}
548
548
549
549
if ( this -> prec != first -> prec ||
550
- this -> bpp != first -> bpp ||
551
550
this -> sgnd != first -> sgnd ) {
552
551
vips_error ( class -> nickname ,
553
552
"%s" , _ ( "components differ in precision" ) );
0 commit comments