Skip to content

Commit

Permalink
AVC: dump seq-ext parameters (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 3, 2024
1 parent 015c9cf commit 0672d7d
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions libheif/codecs/avc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,13 @@ Error Box_avcC::write(StreamWriter &writer) const {
std::string Box_avcC::dump(Indent &indent) const {
std::ostringstream sstr;
sstr << Box::dump(indent);
sstr << indent << "configuration_version: "
<< ((int)m_configuration.configuration_version) << "\n"
<< indent << "AVCProfileIndication: "
<< ((int)m_configuration.AVCProfileIndication) << " ("
<< profileIndicationAsText() << ")"
<< "\n"
<< indent << "profile_compatibility: "
<< ((int)m_configuration.profile_compatibility) << "\n"
<< indent
<< "AVCLevelIndication: " << ((int)m_configuration.AVCLevelIndication)
<< "\n";
sstr << indent << "configuration_version: " << ((int)m_configuration.configuration_version) << "\n"
<< indent << "AVCProfileIndication: " << ((int)m_configuration.AVCProfileIndication) << " (" << profileIndicationAsText() << ")\n"
<< indent << "profile_compatibility: " << ((int)m_configuration.profile_compatibility) << "\n"
<< indent << "AVCLevelIndication: " << ((int)m_configuration.AVCLevelIndication) << "\n"
<< indent << "Chroma format: " << ((int)m_configuration.chroma_format) << "\n"
<< indent << "Bit depth luma: " << ((int)m_configuration.bit_depth_luma) << "\n"
<< indent << "Bit depth chroma: " << ((int)m_configuration.bit_depth_chroma) << "\n";

for (const auto &sps : m_sps) {
sstr << indent << "SPS: ";
Expand All @@ -119,6 +115,15 @@ std::string Box_avcC::dump(Indent &indent) const {
sstr << std::dec;
}

for (const auto &spsext : m_sps_ext) {
sstr << indent << "SPS-EXT: ";
for (uint8_t b : spsext) {
sstr << std::setfill('0') << std::setw(2) << std::hex << ((int)b) << " ";
}
sstr << "\n";
sstr << std::dec;
}

for (const auto &pps : m_pps) {
sstr << indent << "PPS: ";
for (uint8_t b : pps) {
Expand Down

0 comments on commit 0672d7d

Please sign in to comment.