Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
pvr_stream.h
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#ifndef C_API_ADDONINSTANCE_PVR_STREAM_H
10#define C_API_ADDONINSTANCE_PVR_STREAM_H
11
12#include "../inputstream/demux_packet.h"
13#include "pvr_defines.h"
14
15#include <stdint.h>
16#include <time.h>
17
18//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
19// "C" Definitions group 9 - PVR stream definitions (NOTE: Becomes replaced
20// in future by inputstream addon instance way)
21#ifdef __cplusplus
22extern "C"
23{
24#endif /* __cplusplus */
25
26 //============================================================================
30#define PVR_STREAM_MAX_STREAMS 20
31 //----------------------------------------------------------------------------
32
33 //============================================================================
37#define PVR_INVALID_CODEC_ID 0
38 //----------------------------------------------------------------------------
39
40 //============================================================================
44#define PVR_INVALID_CODEC \
45 { \
46 PVR_CODEC_TYPE_UNKNOWN, PVR_INVALID_CODEC_ID \
47 }
48 //----------------------------------------------------------------------------
49
50 //============================================================================
87 //----------------------------------------------------------------------------
88
89 //============================================================================
96 typedef struct PVR_CODEC
97 {
100
102 unsigned int codec_id;
103 } PVR_CODEC;
105 //----------------------------------------------------------------------------
106
115 {
116 unsigned int iStreamCount;
118 {
119 unsigned int iPID;
120 enum PVR_CODEC_TYPE iCodecType;
121 unsigned int iCodecId;
122 char strLanguage[4];
123 int iSubtitleInfo;
124 int iFPSScale;
125 int iFPSRate;
126 int iHeight;
127 int iWidth;
128 float fAspect;
129 int iChannels;
130 int iSampleRate;
131 int iBlockAlign;
132 int iBitRate;
133 int iBitsPerSample;
134 } stream[PVR_STREAM_MAX_STREAMS];
136
144 typedef struct PVR_STREAM_TIMES
145 {
146 time_t startTime;
147 int64_t ptsStart;
148 int64_t ptsBegin;
149 int64_t ptsEnd;
151
152#ifdef __cplusplus
153}
154#endif /* __cplusplus */
155
156#endif /* !C_API_ADDONINSTANCE_PVR_STREAM_H */
PVR_CODEC_TYPE
Definition pvr_stream.h:60
@ PVR_CODEC_TYPE_UNKNOWN
To set nothing defined.
Definition pvr_stream.h:62
@ PVR_CODEC_TYPE_DATA
To identify class PVRStreamProperties as Data.
Definition pvr_stream.h:73
@ PVR_CODEC_TYPE_AUDIO
To identify class PVRStreamProperties as Audio.
Definition pvr_stream.h:68
@ PVR_CODEC_TYPE_RDS
To identify class PVRStreamProperties as Radio RDS.
Definition pvr_stream.h:79
@ PVR_CODEC_TYPE_SUBTITLE
To identify class PVRStreamProperties as Subtitle.
Definition pvr_stream.h:76
@ PVR_CODEC_TYPE_ID3
To identify class PVRStreamProperties as Audio ID3 tags.
Definition pvr_stream.h:82
@ PVR_CODEC_TYPE_VIDEO
To identify class PVRStreamProperties as Video.
Definition pvr_stream.h:65
enum PVR_CODEC_TYPE codec_type
Used codec type for stream.
Definition pvr_stream.h:99
unsigned int codec_id
Related codec identifier, normally match the ffmpeg id's.
Definition pvr_stream.h:102
Definition pvr_stream.h:97
#define PVR_STREAM_MAX_STREAMS
Maximum of allowed streams.
Definition pvr_stream.h:30
"C" Stream properties
Definition pvr_stream.h:115
Definition pvr_stream.h:118
"C" Times of playing stream (Live TV and recordings)
Definition pvr_stream.h:145