DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
stbpvr.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 // pre-processor mechanism so multiple inclusions don't cause compilation error
26 
27 #ifndef _STBPVR_H
28 #define _STBPVR_H
29 
30 #include "techtype.h"
31 #include "stbpvrpr.h"
32 #include "stbhwdmx.h"
33 
34 //---Constant and macro definitions for public use-----------------------------
35 
36 #define STB_PVR_NAME_LEN 255
37 #define STB_PVR_BASENAME_LEN 9
38 #define STB_PVR_SERVICE_LEN 32
39 #define STB_PVR_ADDITIONAL_INFO_LEN 255
40 
41 #define STB_PVR_NORMAL_PLAY_SPEED 100
42 #define STB_PVR_INVALID_HANDLE 0
43 
44 #define STB_PVR_MAX_CRID_LEN 65
45 
46 #define STB_PVR_MAX_ADD_INFO_LEN 255
47 
48 //---Enumerations for public use-----------------------------------------------
49 
50 typedef enum
51 {
52  FORMAT_START = 0,
53  FORMAT_PROGRESS = 1,
54  FORMAT_END = 2
55 } E_STB_PVR_FORMATMODE;
56 
57 typedef enum
58 {
59  REPAIR_ENQUIRE = 0,
60  REPAIR_START = 1,
61  REPAIR_PROGRESS = 2,
62  REPAIR_END = 3
63 } E_STB_PVR_REPAIRMODE;
64 
65 //---Global type defs for public use-------------------------------------------
66 
67 //---Global Function prototypes for public use---------------------------------
68 
69 BOOLEAN STB_PVRInitialise(void);
70 void STB_PVRSetStandbyState(BOOLEAN state);
71 BOOLEAN STB_PVRIsInitialised(void);
72 U16BIT STB_PVRGetDefaultDisk(void);
73 BOOLEAN STB_PVRCanDiskBeUsed(U16BIT disk_id);
74 
75 BOOLEAN STB_PVRFormat(U16BIT disk_id, E_STB_PVR_FORMATMODE mode, U8BIT *prog);
76 BOOLEAN STB_PVRRepair(U16BIT disk_id, E_STB_PVR_REPAIRMODE mode, U8BIT *prog);
77 
78 void STB_PVRUpdateRecordings(BOOLEAN force_load);
79 
80 BOOLEAN STB_PVRIsValidHandle(U32BIT handle);
81 
82 BOOLEAN STB_PVRCreateRecording(U16BIT disk_id, U8BIT *name, U32BIT *handle);
83 BOOLEAN STB_PVRDestroyRecording(U32BIT handle);
84 
85 void STB_PVRSaveRecording(U32BIT handle);
86 
87 U16BIT STB_PVRGetRecordingHandles(U32BIT **handle_array);
88 void STB_PVRReleaseRecordingHandles(U32BIT *handle_array);
89 
90 BOOLEAN STB_PVRFindRecordingFromCrid(U8BIT *prog_crid, U32BIT *handle);
91 BOOLEAN STB_PVRFindNextSplitRecording(U32BIT curr_handle, U32BIT *next_handle);
92 
93 U32BIT STB_PVRGetHandleForRecordingIndex(U8BIT rec_index);
94 U8BIT STB_PVRGetPathForRecordingIndex(U8BIT rec_index);
95 
96 void STB_PVRRecordingSetName(U32BIT handle, U8BIT *name);
97 U8BIT* STB_PVRRecordingGetName(U32BIT handle);
98 BOOLEAN STB_PVRRecordingGetDateTime(U32BIT handle, U16BIT *date, U8BIT *hours, U8BIT *mins, U8BIT *secs);
99 BOOLEAN STB_PVRRecordingGetLength(U32BIT handle, U8BIT *length_hours, U8BIT *length_mins, U8BIT *length_secs, U32BIT *rec_size_kb);
100 U16BIT STB_PVRRecordingGetDiskId(U32BIT handle);
101 void STB_PVRRecordingSetSeries(U32BIT handle);
102 void STB_PVRRecordingSetRecommendation(U32BIT handle);
103 BOOLEAN STB_PVRRecordingGetRecommendation(U32BIT handle);
104 BOOLEAN STB_PVRRecordingGetSeries(U32BIT handle);
105 void STB_PVRRecordingSetOtherCrid(U32BIT handle, U8BIT *crid);
106 BOOLEAN STB_PVRRecordingGetOtherCrid(U32BIT handle, U8BIT *crid, U16BIT name_len);
107 
113 void STB_PVRRecordingSetAdditionalInfo(U32BIT handle, U8BIT *additional_info);
114 
120 U8BIT* STB_PVRRecordingGetAdditionalInfo(U32BIT handle);
121 
127 void STB_PVRRecordingSetParentalRatingAge(U32BIT handle, U32BIT parental_rating);
128 
135 U32BIT STB_PVRRecordingGetParentalRating(U32BIT handle);
136 
142 void STB_PVRRecordingSetStartPadding(U32BIT handle, S32BIT start_padding);
143 
150 S32BIT STB_PVRRecordingGetStartPadding(U32BIT handle);
151 
157 void STB_PVRRecordingSetEndPadding(U32BIT handle, S32BIT end_padding);
158 
165 S32BIT STB_PVRRecordingGetEndPadding(U32BIT handle);
166 
167 void STB_PVRRecordingSetServiceName(U32BIT handle, U8BIT *service_name);
168 BOOLEAN STB_PVRRecordingGetServiceName(U32BIT handle, U8BIT *service_name, U16BIT name_len);
169 void STB_PVRRecordingSetDescription(U32BIT handle, U8BIT *description);
170 BOOLEAN STB_PVRRecordingGetDescription(U32BIT handle, U8BIT *description, U16BIT desc_len);
171 U16BIT STB_PVRRecordingGetDescriptionLen(U32BIT handle);
172 void STB_PVRRecordingSetExtendedDescription(U32BIT handle, U8BIT *description);
173 BOOLEAN STB_PVRRecordingGetExtendedDescription(U32BIT handle, U8BIT *description, U16BIT desc_len);
174 U16BIT STB_PVRRecordingGetExtendedDescriptionLen(U32BIT handle);
175 void STB_PVRRecordingSetCrid(U32BIT handle, U8BIT *crid);
176 BOOLEAN STB_PVRRecordingGetCrid(U32BIT handle, U8BIT *crid, U16BIT name_len);
177 BOOLEAN STB_PVRRecordingSetLocked(U32BIT handle, BOOLEAN state);
178 BOOLEAN STB_PVRRecordingGetLocked(U32BIT handle);
179 BOOLEAN STB_PVRRecordingSetSelected(U32BIT handle, BOOLEAN state);
180 BOOLEAN STB_PVRRecordingGetSelected(U32BIT handle);
181 BOOLEAN STB_PVRRecordingIsEncrypted(U32BIT handle);
182 BOOLEAN STB_PVRRecordingSetParentalLock(U32BIT handle, BOOLEAN state);
183 BOOLEAN STB_PVRRecordingGetParentalLock(U32BIT handle);
184 BOOLEAN STB_PVRRecordingSetGuidance(U32BIT handle, U8BIT *text);
185 BOOLEAN STB_PVRRecordingHasGuidance(U32BIT handle);
186 BOOLEAN STB_PVRRecordingGetGuidance(U32BIT handle, U8BIT *text, U16BIT text_len);
187 U16BIT STB_PVRRecordingGetGuidanceLen(U32BIT handle);
188 
189 BOOLEAN STB_PVRRecordingSetCicamId(U32BIT handle, U8BIT *cicam_id, U8BIT id_len);
190 BOOLEAN STB_PVRRecordingGetCicamId(U32BIT handle, U8BIT *cicam_id, U8BIT id_len);
191 BOOLEAN STB_PVRRecordingAddURI(U32BIT handle, U8BIT *uri);
192 BOOLEAN STB_PVRRecordingUpdateURI(U32BIT handle, U8BIT *uri);
193 BOOLEAN STB_PVRRecordingAddLicence(U32BIT handle, U8BIT *licence, U16BIT licence_len);
194 BOOLEAN STB_PVRRecordingUpdateLicence(U32BIT handle, U8BIT *licence, U16BIT licence_len);
195 BOOLEAN STB_PVRRecordingAddPin(U32BIT handle, U8BIT age_rating, U8BIT *private_data,
196  U16BIT date_code, U8BIT hour, U8BIT min, U8BIT secs);
197 
198 BOOLEAN STB_PVRIsBeingRecorded(U32BIT handle);
199 
200 U32BIT STB_PVRGetTimeOfAllRecordings(U16BIT disk_id);
201 U32BIT STB_PVRGetSizeOfAllRecordings(U16BIT disk_id);
202 
203 BOOLEAN STB_PVRToggleBookmark(U8BIT path);
204 BOOLEAN STB_PVRGotoNextBookmark(U8BIT path);
205 
213 U16BIT STB_PVRGetBookmarks(U8BIT path, void ***bookmarks);
214 
222 U16BIT STB_PVRGetBookmarksForRecording(U32BIT handle, void ***bookmarks);
223 
229 void STB_PVRReleaseBookmarks(void **bookmarks, U16BIT num);
230 
231 void STB_PVRPlaybackNotifyTime(U8BIT path);
232 
233 BOOLEAN STB_PVRStartPlaying(U8BIT path, U32BIT handle, BOOLEAN resume);
234 BOOLEAN STB_PVRIsPlaying(U8BIT path, U32BIT *handle);
235 
243 void STB_PVRSavePlayPosition(U8BIT path);
244 
245 void STB_PVRStopPlaying(U8BIT path);
246 BOOLEAN STB_PVRRecordingGetTriplet(U32BIT handle, U16BIT *serv_id, U16BIT *ts_id, U16BIT *orig_net_id);
247 
248 void STB_PVRStartPlayRunning(U8BIT decoder);
249 void STB_PVRStartPlayPaused(U8BIT decoder);
250 void STB_PVRStartPlaySync(U8BIT decoder);
251 BOOLEAN STB_PVRIsPlayAudio(U8BIT decoder);
252 
253 BOOLEAN STB_PVRIsPlayVideo(U32BIT handle);
254 
255 BOOLEAN STB_PVRSetRecordingPids(U8BIT path, U16BIT num_pids, S_PVR_PID_INFO *pid_array);
256 BOOLEAN STB_PVRUpdateRecordingPids(U8BIT path, U16BIT num_pids, S_PVR_PID_INFO *pid_array);
257 
258 BOOLEAN STB_PVRSetRecoringTriplet(U8BIT path, U16BIT serv_id, U16BIT ts_id, U16BIT orig_net_id);
259 
260 BOOLEAN STB_PVRStartRecording(U8BIT path, U32BIT handle);
261 BOOLEAN STB_PVRPauseRecording(U8BIT path);
262 BOOLEAN STB_PVRResumeRecording(U8BIT path);
263 void STB_PVRStopRecording(U8BIT path);
264 BOOLEAN STB_PVRIsRecording(U8BIT path, U32BIT *handle);
265 
266 void STB_PVRStartRecordRunning(U8BIT path);
267 void STB_PVRStartRecordPaused(U8BIT path, U32BIT timeshift_seconds);
268 BOOLEAN STB_PVRIsRecordVideo(U8BIT path);
269 BOOLEAN STB_PVRIsRecordAudio(U8BIT path);
270 
271 void STB_PVREncryptRecording(U8BIT path, BOOLEAN state);
272 
273 #ifdef COMMON_INTERFACE
274 BOOLEAN STB_PVRSetDescramblerKey(U8BIT path, E_STB_DMX_DESC_TYPE desc_type,
275  E_STB_DMX_DESC_KEY_PARITY parity, U8BIT *key, U8BIT *iv);
276 #endif
277 
278 void STB_PVRPlayNormal(U8BIT decoder);
279 BOOLEAN STB_PVRIsPlayNormal(U8BIT decoder);
280 
281 void STB_PVRPlayPause(U8BIT decoder);
282 BOOLEAN STB_PVRIsPlayPause(U8BIT decoder);
283 
284 void STB_PVRPlayForward(U8BIT decoder);
285 BOOLEAN STB_PVRIsPlayForward(U8BIT decoder);
286 
287 void STB_PVRPlayReverse(U8BIT decoder);
288 BOOLEAN STB_PVRIsPlayReverse(U8BIT decoder);
289 
290 void STB_PVRPlayFrameInc(U8BIT decoder);
291 void STB_PVRPlayFrameDec(U8BIT decoder);
292 
293 void STB_PVRPlayMedium(U8BIT decoder);
294 BOOLEAN STB_PVRIsPlayMedium(U8BIT decoder);
295 
296 void STB_PVRPlaySlower(U8BIT decoder, BOOLEAN include_slow_speeds);
297 BOOLEAN STB_PVRIsPlaySlowest(U8BIT decoder);
298 
299 void STB_PVRPlayFaster(U8BIT decoder, BOOLEAN include_slow_speeds);
300 BOOLEAN STB_PVRIsPlayFastest(U8BIT decoder);
301 
302 S16BIT STB_PVRGetMinPlaySpeed(U8BIT path);
303 S16BIT STB_PVRGetMaxPlaySpeed(U8BIT path);
304 
305 void STB_PVRDiskUsed(U16BIT disk_id, U8BIT *hours, U8BIT *mins);
306 void STB_PVRDiskFree(U16BIT disk_id, U8BIT *hours, U8BIT *mins);
307 U32BIT STB_PVRDiskSize(U16BIT disk_id);
308 
318 BOOLEAN STB_PVRCreateBookmark(U32BIT handle, U32BIT time, U8BIT *name);
319 
329 BOOLEAN STB_PVRDeleteBookmark(U32BIT handle, U32BIT time, U8BIT *name);
330 
336 U32BIT STB_PVRGetBookmarkTime(void *bookmark_handle);
337 
343 U8BIT *STB_PVRGetBookmarkName(void *bookmark_handle);
344 
345 #endif // _STBPVR_H
346 
347 //*****************************************************************************
348 // End of file
349 //*****************************************************************************
350 
BOOLEAN STB_PVRRecordingGetExtendedDescription(U32BIT handle, U8BIT *description, U16BIT desc_len)
Gets the extended description for a given recording.
Definition: stbpvr.c:2180
BOOLEAN STB_PVRCreateRecording(U16BIT disk_id, U8BIT *name, U32BIT *handle)
Create a new recording and return the handle.
Definition: stbpvr.c:826
BOOLEAN STB_PVRIsPlayReverse(U8BIT decoder)
Returns TRUE if play is backwards trick mode.
Definition: stbpvr.c:5340
void STB_PVRPlayMedium(U8BIT decoder)
Sets play speed to medium (1x) - has no effect when decoding from demux.
Definition: stbpvr.c:5432
BOOLEAN STB_PVRRecordingGetParentalLock(U32BIT handle)
Returns the parental lock state of the given recording.
Definition: stbpvr.c:2738
BOOLEAN STB_PVRCanDiskBeUsed(U16BIT disk_id)
Checks whether the given disk can be used for PVR functions.
Definition: stbpvr.c:531
void STB_PVRRecordingSetServiceName(U32BIT handle, U8BIT *service_name)
Sets the service name for a recording and saves the database file.
Definition: stbpvr.c:1965
void STB_PVRRecordingSetOtherCrid(U32BIT handle, U8BIT *crid)
Sets the series/recommendation CRID for a recording and saves the database file.
Definition: stbpvr.c:1604
void STB_PVRStartRecordPaused(U8BIT path, U32BIT timeshift_seconds)
Set to start recording in paused mode for timeshift recording.
Definition: stbpvr.c:4866
void STB_PVRPlayForward(U8BIT decoder)
Set play forwards - has no effect when decoding from demux.
Definition: stbpvr.c:5210
void STB_PVRRecordingSetEndPadding(U32BIT handle, S32BIT end_padding)
Sets the end padding value for the specified recording.
Definition: stbpvr.c:1902
U16BIT STB_PVRGetBookmarks(U8BIT path, void ***bookmarks)
Allocates and returns an array containing the handles of the bookmarks for the recording currently be...
Definition: stbpvr.c:4274
BOOLEAN STB_PVRRecordingIsEncrypted(U32BIT handle)
Returns whether the given recording is encrypted.
Definition: stbpvr.c:2656
BOOLEAN STB_PVRRecordingGetOtherCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the series/recommendation CRID for a given recording.
Definition: stbpvr.c:1655
void STB_PVRPlayReverse(U8BIT decoder)
Set play backwards - has no effect when decoding from demux.
Definition: stbpvr.c:5293
void STB_PVRRecordingSetAdditionalInfo(U32BIT handle, U8BIT *additional_info)
Sets the additional info string for a recording.
Definition: stbpvr.c:1699
U8BIT * STB_PVRRecordingGetAdditionalInfo(U32BIT handle)
Gets the additional info string pointer for a recording.
Definition: stbpvr.c:1743
BOOLEAN STB_PVRGotoNextBookmark(U8BIT path)
Jumps playback to the position of the bookmark after the current play position.
Definition: stbpvr.c:4200
S32BIT STB_PVRRecordingGetStartPadding(U32BIT handle)
Gets the start padding value for the specified recording as set by STB_PVRRecordingSetStartPadding.
Definition: stbpvr.c:1871
BOOLEAN STB_PVRRecordingSetGuidance(U32BIT handle, U8BIT *text)
Sets the guidance text of a recording.
Definition: stbpvr.c:2774
U32BIT STB_PVRGetBookmarkTime(void *bookmark_handle)
Returns the time associated with a bookmark.
Definition: stbpvr.c:4392
void STB_PVRPlayFaster(U8BIT decoder, BOOLEAN include_slow_speeds)
Increase play speed - has no effect when decoding from demux.
Definition: stbpvr.c:5539
BOOLEAN STB_PVRFindNextSplitRecording(U32BIT curr_handle, U32BIT *next_handle)
Returns the handle of a split event recording that follows on from curr_handle.
Definition: stbpvr.c:1120
BOOLEAN STB_PVRRecordingGetLocked(U32BIT handle)
Returns whether the given recording is locked.
Definition: stbpvr.c:2555
void STB_PVRStartPlayRunning(U8BIT decoder)
Set to start playback in running mode.
Definition: stbpvr.c:3875
void STB_PVRRecordingSetStartPadding(U32BIT handle, S32BIT start_padding)
Sets the start padding value for the specified recording.
Definition: stbpvr.c:1839
void STB_PVRPlayFrameDec(U8BIT decoder)
Decrements play by one frame - has no effect when decoding from demux.
Definition: stbpvr.c:5404
BOOLEAN STB_PVRRecordingSetParentalLock(U32BIT handle, BOOLEAN state)
Sets the parental lock state of a recording.
Definition: stbpvr.c:2692
BOOLEAN STB_PVRSetRecordingPids(U8BIT path, U16BIT num_pids, S_PVR_PID_INFO *pid_array)
Saves (takes a copy of) the array of pids to be recorded.
Definition: stbpvr.c:4007
BOOLEAN STB_PVRDestroyRecording(U32BIT handle)
Completely destroys a recording by deleting all files and removing it from the list of recordings...
Definition: stbpvr.c:928
BOOLEAN STB_PVRStartRecording(U8BIT path, U32BIT handle)
Start the PVR record tasks.
Definition: stbpvr.c:4507
U16BIT STB_PVRRecordingGetDiskId(U32BIT handle)
Gets the disk id for a recording.
Definition: stbpvr.c:1571
BOOLEAN STB_PVRIsPlayVideo(U32BIT handle)
Returns TRUE if play contains video data.
Definition: stbpvr.c:3941
U16BIT STB_PVRRecordingGetExtendedDescriptionLen(U32BIT handle)
Gets the length of the extended description for a given recording.
Definition: stbpvr.c:2214
BOOLEAN STB_PVRIsInitialised(void)
Returns Initialised status.
Definition: stbpvr.c:472
void STB_PVRPlaybackNotifyTime(U8BIT path)
Handles the notification received from the platform code when playback reaches a set position...
Definition: stbpvr.c:4449
BOOLEAN STB_PVRIsValidHandle(U32BIT handle)
Determines whether the given handle is in the recording database.
Definition: stbpvr.c:794
BOOLEAN STB_PVRRecordingSetSelected(U32BIT handle, BOOLEAN state)
Sets the selected state of a recording.
Definition: stbpvr.c:2591
BOOLEAN STB_PVRRecordingGetTriplet(U32BIT handle, U16BIT *serv_id, U16BIT *ts_id, U16BIT *orig_net_id)
Read the DVB triplet (service id, transport id, orig net id) for a recording.
Definition: stbpvr.c:3842
void STB_PVRDiskUsed(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space used in hours and minutes.
Definition: stbpvr.c:5664
BOOLEAN STB_PVRSetRecoringTriplet(U8BIT path, U16BIT serv_id, U16BIT ts_id, U16BIT orig_net_id)
Saves the DVB triplet of the service to be recorded.
Definition: stbpvr.c:4089
void STB_PVRRecordingSetCrid(U32BIT handle, U8BIT *crid)
Sets the programme CRID for a recording and saves the database file.
Definition: stbpvr.c:2247
U8BIT STB_PVRGetPathForRecordingIndex(U8BIT rec_index)
Returns the path for the given recording index.
Definition: stbpvr.c:1367
U32BIT STB_PVRDiskSize(U16BIT disk_id)
Returns disk size in MBytes.
Definition: stbpvr.c:5734
BOOLEAN STB_PVRRecordingGetLength(U32BIT handle, U8BIT *length_hours, U8BIT *length_mins, U8BIT *length_secs, U32BIT *rec_size_kb)
Returns the length in time and size in KB of the recording with the given handle. ...
Definition: stbpvr.c:1513
void STB_PVRPlayFrameInc(U8BIT decoder)
Increments play by one frame - has no effect when decoding from demux.
Definition: stbpvr.c:5376
void STB_PVRStopRecording(U8BIT path)
Stop the PVR recording.
Definition: stbpvr.c:4721
BOOLEAN STB_PVRIsRecordAudio(U8BIT path)
Returns TRUE if record contains audio data.
Definition: stbpvr.c:4922
void STB_PVRSetStandbyState(BOOLEAN state)
Sets the standby state of the PVR path control.
Definition: stbpvr.c:449
BOOLEAN STB_PVRFormat(U16BIT disk_id, E_STB_PVR_FORMATMODE mode, U8BIT *prog)
Formats disk for PVR. Call this for each mode.
Definition: stbpvr.c:560
void STB_PVRStartRecordRunning(U8BIT path)
Set to start recording in running mode.
Definition: stbpvr.c:4840
void STB_PVRStartPlayPaused(U8BIT decoder)
Set to start playback in paused mode.
Definition: stbpvr.c:3897
BOOLEAN STB_PVRInitialise(void)
Initialises PVR path control.
Definition: stbpvr.c:356
U32BIT STB_PVRGetSizeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in KB for all recordings.
Definition: stbpvr.c:3500
BOOLEAN STB_PVRIsPlayNormal(U8BIT decoder)
Returns TRUE if play is not in trick mode.
Definition: stbpvr.c:5106
BOOLEAN STB_PVRIsPlayAudio(U8BIT decoder)
Returns TRUE if play contains audio data.
Definition: stbpvr.c:3982
void STB_PVRReleaseBookmarks(void **bookmarks, U16BIT num)
Frees a previously allocated array of bookmark handles.
Definition: stbpvr.c:4362
void STB_PVRRecordingSetParentalRatingAge(U32BIT handle, U32BIT parental_rating)
Sets the parental rating age for the specified recording.
Definition: stbpvr.c:1776
BOOLEAN STB_PVRResumeRecording(U8BIT path)
Resumes a recording after it's been paused.
Definition: stbpvr.c:4684
Definition: stbpvrpr.h:68
BOOLEAN STB_PVRUpdateRecordingPids(U8BIT path, U16BIT num_pids, S_PVR_PID_INFO *pid_array)
Saves (takes a copy of) the array of pids to be recorded and pass them to the platform.
Definition: stbpvr.c:4049
BOOLEAN STB_PVRIsPlayPause(U8BIT decoder)
Returns TRUE if play is paused trick mode.
Definition: stbpvr.c:5174
void STB_PVREncryptRecording(U8BIT path, BOOLEAN state)
Sets whether a recording should be encrypted. Must be set before the recording is started...
Definition: stbpvr.c:4948
BOOLEAN STB_PVRRecordingGetGuidance(U32BIT handle, U8BIT *text, U16BIT text_len)
Returns the whether a recording has guidance and the guidance text if available.
Definition: stbpvr.c:2856
BOOLEAN STB_PVRFindRecordingFromCrid(U8BIT *prog_crid, U32BIT *handle)
Returns the handle of the recording with the given programme CRID.
Definition: stbpvr.c:1083
U8BIT * STB_PVRGetBookmarkName(void *bookmark_handle)
Allocates and returns the name associated with a bookmark.
Definition: stbpvr.c:4410
U8BIT * STB_PVRRecordingGetName(U32BIT handle)
Gets the name for a recording.
Definition: stbpvr.c:1435
BOOLEAN STB_PVRPauseRecording(U8BIT path)
Pauses recording after it's been started.
Definition: stbpvr.c:4653
U32BIT STB_PVRGetTimeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in minutes.
Definition: stbpvr.c:3457
BOOLEAN STB_PVRRecordingGetRecommendation(U32BIT handle)
Returns whether the given recording is a recommendation.
Definition: stbpvr.c:2473
BOOLEAN STB_PVRIsRecordVideo(U8BIT path)
Returns TRUE if record contains video data.
Definition: stbpvr.c:4891
void STB_PVRRecordingSetName(U32BIT handle, U8BIT *name)
Sets the name for a recording.
Definition: stbpvr.c:1394
void STB_PVRRecordingSetExtendedDescription(U32BIT handle, U8BIT *description)
Sets the extended description for a recorded programme.
Definition: stbpvr.c:2142
BOOLEAN STB_PVRRecordingGetDescription(U32BIT handle, U8BIT *description, U16BIT desc_len)
Gets the short description for a given recording.
Definition: stbpvr.c:2075
void STB_PVRStartPlaySync(U8BIT decoder)
Set to start playback synced to AV decoder.
Definition: stbpvr.c:3919
System Wide Global Technical Data Type Definitions.
U16BIT STB_PVRRecordingGetDescriptionLen(U32BIT handle)
Gets the length of the short description for a given recording.
Definition: stbpvr.c:2109
void STB_PVRDiskFree(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space free in hours and minutes.
Definition: stbpvr.c:5690
S32BIT STB_PVRRecordingGetEndPadding(U32BIT handle)
Gets the end padding value for the specified recording as set by STB_PVRRecordingSetEndPadding.
Definition: stbpvr.c:1934
Header file - macros and function prototypes for public use.
void STB_PVRSavePlayPosition(U8BIT path)
Saves the bookmark holding the playback position. This bookmark is used to resume a playback when STB...
Definition: stbpvr.c:3721
U16BIT STB_PVRRecordingGetGuidanceLen(U32BIT handle)
Gets the length of the guidance text for a given recording.
Definition: stbpvr.c:2893
BOOLEAN STB_PVRIsPlaySlowest(U8BIT decoder)
Returns TRUE if play speed is slowest possible.
Definition: stbpvr.c:5509
BOOLEAN STB_PVRRecordingHasGuidance(U32BIT handle)
Returns whether the given recording has guidance.
Definition: stbpvr.c:2819
BOOLEAN STB_PVRIsRecording(U8BIT path, U32BIT *handle)
Reads the PVR record status.
Definition: stbpvr.c:4800
BOOLEAN STB_PVRRecordingSetLocked(U32BIT handle, BOOLEAN state)
Sets the locked state of a recording.
Definition: stbpvr.c:2509
BOOLEAN STB_PVRRecordingGetSelected(U32BIT handle)
Returns whether the given recording is selected.
Definition: stbpvr.c:2624
void STB_PVRReleaseRecordingHandles(U32BIT *handle_array)
Frees the given array of handles allocated by the preceding function.
Definition: stbpvr.c:1065
BOOLEAN STB_PVRIsPlayForward(U8BIT decoder)
Returns TRUE if play is forwards trick mode.
Definition: stbpvr.c:5257
U16BIT STB_PVRGetRecordingHandles(U32BIT **handle_array)
Allocates and returns an array of all the recording handles.
Definition: stbpvr.c:1017
void STB_PVRRecordingSetRecommendation(U32BIT handle)
Sets a recording to a recommendation recording.
Definition: stbpvr.c:2406
U16BIT STB_PVRGetBookmarksForRecording(U32BIT handle, void ***bookmarks)
Allocates and returns an array containing the handles of the bookmarks for the recording specified by...
Definition: stbpvr.c:4299
void STB_PVRSaveRecording(U32BIT handle)
Save all info on the given recording. The filename and disk should already have been setup...
Definition: stbpvr.c:977
BOOLEAN STB_PVRStartPlaying(U8BIT path, U32BIT handle, BOOLEAN resume)
Start the PVR playing.
Definition: stbpvr.c:3546
BOOLEAN STB_PVRIsPlaying(U8BIT path, U32BIT *handle)
Reads the PVR play status.
Definition: stbpvr.c:3700
BOOLEAN STB_PVRToggleBookmark(U8BIT path)
Creates or deletes a bookmark at the current position during playback. If there's a bookmark within a...
Definition: stbpvr.c:4117
S16BIT STB_PVRGetMinPlaySpeed(U8BIT path)
Reads the PVR min play speed.
Definition: stbpvr.c:5611
U32BIT STB_PVRRecordingGetParentalRating(U32BIT handle)
Returns the parental rating age for the specified recording as set by STB_PVRRecordingSetParentalRati...
Definition: stbpvr.c:1808
Header file - Function prototypes for Demux control.
void STB_PVRRecordingSetDescription(U32BIT handle, U8BIT *description)
Sets the short description for a recorded programme.
Definition: stbpvr.c:2037
BOOLEAN STB_PVRIsPlayMedium(U8BIT decoder)
Returns TRUE if play speed is medium (1x).
Definition: stbpvr.c:5454
BOOLEAN STB_PVRRecordingGetDateTime(U32BIT handle, U16BIT *date, U8BIT *hours, U8BIT *mins, U8BIT *secs)
Gets the date and time for a recording.
Definition: stbpvr.c:1472
void STB_PVRPlaySlower(U8BIT decoder, BOOLEAN include_slow_speeds)
Decrease play speed - has no effect when decoding from demux.
Definition: stbpvr.c:5474
BOOLEAN STB_PVRIsPlayFastest(U8BIT decoder)
Returns TRUE if play speed is fastest possible.
Definition: stbpvr.c:5575
U32BIT STB_PVRGetHandleForRecordingIndex(U8BIT rec_index)
Returns the handle for the given recording index.
Definition: stbpvr.c:1340
void STB_PVRPlayPause(U8BIT decoder)
Pauses play - has no effect when decoding from demux.
Definition: stbpvr.c:5142
BOOLEAN STB_PVRRecordingGetSeries(U32BIT handle)
Returns whether the given recording is a series.
Definition: stbpvr.c:2438
void STB_PVRRecordingSetSeries(U32BIT handle)
Sets a recording to a series recording.
Definition: stbpvr.c:2374
void STB_PVRUpdateRecordings(BOOLEAN force_load)
Called when a disk is added or removed and updates the disk database and the recordings that are now ...
Definition: stbpvr.c:695
S16BIT STB_PVRGetMaxPlaySpeed(U8BIT path)
Reads the PVR max play speed.
Definition: stbpvr.c:5637
U16BIT STB_PVRGetDefaultDisk(void)
Finds the first mounted (usable) disk.
Definition: stbpvr.c:496
void STB_PVRStopPlaying(U8BIT path)
Stop the PVR play back.
Definition: stbpvr.c:3798
BOOLEAN STB_PVRRecordingGetServiceName(U32BIT handle, U8BIT *service_name, U16BIT name_len)
Gets the service name for a given recording.
Definition: stbpvr.c:2003
BOOLEAN STB_PVRRepair(U16BIT disk_id, E_STB_PVR_REPAIRMODE mode, U8BIT *prog)
Repairs disk for PVR. Call this for each mode.
Definition: stbpvr.c:627
BOOLEAN STB_PVRCreateBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Creates a bookmark associated with the a recording.
Definition: stbpvr.c:5756
BOOLEAN STB_PVRDeleteBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Deletes a bookmark associated with the a recording.
Definition: stbpvr.c:5789
BOOLEAN STB_PVRIsBeingRecorded(U32BIT handle)
Returns whether the recording with the given handle is currently being recorded.
Definition: stbpvr.c:2342
void STB_PVRPlayNormal(U8BIT decoder)
Restarts playback (no trick mode) - has no effect when decoding from demux.
Definition: stbpvr.c:5060
BOOLEAN STB_PVRRecordingGetCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the programme CRID for a given recording.
Definition: stbpvr.c:2298