Skip to content

Commit

Permalink
Merge pull request #1786 from RoyFunderburk/rf-sosm-1-1
Browse files Browse the repository at this point in the history
DTS:X Profile 2: MP4 dtsx box reporting includes additional DTS-speci…
  • Loading branch information
JeromeMartinez authored Jun 15, 2023
2 parents 1459c2c + 6f2ab9b commit ea234ae
Show file tree
Hide file tree
Showing 4 changed files with 377 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Source/MediaInfo/MediaInfo_Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static const char* ChannelLayout_2018[][2] =
{ "LI", "Bfl" },
{ "LS", "Ls" },
{ "Lfh", "Tfl" },
{ "Lh", "Vhl" },
{ "Lh", "Tfl" },
{ "Lhr", "Tbl" },
{ "Lhs", "Tfl" },
{ "Lrh", "Tbl" },
Expand All @@ -342,7 +342,7 @@ static const char* ChannelLayout_2018[][2] =
{ "Lvss", "Tsl" },
{ "Oh", "Tc" },
{ "Rfh", "Tfrr" },
{ "Rh", "Vhr" },
{ "Rh", "Tfr" },
{ "Rhr", "Tbr" },
{ "Rhs", "Tfr" },
{ "RC", "Rc" },
Expand Down Expand Up @@ -374,21 +374,26 @@ static const char* ChannelLayout_2018[][2] =
{ "Vhc", "Tfc" },
};
static const size_t ChannelLayout_2018_Size=sizeof(ChannelLayout_2018)/sizeof(decltype(*ChannelLayout_2018));
static const size_t ChannelLayout_2018_Aac_Size=3;
static const char* ChannelLayout_2018_Aac[ChannelLayout_2018_Aac_Size][2] =
static const char* ChannelLayout_2018_Aac[][2] =
{
{ "Cb", "Bfc" },
{ "Lb", "Bfl" },
{ "Rb", "Bfr" },
// Found in DTS-UHD, similar to AAC for channels above + theses additions
{ "Ltf", "Tfl" }, // Merged with Lh ("top" vs "high")
{ "Rtf", "Tfr" }, // Merged with Rh ("top" vs "high")
{ "Ltr", "Tbl" }, // Merged with Lhr ("top" vs "high")
{ "Rtr", "Tbr" }, // Merged with Rhr ("top" vs "high")
};
static const size_t ChannelLayout_2018_Aac_Size=sizeof(ChannelLayout_2018_Aac)/sizeof(decltype(*ChannelLayout_2018_Aac));
Ztring ChannelLayout_2018_Rename(const Ztring& Channels, const Ztring& Format)
{
ZtringList List;
List.Separator_Set(0, __T(" "));
List.Write(Channels);
size_t LfePos[3];
memset(LfePos, -1, sizeof(LfePos));
bool IsAac=(Format==__T("AAC") || Format==__T("USAC") || Format==__T("MPEG-H 3D Audio"));
bool IsAac=(Format==__T("AAC") || Format==__T("USAC") || Format==__T("MPEG-H 3D Audio") || Format==__T("DTS-UHD"));
for (size_t i=0; i<List.size(); i++)
{
Ztring& ChannelName=List[i];
Expand Down
1 change: 1 addition & 0 deletions Source/MediaInfo/Multiple/File_Mpeg4.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ private :
void moov_trak_mdia_minf_stbl_stsd_xxxx_sinf_imif();
void moov_trak_mdia_minf_stbl_stsd_xxxx_sinf_schm();
void moov_trak_mdia_minf_stbl_stsd_xxxx_sinf_schi();
void moov_trak_mdia_minf_stbl_stsd_xxxx_udts();
void moov_trak_mdia_minf_stbl_stsd_xxxx_vvcC();
void moov_trak_mdia_minf_stbl_stsd_xxxx_wave();
void moov_trak_mdia_minf_stbl_stsd_xxxx_wave_acbf();
Expand Down
Loading

0 comments on commit ea234ae

Please sign in to comment.