| 567 | } |
| 568 | |
| 569 | static int vvcc_write(AVIOContext *pb, VVCDecoderConfigurationRecord *vvcc) |
| 570 | { |
| 571 | uint16_t vps_count = 0, sps_count = 0, pps_count = 0; |
| 572 | /* |
| 573 | * It's unclear how to properly compute these fields, so |
| 574 | * let's always set them to values meaning 'unspecified'. |
| 575 | */ |
| 576 | vvcc->avg_frame_rate = 0; |
| 577 | vvcc->constant_frame_rate = 1; |
| 578 | |
| 579 | av_log(NULL, AV_LOG_TRACE, |
| 580 | "lengthSizeMinusOne: %" PRIu8 "\n", |
| 581 | vvcc->lengthSizeMinusOne); |
| 582 | av_log(NULL, AV_LOG_TRACE, |
| 583 | "ptl_present_flag: %" PRIu8 "\n", |
| 584 | vvcc->ptl_present_flag); |
| 585 | av_log(NULL, AV_LOG_TRACE, |
| 586 | "ols_idx: %" PRIu16 "\n", vvcc->ols_idx); |
| 587 | av_log(NULL, AV_LOG_TRACE, |
| 588 | "num_sublayers: %" PRIu8 "\n", |
| 589 | vvcc->num_sublayers); |
| 590 | av_log(NULL, AV_LOG_TRACE, |
| 591 | "constant_frame_rate: %" PRIu8 "\n", |
| 592 | vvcc->constant_frame_rate); |
| 593 | av_log(NULL, AV_LOG_TRACE, |
| 594 | "chroma_format_idc: %" PRIu8 "\n", |
| 595 | vvcc->chroma_format_idc); |
| 596 | |
| 597 | av_log(NULL, AV_LOG_TRACE, |
| 598 | "bit_depth_minus8: %" PRIu8 "\n", |
| 599 | vvcc->bit_depth_minus8); |
| 600 | av_log(NULL, AV_LOG_TRACE, |
| 601 | "num_bytes_constraint_info: %" PRIu8 "\n", |
| 602 | vvcc->ptl.num_bytes_constraint_info); |
| 603 | av_log(NULL, AV_LOG_TRACE, |
| 604 | "general_profile_idc: %" PRIu8 "\n", |
| 605 | vvcc->ptl.general_profile_idc); |
| 606 | av_log(NULL, AV_LOG_TRACE, |
| 607 | "general_tier_flag: %" PRIu8 "\n", |
| 608 | vvcc->ptl.general_tier_flag); |
| 609 | av_log(NULL, AV_LOG_TRACE, |
| 610 | "general_level_idc: %" PRIu8 "\n", |
| 611 | vvcc->ptl.general_level_idc); |
| 612 | av_log(NULL, AV_LOG_TRACE, |
| 613 | "ptl_frame_only_constraint_flag: %" PRIu8 "\n", |
| 614 | vvcc->ptl.ptl_frame_only_constraint_flag); |
| 615 | av_log(NULL, AV_LOG_TRACE, |
| 616 | "ptl_multilayer_enabled_flag: %" PRIu8 "\n", |
| 617 | vvcc->ptl.ptl_multilayer_enabled_flag); |
| 618 | for (int i = 0; i < vvcc->ptl.num_bytes_constraint_info; i++) { |
| 619 | av_log(NULL, AV_LOG_TRACE, |
| 620 | "general_constraint_info[%d]: %" PRIu8 "\n", i, |
| 621 | vvcc->ptl.general_constraint_info[i]); |
| 622 | } |
| 623 | |
| 624 | for (int i = 0; i < vvcc->num_sublayers - 1; i++) { |
| 625 | av_log(NULL, AV_LOG_TRACE, |
| 626 | "ptl_sublayer_level_present_flag[%d]: %" PRIu8 "\n", i, |
no test coverage detected