• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef CLI_CODEC_OPUS_UTILS_H_
2 #define CLI_CODEC_OPUS_UTILS_H_
3 
4 #include "absl/status/status.h"
5 #include "absl/strings/string_view.h"
6 
7 namespace iamf_tools {
8 
9 /*!\brief Converts a `libopus` error code to an `absl::Status`.
10  *
11  * \param opus_error_code Error code from `libopus`.
12  * \param message Message to include in the returned `absl::Status`.
13  * \return `absl::Status` corresponding to input arguments.
14  */
15 absl::Status OpusErrorCodeToAbslStatus(int opus_error_code,
16                                        absl::string_view message);
17 
18 }  // namespace iamf_tools
19 
20 #endif  // CLI_CODEC_OPUS_UTILS_H_
21