From f3bab2e090f8b2037cc0e412898a10938a92c9f3 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshev Date: Mon, 23 Sep 2024 13:53:30 +0300 Subject: [PATCH] CODECS: Use SAIL_LOG_TRACE instead of SAIL_LOG_DEBUG --- src/sail-codecs/avif/helpers.c | 4 ++-- src/sail-codecs/common/bmp/bmp.c | 4 ++-- src/sail-codecs/jpeg/helpers.c | 2 +- src/sail-codecs/jpeg/jpeg.c | 4 ++-- src/sail-codecs/png/helpers.c | 8 ++++---- src/sail-codecs/png/png.c | 6 +++--- src/sail-codecs/tiff/tiff.c | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/sail-codecs/avif/helpers.c b/src/sail-codecs/avif/helpers.c index 0602dcf8..7eaca61c 100644 --- a/src/sail-codecs/avif/helpers.c +++ b/src/sail-codecs/avif/helpers.c @@ -116,9 +116,9 @@ sail_status_t avif_private_fetch_iccp(const struct avifRWData *avif_iccp, struct if (avif_iccp->data != NULL) { SAIL_TRY(sail_alloc_iccp_from_data(avif_iccp->data, avif_iccp->size, iccp)); - SAIL_LOG_DEBUG("AVIF: Found ICC profile %u bytes long", (unsigned)avif_iccp->size); + SAIL_LOG_TRACE("AVIF: Found ICC profile %u bytes long", (unsigned)avif_iccp->size); } else { - SAIL_LOG_DEBUG("AVIF: ICC profile is not found"); + SAIL_LOG_TRACE("AVIF: ICC profile is not found"); } return SAIL_OK; diff --git a/src/sail-codecs/common/bmp/bmp.c b/src/sail-codecs/common/bmp/bmp.c index 67ed1ed4..90b43f8c 100644 --- a/src/sail-codecs/common/bmp/bmp.c +++ b/src/sail-codecs/common/bmp/bmp.c @@ -264,9 +264,9 @@ sail_status_t bmp_private_read_init(struct sail_io *io, const struct sail_load_o &bmp_state->source_pixel_format)); if (bmp_state->version < SAIL_BMP_V3) { - SAIL_LOG_DEBUG("BMP: Version(%d)", bmp_state->version); + SAIL_LOG_TRACE("BMP: Version(%d)", bmp_state->version); } else { - SAIL_LOG_DEBUG("BMP: Version(%d), compression(%u)", bmp_state->version, bmp_state->v3.compression); + SAIL_LOG_TRACE("BMP: Version(%d), compression(%u)", bmp_state->version, bmp_state->v3.compression); } /* Read palette. */ diff --git a/src/sail-codecs/jpeg/helpers.c b/src/sail-codecs/jpeg/helpers.c index 162cb19e..ac9355b9 100644 --- a/src/sail-codecs/jpeg/helpers.c +++ b/src/sail-codecs/jpeg/helpers.c @@ -148,7 +148,7 @@ sail_status_t jpeg_private_fetch_iccp(struct jpeg_decompress_struct *decompress_ JOCTET *data = NULL; unsigned data_size = 0; - SAIL_LOG_DEBUG("JPEG: ICC profile is %sfound", + SAIL_LOG_TRACE("JPEG: ICC profile is %sfound", jpeg_read_icc_profile(decompress_context, &data, &data_size) ? "" : "not "); diff --git a/src/sail-codecs/jpeg/jpeg.c b/src/sail-codecs/jpeg/jpeg.c index 701e355f..62f80340 100644 --- a/src/sail-codecs/jpeg/jpeg.c +++ b/src/sail-codecs/jpeg/jpeg.c @@ -349,14 +349,14 @@ SAIL_EXPORT sail_status_t sail_codec_save_seek_next_frame_v8_jpeg(void *state, c /* Save meta data. */ if (jpeg_state->save_options->options & SAIL_OPTION_META_DATA && image->meta_data_node != NULL) { SAIL_TRY(jpeg_private_write_meta_data(jpeg_state->compress_context, image->meta_data_node)); - SAIL_LOG_DEBUG("JPEG: Meta data has been written"); + SAIL_LOG_TRACE("JPEG: Meta data has been written"); } /* Save ICC profile. */ #ifdef SAIL_HAVE_JPEG_ICCP if (jpeg_state->save_options->options & SAIL_OPTION_ICCP && image->iccp != NULL) { jpeg_write_icc_profile(jpeg_state->compress_context, image->iccp->data, (unsigned)image->iccp->size); - SAIL_LOG_DEBUG("JPEG: ICC profile has been written"); + SAIL_LOG_TRACE("JPEG: ICC profile has been written"); } #endif diff --git a/src/sail-codecs/png/helpers.c b/src/sail-codecs/png/helpers.c index 4ff5d797..50860361 100644 --- a/src/sail-codecs/png/helpers.c +++ b/src/sail-codecs/png/helpers.c @@ -391,11 +391,11 @@ sail_status_t png_private_write_meta_data(png_structp png_ptr, png_infop info_pt if (meta_data->value->type == SAIL_VARIANT_TYPE_DATA) { /* Skip "Exif\0\0" if any. */ if (meta_data->value->size >= 4 && memcmp(sail_variant_to_data(meta_data->value), "Exif", 4) == 0) { - SAIL_LOG_DEBUG("PNG: Saving raw EXIF %u bytes long w/o header", (unsigned)meta_data->value->size - 6); + SAIL_LOG_TRACE("PNG: Saving raw EXIF %u bytes long w/o header", (unsigned)meta_data->value->size - 6); png_set_eXIf_1(png_ptr, info_ptr, (png_uint_32)meta_data->value->size - 6, ((png_bytep)sail_variant_to_data(meta_data->value)) + 6); } else { - SAIL_LOG_DEBUG("PNG: Saving raw EXIF %u bytes long", (unsigned)meta_data->value->size); + SAIL_LOG_TRACE("PNG: Saving raw EXIF %u bytes long", (unsigned)meta_data->value->size); png_set_eXIf_1(png_ptr, info_ptr, (png_uint_32)meta_data->value->size, meta_data->value->value); } } else { @@ -478,9 +478,9 @@ sail_status_t png_private_fetch_iccp(png_structp png_ptr, png_infop info_ptr, st if (ok) { SAIL_TRY(sail_alloc_iccp_from_data(data, data_size, iccp)); - SAIL_LOG_DEBUG("PNG: Found ICC profile '%s' %u bytes long", name, data_size); + SAIL_LOG_TRACE("PNG: Found ICC profile '%s' %u bytes long", name, data_size); } else { - SAIL_LOG_DEBUG("PNG: ICC profile is not found"); + SAIL_LOG_TRACE("PNG: ICC profile is not found"); } return SAIL_OK; diff --git a/src/sail-codecs/png/png.c b/src/sail-codecs/png/png.c index e6190045..8cb032b1 100644 --- a/src/sail-codecs/png/png.c +++ b/src/sail-codecs/png/png.c @@ -303,7 +303,7 @@ SAIL_EXPORT sail_status_t sail_codec_load_seek_next_frame_v8_png(void *state, st if (png_state->is_apng) { /* APNG feature: a hidden frame. */ if (!png_state->skipped_hidden && png_get_first_frame_is_hidden(png_state->png_ptr, png_state->info_ptr)) { - SAIL_LOG_DEBUG("PNG: Skipping hidden frame"); + SAIL_LOG_TRACE("PNG: Skipping hidden frame"); SAIL_TRY_OR_CLEANUP(png_private_skip_hidden_frame(png_state->first_image->bytes_per_line, png_state->first_image->height, png_state->png_ptr, @@ -531,7 +531,7 @@ SAIL_EXPORT sail_status_t sail_codec_save_seek_next_frame_v8_png(void *state, co /* Save meta data. */ if (png_state->save_options->options & SAIL_OPTION_META_DATA && image->meta_data_node != NULL) { SAIL_TRY(png_private_write_meta_data(png_state->png_ptr, png_state->info_ptr, image->meta_data_node)); - SAIL_LOG_DEBUG("PNG: Meta data has been written"); + SAIL_LOG_TRACE("PNG: Meta data has been written"); } png_set_IHDR(png_state->png_ptr, @@ -556,7 +556,7 @@ SAIL_EXPORT sail_status_t sail_codec_save_seek_next_frame_v8_png(void *state, co (const png_bytep)image->iccp->data, (unsigned)image->iccp->size); - SAIL_LOG_DEBUG("PNG: ICC profile has been written"); + SAIL_LOG_TRACE("PNG: ICC profile has been written"); } /* Save palette. */ diff --git a/src/sail-codecs/tiff/tiff.c b/src/sail-codecs/tiff/tiff.c index d32f0c4f..7fd5b26e 100644 --- a/src/sail-codecs/tiff/tiff.c +++ b/src/sail-codecs/tiff/tiff.c @@ -301,12 +301,12 @@ SAIL_EXPORT sail_status_t sail_codec_save_seek_next_frame_v8_tiff(void *state, c /* Save ICC profile. */ if (tiff_state->save_options->options & SAIL_OPTION_ICCP && image->iccp != NULL) { TIFFSetField(tiff_state->tiff, TIFFTAG_ICCPROFILE, image->iccp->size, image->iccp->data); - SAIL_LOG_DEBUG("TIFF: ICC profile has been saved"); + SAIL_LOG_TRACE("TIFF: ICC profile has been saved"); } /* Save meta data. */ if (tiff_state->save_options->options & SAIL_OPTION_META_DATA && image->meta_data_node != NULL) { - SAIL_LOG_DEBUG("TIFF: Saving meta data"); + SAIL_LOG_TRACE("TIFF: Saving meta data"); SAIL_TRY(tiff_private_write_meta_data(tiff_state->tiff, image->meta_data_node)); }