2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-06-27 23:07:36 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
#ifndef APP_STREAM_DESCRIPTOR_H_
|
|
|
|
#define APP_STREAM_DESCRIPTOR_H_
|
|
|
|
|
2023-10-11 08:49:50 +00:00
|
|
|
#include <optional>
|
2014-06-27 23:07:36 +00:00
|
|
|
#include <string>
|
|
|
|
|
2023-10-10 23:51:11 +00:00
|
|
|
#include <packager/packager.h>
|
2023-09-09 00:44:17 +00:00
|
|
|
#include <optional>
|
2015-12-16 18:20:13 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-06-27 23:07:36 +00:00
|
|
|
|
|
|
|
/// Parses a descriptor string, and inserts into sorted list of stream
|
|
|
|
/// descriptors.
|
|
|
|
/// @param descriptor_string contains comma separate name-value pairs describing
|
|
|
|
/// the stream.
|
|
|
|
/// @param descriptor_list is a pointer to the sorted descriptor list into
|
|
|
|
/// which the new descriptor should be inserted.
|
|
|
|
/// @return true if successful, false otherwise. May print error messages.
|
2023-09-09 00:44:17 +00:00
|
|
|
std::optional<StreamDescriptor> ParseStreamDescriptor(
|
2017-05-22 20:31:41 +00:00
|
|
|
const std::string& descriptor_string);
|
2014-06-27 23:07:36 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-06-27 23:07:36 +00:00
|
|
|
|
|
|
|
#endif // APP_STREAM_DESCRIPTOR_H_
|