This commit is contained in:
John Cupitt 2021-04-03 18:40:21 +01:00
parent 70078e3774
commit 209f2c5144
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@
- add vips_image_[set|get]_array_double() - add vips_image_[set|get]_array_double()
- add GIF load with libnsgif - add GIF load with libnsgif
- add JPEG2000 load and save - add JPEG2000 load and save
- add JPEG-XL load and save
22/12/20 start 8.10.6 22/12/20 start 8.10.6
- don't seek on bad file descriptors [kleisauke] - don't seek on bad file descriptors [kleisauke]

View File

@ -66,6 +66,8 @@
* - check scRGB encoding * - check scRGB encoding
* *
* - add "shrink" option to read out 8x shrunk image? * - add "shrink" option to read out 8x shrunk image?
*
* - add animation support
*/ */
#define INPUT_BUFFER_SIZE (4096) #define INPUT_BUFFER_SIZE (4096)
@ -214,6 +216,7 @@ vips_foreign_load_jxl_fill_input( VipsForeignLoadJxl *jxl,
return( 0 ); return( 0 );
} }
#ifdef DEBUG
static void static void
vips_foreign_load_jxl_print_status( JxlDecoderStatus status ) vips_foreign_load_jxl_print_status( JxlDecoderStatus status )
{ {
@ -282,6 +285,7 @@ vips_foreign_load_jxl_print_status( JxlDecoderStatus status )
g_assert_not_reached(); g_assert_not_reached();
} }
} }
#endif /*DEBUG*/
static JxlDecoderStatus static JxlDecoderStatus
vips_foreign_load_jxl_process( VipsForeignLoadJxl *jxl ) vips_foreign_load_jxl_process( VipsForeignLoadJxl *jxl )
@ -300,12 +304,15 @@ vips_foreign_load_jxl_process( VipsForeignLoadJxl *jxl )
jxl->input_buffer, jxl->bytes_in_buffer ); jxl->input_buffer, jxl->bytes_in_buffer );
} }
#ifdef DEBUG
printf( "vips_foreign_load_jxl_process: seen " ); printf( "vips_foreign_load_jxl_process: seen " );
vips_foreign_load_jxl_print_status( status ); vips_foreign_load_jxl_print_status( status );
#endif /*DEBUG*/
return( status ); return( status );
} }
#ifdef DEBUG
static void static void
vips_foreign_load_jxl_print_info( VipsForeignLoadJxl *jxl ) vips_foreign_load_jxl_print_info( VipsForeignLoadJxl *jxl )
{ {
@ -341,6 +348,7 @@ vips_foreign_load_jxl_print_info( VipsForeignLoadJxl *jxl )
printf( " animation.have_timecodes = %d\n", printf( " animation.have_timecodes = %d\n",
jxl->info.animation.have_timecodes ); jxl->info.animation.have_timecodes );
} }
#endif /*DEBUG*/
static int static int
vips_foreign_load_jxl_set_header( VipsForeignLoadJxl *jxl, VipsImage *out ) vips_foreign_load_jxl_set_header( VipsForeignLoadJxl *jxl, VipsImage *out )
@ -432,6 +440,9 @@ vips_foreign_load_jxl_set_header( VipsForeignLoadJxl *jxl, VipsImage *out )
jxl->icc_size = 0; jxl->icc_size = 0;
} }
vips_image_set_int( out,
VIPS_META_ORIENTATION, jxl->info.orientation );
return( 0 ); return( 0 );
} }
@ -467,7 +478,9 @@ vips_foreign_load_jxl_header( VipsForeignLoad *load )
"JxlDecoderGetBasicInfo" ); "JxlDecoderGetBasicInfo" );
return( -1 ); return( -1 );
} }
#ifdef DEBUG
vips_foreign_load_jxl_print_info( jxl ); vips_foreign_load_jxl_print_info( jxl );
#endif /*DEBUG*/
/* Pick a pixel format to decode to. /* Pick a pixel format to decode to.
*/ */