/* Copyright (c) the JPEG XL Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file.
*/
/** @addtogroup libjxl_encoder * @{ * @file stats.h * @brief API to collect various statistics from JXL encoder.
*/
#ifndef JXL_STATS_H_ #define JXL_STATS_H_
#include <jxl/jxl_export.h> #include <stddef.h>
#ifdef __cplusplus extern"C" { #endif
/** * Opaque structure that holds the encoder statistics. * * Allocated and initialized with @ref JxlEncoderStatsCreate(). * Cleaned up and deallocated with @ref JxlEncoderStatsDestroy().
*/ typedefstruct JxlEncoderStatsStruct JxlEncoderStats;
/** * Creates an instance of JxlEncoderStats and initializes it. * * @return pointer to initialized @ref JxlEncoderStats instance
*/
JXL_EXPORT JxlEncoderStats* JxlEncoderStatsCreate(void);
/** * Deinitializes and frees JxlEncoderStats instance. * * @param stats instance to be cleaned up and deallocated. No-op if stats is * null pointer.
*/
JXL_EXPORT void JxlEncoderStatsDestroy(JxlEncoderStats* stats);
/** Returns the value of the statistics corresponding the given key. * * @param stats object that was passed to the encoder with a * @ref JxlEncoderCollectStats function * @param key the particular statistics to query * * @return the value of the statistics
*/
JXL_EXPORT size_t JxlEncoderStatsGet(const JxlEncoderStats* stats,
JxlEncoderStatsKey key);
/** Updates the values of the given stats object with that of an other. * * @param stats object whose values will be updated (usually added together) * @param other stats object whose values will be merged with stats
*/
JXL_EXPORT void JxlEncoderStatsMerge(JxlEncoderStats* stats, const JxlEncoderStats* other);
#ifdef __cplusplus
} #endif
#endif/* JXL_STATS_H_ */
/** @}*/
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.