1 /* 2 * Copyright (c) 2025, 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 #ifndef API_CONVERSION_MIX_PRESENTATION_METADATA_H_ 14 #define API_CONVERSION_MIX_PRESENTATION_METADATA_H_ 15 16 #include "absl/status/statusor.h" 17 #include "iamf/api/types.h" 18 #include "iamf/obu/mix_presentation.h" 19 20 namespace iamf_tools { 21 22 /*!\brief Converts the API-requested OutputLayout to an internal IAMF Layout. */ 23 Layout ApiToInternalType(api::OutputLayout api_output_layout); 24 25 /*!\brief Converts the internal IAMF Layout to the API OutputLayout. */ 26 absl::StatusOr<api::OutputLayout> InternalToApiType(Layout internal_layout); 27 28 } // namespace iamf_tools 29 30 #endif // API_CONVERSION_MIX_PRESENTATION_METADATA_H_ 31