@@ -670,20 +670,38 @@ QString getStereoModeQString(const StereoMode_e stereoMode)
670
670
671
671
QString getHdrModeQString (const HdrMode_e hdrMode)
672
672
{
673
- QString hdr_mode_qstr;
674
-
675
- if (hdrMode == HLG)
676
- hdr_mode_qstr = " HDR10" ;
677
- else if (hdrMode == HDR10)
678
- hdr_mode_qstr = " HDR10" ;
679
- else if (hdrMode == HDR10plus)
680
- hdr_mode_qstr = " HDR10+" ;
681
- else if (hdrMode == DolbyVision)
682
- hdr_mode_qstr = " Dolby Vision" ;
673
+ // product names, not translated, so we can use the function from minivideo
674
+ return QString::fromLatin1 (getHdrModeString (hdrMode));
675
+ }
676
+
677
+ /* ************************************************************************** */
678
+
679
+ QString getChromaSubsamplingQString (const ChromaSubSampling_e subsampling)
680
+ {
681
+ // technical terms, not translated, so we can use the function from minivideo
682
+ return QString::fromLatin1 (getChromaSubsamplingString (subsampling));
683
+ }
684
+
685
+ QString getChromaLocationQString (const ChromaLocation_e location)
686
+ {
687
+ QString loc_qstr;
688
+
689
+ if (location == CHROMA_LOC_LEFT)
690
+ loc_qstr = QObject::tr (" Left" );
691
+ else if (location == CHROMA_LOC_CENTER)
692
+ loc_qstr = QObject::tr (" Center" );
693
+ else if (location == CHROMA_LOC_TOPLEFT)
694
+ loc_qstr = QObject::tr (" Top left" );
695
+ else if (location == CHROMA_LOC_TOP)
696
+ loc_qstr = QObject::tr (" Top" );
697
+ else if (location == CHROMA_LOC_BOTTOMLEFT)
698
+ loc_qstr = QObject::tr (" Bottom left" );
699
+ else if (location == CHROMA_LOC_BOTTOM)
700
+ loc_qstr = QObject::tr (" Bottom" );
683
701
else
684
- hdr_mode_qstr = " SDR " ;
702
+ loc_qstr = QObject::tr ( " Unknown " ) ;
685
703
686
- return hdr_mode_qstr ;
704
+ return loc_qstr ;
687
705
}
688
706
689
707
/* ************************************************************************** */
0 commit comments