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
41 #define STB_PVR_NORMAL_PLAY_SPEED 100
42 #define STB_PVR_INVALID_HANDLE 0
44 #define STB_PVR_MAX_CRID_LEN 65
46 #define STB_PVR_MAX_ADD_INFO_LEN 255
55 } E_STB_PVR_FORMATMODE;
63 } E_STB_PVR_REPAIRMODE;
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);
99 BOOLEAN
STB_PVRRecordingGetLength(U32BIT handle, U8BIT *length_hours, U8BIT *length_mins, U8BIT *length_secs, U32BIT *rec_size_kb);
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);
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);
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