DASH Media Packaging SDK
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
media
formats
webvtt
webvtt_timestamp.h
1
// Copyright 2017 Google Inc. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file or at
5
// https://developers.google.com/open-source/licenses/bsd
6
7
#ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_TIMESTAMP_H_
8
#define PACKAGER_MEDIA_FORMATS_WEBVTT_TIMESTAMP_H_
9
10
#include <stdint.h>
11
12
#include <string>
13
14
#include "packager/base/strings/string_piece.h"
15
16
namespace
shaka {
17
namespace
media {
18
// Parse a timestamp into milliseconds using the two patterns defined by WebVtt:
19
// LONG : ##:##:##.### (long can have 2 or more hour digits)
20
// SHORT : ##:##:###
21
bool
WebVttTimestampParse(
const
base::StringPiece& source, uint64_t* out);
22
}
// namespace media
23
}
// namespace shaka
24
25
#endif // PACKAGER_MEDIA_FORMATS_WEBVTT_TIMESTAMP_H_
Generated on Tue Aug 22 2017 23:10:31 for DASH Media Packaging SDK by
1.8.6