Add support for extension metadata levels 15-18 - #362
Conversation
|
Just curious, are they already being used, or do they only exist in the verifier? |
|
Never seen any so probably verifier only. |
74485e2 to
976ba77
Compare
|
Added L17 |
|
Looks like this will most likely tie in with Dolby Vision 2 which was just announced. |
|
Hi @quietvoid, thanks for this branch — I picked up What I did (branch: https://github.com/MeeeetRain/dovi_tool/tree/dv2-level15-18-capi):
Validation: I verified every field against the Dolby Vision TV SDK v6.0 official test vectors (Metadata Spec v1.5.1). All four blocks parse correctly; L15 and L16 round-trip byte-identically. Full upstream test suite passes (110 tests). One extra finding while validating: the Happy to open this as a PR against |
Rebases and completes quietvoid#362 on top of current main: - Add ExtMetadataBlockLevel15 (Dolby Image Engine, Standard mode): confidence / precision_rendering_strength / d_local_contrast / d_brightness / d_saturation / d_contrast (+ *_no_pr variants). 11 bytes / 88 bits. - Add ExtMetadataBlockLevel16 (Reference mode Image Engine): variable length, revision + count + Level16Params[] (contrast_target / precision_rendering_strength / d_local_contrast / max_d_brightness / max_d_saturation_plus_one). - Add ExtMetadataBlockLevel17 (up-mapping metadata): 10 bytes / 80 bits. Kept for forward compatibility; DM ignores it (Metadata Spec v1.5.1 removed the L17 grammar, superseded by L18). - Add ExtMetadataBlockLevel18 (Precision Black / creative environment): 4x 12-bit PQ luminance (surround / min_preserved / adaptation / max_preserved) + revision. 7 bytes / 56 bits. - Wire dispatch in cmv40.rs (ALLOWED_BLOCK_LEVELS + parse arms), ExtMetadataBlock enum + trait match arms, vdr_dm_data replace path, and the CSV/JSON exporter. - Complete the libdovi C-FFI mapping (c_structs/extension_metadata.rs) that was left as // TODO stubs, so FFmpeg/Kodi/CoreELEC can read the new blocks through the C ABI. - Add a round-trip test against a real DV2 sample (l15_to_l18.bin).
I have no interest in merging any new information without specifications or way to verify what you're saying. |
53aada3 to
3af11f8
Compare
No description provided.