• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023, 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 #ifndef CLI_ENCODER_MAIN_LIB_H_
13 #define CLI_ENCODER_MAIN_LIB_H_
14 
15 #include <string>
16 
17 #include "absl/status/status.h"
18 #include "iamf/cli/proto/user_metadata.pb.h"
19 
20 /*!\brief Writes an IAMF bitstream and wav files to the output files.
21  *
22  * \param user_metadata Input user metadata describing the IAMF stream.
23  * \param input_wav_directory Directory which contains the input wav files.
24  * \param output_iamf_directory Directory to output IAMF files to.
25  * \return `absl::OkStatus()` on success. A specific status on failure.
26  */
27 namespace iamf_tools {
28 absl::Status TestMain(const iamf_tools_cli_proto::UserMetadata& user_metadata,
29                       const std::string& input_wav_directory,
30                       const std::string& output_iamf_directory);
31 }
32 
33 #endif  // CLI_ENCODER_MAIN_LIB_H_
34