Skip to content

Implement and enhance HDR detection and classification across services#1272

Merged
TwolDE2 merged 15 commits into
OpenViX:Developerfrom
DimitarCC:hdr-detection-test
Jun 16, 2026
Merged

Implement and enhance HDR detection and classification across services#1272
TwolDE2 merged 15 commits into
OpenViX:Developerfrom
DimitarCC:hdr-detection-test

Conversation

@DimitarCC

Copy link
Copy Markdown
Contributor

This pull request introduces software-based HDR (High Dynamic Range) detection for select set-top boxes, enabling the system to analyze HEVC video streams and determine HDR type (e.g., HDR10, HLG) via bitstream parsing. The implementation includes new C++ modules for parsing and detecting HDR from live DVB streams, integration with the build system for supported devices, and enhancements to the Python ServiceInfo converter to expose HDR-related properties.

Key changes are grouped by theme below:

Build System & Platform Support

  • Added detection and conditional build support for software HDR detection in configure.ac and lib/service/Makefile.inc, enabled for VU+ 4K and GigaBlue Quad 4K Pro boxes. This ensures the new HDR detection code is only built and used on capable hardware. [1] [2] [3]

Core HDR Detection Implementation (C++ side)

  • Introduced new C++ modules: hevc_hdr.cpp/h for HEVC bitstream parsing and HDR classification, and hdrdetector.cpp/h for live DVB stream HDR detection using a TS recorder tap. These modules extract and classify HDR information from video streams. [1] [2] [3] [4]
  • Updated servicedvb.cpp to integrate the HDR detector for live DVB playback, initializing and managing the detector as part of the service play pipeline. [1] [2]
  • Added a new enum value sHDRType in iservice.h to represent the detected HDR type in the service information interface.

Python API Enhancements

  • Extended the ServiceInfo converter in ServiceInfo.py to support new HDR-related properties (e.g., HDRType, IsHDR10File, IsHLGFile, IsDVFile, IsAnyHDRFile, IsHDRGenericFile). These properties are now available for UI and plugin use. [1] [2]
  • Implemented logic in the converter to query and interpret HDR type from the new C++ detector, including fallback to legacy gamma detection if needed, and to expose these results as booleans or values. [1] [2] [3]

Overall, this PR provides robust, software-based HDR detection for supported hardware, exposes detailed HDR information to the Python layer, and ensures the feature is only enabled where it is fully supported.

DimitarCC added 15 commits June 14, 2026 16:45
…bles and enhancing handling for HEVC streams
…irst frame restarts and enhance colorimetry checks in MP3 service
…ort and update related logic across service components
@TwolDE2 TwolDE2 merged commit bb92b19 into OpenViX:Developer Jun 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants