equivalence_check
Author: Leonardo de Sousa Marques Affiliation: Embedded Computing Lab (ECL), Federal University of Santa Catarina (UFSC)
- Description:
This module checks MD5 hashes for encoded and decoded LFs among codecs.
- get_rate_string(rate)[source]
Convert a bitrate value to a formatted string representation.
Removes trailing ‘.0’ and leading ‘0.’ from float representations for cleaner display in output tables.
- Parameters:
rate (float) – Bitrate value to convert
- Returns:
Formatted string representation of the bitrate
- Return type:
str
- md5_from_logs(codec_results, lf, rate, op_type)[source]
Extract MD5 hash from codec execution logs.
Searches for the most recently modified execution log in the codec results directory and extracts the MD5 hash for a specific light field, bitrate, and operation type (encoded or decoded).
- Parameters:
codec_results (Path) – Path to codec results directory
lf (str) – Light field name
rate (str) – Target bitrate value
op_type (str) – Operation type (‘encoded’ or ‘decoded’)
- Returns:
MD5 hash string or None if not found
- Return type:
str | None
- main(configuration=None)[source]
Check equivalence of MD5 hashes across multiple codec runs.
Compares MD5 checksums for encoded and decoded light fields across multiple codec implementations according to configured equivalence rules. Generates comparison tables in multiple formats (LaTeX, HTML, JSON, text).
- Parameters:
configuration (ConfigurationReader) – Configuration reader instance (read from argv if None)
- Returns:
None
- Return type:
None