• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024, Alliance for Open Media. All rights reserved
3  *
4  * This source code is subject to the terms of the BSD 3-Clause Clear License
5  * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
6  * License was not distributed with this source code in the LICENSE file, you
7  * can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the
8  * Alliance for Open Media Patent License 1.0 was not distributed with this
9  * source code in the PATENTS file, you can obtain it at
10  * www.aomedia.org/license/patent.
11  */
12 
13 #include "iamf/cli/adm_to_user_metadata/iamf/ia_sequence_header_obu_metadata_handler.h"
14 
15 #include "iamf/cli/proto/ia_sequence_header.pb.h"
16 #include "iamf/obu/ia_sequence_header.h"
17 
18 namespace iamf_tools {
19 namespace adm_to_user_metadata {
20 
21 // Sets the required textproto fields for `ia_sequence_header_metadata`.
PopulateIaSequenceHeaderObuMetadata(iamf_tools_cli_proto::ProfileVersion profile_version,iamf_tools_cli_proto::IASequenceHeaderObuMetadata & ia_sequence_header_obu_metadata)22 void PopulateIaSequenceHeaderObuMetadata(
23     iamf_tools_cli_proto::ProfileVersion profile_version,
24     iamf_tools_cli_proto::IASequenceHeaderObuMetadata&
25         ia_sequence_header_obu_metadata) {
26   ia_sequence_header_obu_metadata.set_ia_code(IASequenceHeaderObu::kIaCode);
27   ia_sequence_header_obu_metadata.set_primary_profile(profile_version);
28   ia_sequence_header_obu_metadata.set_additional_profile(profile_version);
29 }
30 
31 }  // namespace adm_to_user_metadata
32 }  // namespace iamf_tools
33