DtvKit_ATSC3.0
Loading...
Searching...
No Matches
atsc_core_streamer_isobmff_imsc1towebvtt.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3 *
4 * This file is part of a DTVKit Software Component
5 * You are permitted to copy, modify or distribute this file subject to the terms
6 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7 *
8 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * If you or your organisation is not a member of DTVKit then you have access
13 * to this source code outside of the terms of the licence agreement
14 * and you are expected to delete this and any associated files immediately.
15 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16 *******************************************************************************/
17
18#ifndef ATSC_CORE_IMSC1_TO_WEBVTT_H
19#define ATSC_CORE_IMSC1_TO_WEBVTT_H
20
21#include <string>
22#include <list>
23#include "atsc_core_utils_tinyxml2.h"
24#include "debug.h"
25#include "atsc_basetype.h"
26
34typedef struct{
35 char sBegin[32];
36 char sEnd[32];
37 char *pText[512];
39
45{
46public:
47
55
63
70 std::list<sSubtitleItem_t> Put(char *pData, int32_t iDataLen);
71
78 std::list<sSubtitleItem_t> Convertor(char *pData, int32_t iDataLen);
79
86 std::string MakeWebVtt(std::list<sSubtitleItem_t> list, UINT_64 llBmdt);
87
94 char *Put(char *pSrcPath, char *pDirectory, uint32_t iTsi, uint32_t iToi);
95
102 FLOAT_64 Time2Sec(std::string sTime);
103
110 std::string Sec2Time(FLOAT_64 dTime);
111};
112
113#endif //ATSC_CORE_IMSC1_TO_WEBVTT_H
Definition atsc_core_streamer_isobmff_imsc1towebvtt.h:45
FLOAT_64 Time2Sec(std::string sTime)
Time to seconds.
CImsc1ToWebvtt()
Constructor of CImsc1ToWebvtt.
std::string MakeWebVtt(std::list< sSubtitleItem_t > list, UINT_64 llBmdt)
process data
~CImsc1ToWebvtt()
Destructor of CImsc1ToWebvtt.
std::string Sec2Time(FLOAT_64 dTime)
seconds to time
std::list< sSubtitleItem_t > Convertor(char *pData, int32_t iDataLen)
convert data
Definition atsc_core_streamer_isobmff_imsc1towebvtt.h:34