tiny formatting changes
This commit is contained in:
parent
6bb0b4dd1e
commit
43ab4bf886
@ -442,7 +442,7 @@ vips_foreign_save_heif_build( VipsObject *object )
|
|||||||
struct heif_error error;
|
struct heif_error error;
|
||||||
struct heif_writer writer;
|
struct heif_writer writer;
|
||||||
char *chroma;
|
char *chroma;
|
||||||
const struct heif_encoder_descriptor* out_encoder;
|
const struct heif_encoder_descriptor *out_encoder;
|
||||||
|
|
||||||
if( VIPS_OBJECT_CLASS( vips_foreign_save_heif_parent_class )->
|
if( VIPS_OBJECT_CLASS( vips_foreign_save_heif_parent_class )->
|
||||||
build( object ) )
|
build( object ) )
|
||||||
@ -480,25 +480,21 @@ vips_foreign_save_heif_build( VipsObject *object )
|
|||||||
heif->selected_encoder ),
|
heif->selected_encoder ),
|
||||||
&out_encoder, 1 );
|
&out_encoder, 1 );
|
||||||
|
|
||||||
if( count > 0 ) {
|
if( count > 0 )
|
||||||
error = heif_context_get_encoder( heif->ctx,
|
error = heif_context_get_encoder( heif->ctx,
|
||||||
out_encoder, &heif->encoder );
|
out_encoder, &heif->encoder );
|
||||||
}
|
else
|
||||||
else {
|
g_warning( "heifsave: could not find %s",
|
||||||
g_warning(
|
vips_enum_nick( VIPS_TYPE_FOREIGN_HEIF_ENCODER,
|
||||||
"heifsave: could not find selected encoder %s",
|
heif->selected_encoder ) );
|
||||||
vips_enum_nick( VIPS_TYPE_FOREIGN_HEIF_ENCODER,
|
|
||||||
heif->selected_encoder ) );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fallback to default encoder.
|
/* Fallback to default encoder.
|
||||||
*/
|
*/
|
||||||
if( !heif->encoder ) {
|
if( !heif->encoder )
|
||||||
error = heif_context_get_encoder_for_format( heif->ctx,
|
error = heif_context_get_encoder_for_format( heif->ctx,
|
||||||
(enum heif_compression_format) heif->compression,
|
(enum heif_compression_format) heif->compression,
|
||||||
&heif->encoder );
|
&heif->encoder );
|
||||||
}
|
|
||||||
|
|
||||||
if( error.code ) {
|
if( error.code ) {
|
||||||
if( error.code == heif_error_Unsupported_filetype )
|
if( error.code == heif_error_Unsupported_filetype )
|
||||||
|
Loading…
Reference in New Issue
Block a user