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;
67 RECORDING_STATUS_STARTED,
68 RECORDING_STATUS_FAILED,
69 RECORDING_STATUS_COMPLETED
70 } E_PVR_RECORDING_STATUS;
96 BOOLEAN
STB_PVRFormat(U16BIT disk_id, E_STB_PVR_FORMATMODE mode, U8BIT *prog);
97 BOOLEAN
STB_PVRRepair(U16BIT disk_id, E_STB_PVR_REPAIRMODE mode, U8BIT *prog);
120 BOOLEAN
STB_PVRRecordingGetLength(U32BIT handle, U8BIT *length_hours, U8BIT *length_mins, U8BIT *length_secs, U32BIT *rec_size_kb);
226 BOOLEAN STB_PVRRecordingSetCicamId(U32BIT handle, U8BIT *cicam_id, U8BIT id_len);
227 BOOLEAN STB_PVRRecordingGetCicamId(U32BIT handle, U8BIT *cicam_id, U8BIT id_len);
228 BOOLEAN STB_PVRRecordingAddURI(U32BIT handle, U8BIT *uri);
229 BOOLEAN STB_PVRRecordingUpdateURI(U32BIT handle, U8BIT *uri);
230 BOOLEAN STB_PVRRecordingAddLicence(U32BIT handle, U8BIT *licence, U16BIT licence_len);
231 BOOLEAN STB_PVRRecordingUpdateLicence(U32BIT handle, U8BIT *licence, U16BIT licence_len);
232 BOOLEAN STB_PVRRecordingAddPin(U32BIT handle, U8BIT age_rating, U8BIT *private_data,
233 U16BIT date_code, U8BIT hour, U8BIT min, U8BIT secs);
317 #ifdef COMMON_INTERFACE 318 BOOLEAN STB_PVRSetDescramblerKey(U8BIT path, E_STB_DMX_DESC_TYPE desc_type,
319 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:2202
BOOLEAN STB_PVRCreateRecording(U16BIT disk_id, U8BIT *name, U32BIT *handle)
Create a new recording and return the handle.
Definition: stbpvr.c:846
BOOLEAN STB_PVRIsPlayReverse(U8BIT decoder)
Returns TRUE if play is backwards trick mode.
Definition: stbpvr.c:5478
void STB_PVRPlayMedium(U8BIT decoder)
Sets play speed to medium (1x) - has no effect when decoding from demux.
Definition: stbpvr.c:5570
BOOLEAN STB_PVRRecordingGetParentalLock(U32BIT handle)
Returns the parental lock state of the given recording.
Definition: stbpvr.c:2760
BOOLEAN STB_PVRCanDiskBeUsed(U16BIT disk_id)
Checks whether the given disk can be used for PVR functions.
Definition: stbpvr.c:551
void STB_PVRRecordingSetServiceName(U32BIT handle, U8BIT *service_name)
Sets the service name for a recording and saves the database file.
Definition: stbpvr.c:1987
void STB_PVRRecordingSetOtherCrid(U32BIT handle, U8BIT *crid)
Sets the series/recommendation CRID for a recording and saves the database file.
Definition: stbpvr.c:1626
U32BIT STB_PVRGetPlayPosition(U32BIT handle)
Returns the bookmarked play position for the given recording.
Definition: stbpvr.c:3884
void STB_PVRStartRecordPaused(U8BIT path, U32BIT timeshift_seconds)
Set to start recording in paused mode for timeshift recording.
Definition: stbpvr.c:5004
void STB_PVRPlayForward(U8BIT decoder)
Set play forwards - has no effect when decoding from demux.
Definition: stbpvr.c:5348
void STB_PVRRecordingSetEndPadding(U32BIT handle, S32BIT end_padding)
Sets the end padding value for the specified recording.
Definition: stbpvr.c:1924
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:4407
void STB_PVRSetDefaultDisk(U16BIT disk_id)
Sets the disk ID to be used as the default disk for PVR recordings. If this is set to INVALID_DISK_ID...
Definition: stbpvr.c:498
BOOLEAN STB_PVRRecordingIsEncrypted(U32BIT handle)
Returns whether the given recording is encrypted.
Definition: stbpvr.c:2678
BOOLEAN STB_PVRRecordingGetOtherCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the series/recommendation CRID for a given recording.
Definition: stbpvr.c:1677
void STB_PVRPlayReverse(U8BIT decoder)
Set play backwards - has no effect when decoding from demux.
Definition: stbpvr.c:5431
void STB_PVRRecordingSetAdditionalInfo(U32BIT handle, U8BIT *additional_info)
Sets the additional info string for a recording.
Definition: stbpvr.c:1721
U8BIT * STB_PVRRecordingGetAdditionalInfo(U32BIT handle)
Gets the additional info string pointer for a recording.
Definition: stbpvr.c:1765
BOOLEAN STB_PVRGotoNextBookmark(U8BIT path)
Jumps playback to the position of the bookmark after the current play position.
Definition: stbpvr.c:4333
BOOLEAN STB_PVRRecordingSetStatus(U32BIT handle, E_PVR_RECORDING_STATUS status)
Set the status to be saved with the recording.
Definition: stbpvr.c:2953
S32BIT STB_PVRRecordingGetStartPadding(U32BIT handle)
Gets the start padding value for the specified recording as set by STB_PVRRecordingSetStartPadding.
Definition: stbpvr.c:1893
BOOLEAN STB_PVRRecordingSetGuidance(U32BIT handle, U8BIT *text)
Sets the guidance text of a recording.
Definition: stbpvr.c:2796
U32BIT STB_PVRGetBookmarkTime(void *bookmark_handle)
Returns the time associated with a bookmark.
Definition: stbpvr.c:4525
void STB_PVRPlayFaster(U8BIT decoder, BOOLEAN include_slow_speeds)
Increase play speed - has no effect when decoding from demux.
Definition: stbpvr.c:5677
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:1142
BOOLEAN STB_PVRRecordingGetLocked(U32BIT handle)
Returns whether the given recording is locked.
Definition: stbpvr.c:2577
void STB_PVRStartPlayRunning(U8BIT decoder)
Set to start playback in running mode.
Definition: stbpvr.c:4008
void STB_PVRRecordingSetStartPadding(U32BIT handle, S32BIT start_padding)
Sets the start padding value for the specified recording.
Definition: stbpvr.c:1861
void STB_PVRPlayFrameDec(U8BIT decoder)
Decrements play by one frame - has no effect when decoding from demux.
Definition: stbpvr.c:5542
BOOLEAN STB_PVRRecordingSetParentalLock(U32BIT handle, BOOLEAN state)
Sets the parental lock state of a recording.
Definition: stbpvr.c:2714
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:4140
BOOLEAN STB_PVRDestroyRecording(U32BIT handle)
Completely destroys a recording by deleting all files and removing it from the list of recordings...
Definition: stbpvr.c:948
BOOLEAN STB_PVRStartRecording(U8BIT path, U32BIT handle)
Start the PVR record tasks.
Definition: stbpvr.c:4642
U16BIT STB_PVRRecordingGetDiskId(U32BIT handle)
Gets the disk id for a recording.
Definition: stbpvr.c:1593
BOOLEAN STB_PVRIsPlayVideo(U32BIT handle)
Returns TRUE if play contains video data.
Definition: stbpvr.c:4074
U16BIT STB_PVRRecordingGetExtendedDescriptionLen(U32BIT handle)
Gets the length of the extended description for a given recording.
Definition: stbpvr.c:2236
BOOLEAN STB_PVRIsInitialised(void)
Returns Initialised status.
Definition: stbpvr.c:480
void STB_PVRPlaybackNotifyTime(U8BIT path)
Handles the notification received from the platform code when playback reaches a set position...
Definition: stbpvr.c:4582
BOOLEAN STB_PVRIsValidHandle(U32BIT handle)
Determines whether the given handle is in the recording database.
Definition: stbpvr.c:814
BOOLEAN STB_PVRRecordingSetSelected(U32BIT handle, BOOLEAN state)
Sets the selected state of a recording.
Definition: stbpvr.c:2613
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:3975
void STB_PVRDiskUsed(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space used in hours and minutes.
Definition: stbpvr.c:5802
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:4222
void STB_PVRRecordingSetCrid(U32BIT handle, U8BIT *crid)
Sets the programme CRID for a recording and saves the database file.
Definition: stbpvr.c:2269
U8BIT STB_PVRGetPathForRecordingIndex(U8BIT rec_index)
Returns the path for the given recording index.
Definition: stbpvr.c:1389
U32BIT STB_PVRDiskSize(U16BIT disk_id)
Returns disk size in MBytes.
Definition: stbpvr.c:5872
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:1535
void STB_PVRPlayFrameInc(U8BIT decoder)
Increments play by one frame - has no effect when decoding from demux.
Definition: stbpvr.c:5514
void STB_PVRStopRecording(U8BIT path)
Stop the PVR recording.
Definition: stbpvr.c:4858
BOOLEAN STB_PVRIsRecordAudio(U8BIT path)
Returns TRUE if record contains audio data.
Definition: stbpvr.c:5060
void STB_PVRSetStandbyState(BOOLEAN state)
Sets the standby state of the PVR path control.
Definition: stbpvr.c:457
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:580
void STB_PVRStartRecordRunning(U8BIT path)
Set to start recording in running mode.
Definition: stbpvr.c:4978
void STB_PVRStartPlayPaused(U8BIT decoder)
Set to start playback in paused mode.
Definition: stbpvr.c:4030
BOOLEAN STB_PVRInitialise(void)
Initialises PVR path control.
Definition: stbpvr.c:363
U32BIT STB_PVRGetSizeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in KB for all recordings.
Definition: stbpvr.c:3592
BOOLEAN STB_PVRIsPlayNormal(U8BIT decoder)
Returns TRUE if play is not in trick mode.
Definition: stbpvr.c:5244
BOOLEAN STB_PVRIsPlayAudio(U8BIT decoder)
Returns TRUE if play contains audio data.
Definition: stbpvr.c:4115
void STB_PVRReleaseBookmarks(void **bookmarks, U16BIT num)
Frees a previously allocated array of bookmark handles.
Definition: stbpvr.c:4495
void STB_PVRRecordingSetParentalRatingAge(U32BIT handle, U32BIT parental_rating)
Sets the parental rating age for the specified recording.
Definition: stbpvr.c:1798
BOOLEAN STB_PVRResumeRecording(U8BIT path)
Resumes a recording after it's been paused.
Definition: stbpvr.c:4821
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:4182
BOOLEAN STB_PVRIsPlayPause(U8BIT decoder)
Returns TRUE if play is paused trick mode.
Definition: stbpvr.c:5312
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:5086
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:2878
BOOLEAN STB_PVRRecordingGetStatus(U32BIT handle, E_PVR_RECORDING_STATUS *status)
Returns the status saved with the given recording.
Definition: stbpvr.c:2988
BOOLEAN STB_PVRFindRecordingFromCrid(U8BIT *prog_crid, U32BIT *handle)
Returns the handle of the recording with the given programme CRID.
Definition: stbpvr.c:1105
U8BIT * STB_PVRGetBookmarkName(void *bookmark_handle)
Allocates and returns the name associated with a bookmark.
Definition: stbpvr.c:4543
U8BIT * STB_PVRRecordingGetName(U32BIT handle)
Gets the name for a recording.
Definition: stbpvr.c:1457
BOOLEAN STB_PVRPauseRecording(U8BIT path)
Pauses recording after it's been started.
Definition: stbpvr.c:4790
U32BIT STB_PVRGetTimeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in minutes.
Definition: stbpvr.c:3549
BOOLEAN STB_PVRRecordingGetRecommendation(U32BIT handle)
Returns whether the given recording is a recommendation.
Definition: stbpvr.c:2495
BOOLEAN STB_PVRIsRecordVideo(U8BIT path)
Returns TRUE if record contains video data.
Definition: stbpvr.c:5029
void STB_PVRRecordingSetName(U32BIT handle, U8BIT *name)
Sets the name for a recording.
Definition: stbpvr.c:1416
void STB_PVRRecordingSetExtendedDescription(U32BIT handle, U8BIT *description)
Sets the extended description for a recorded programme.
Definition: stbpvr.c:2164
BOOLEAN STB_PVRRecordingGetDescription(U32BIT handle, U8BIT *description, U16BIT desc_len)
Gets the short description for a given recording.
Definition: stbpvr.c:2097
void STB_PVRStartPlaySync(U8BIT decoder)
Set to start playback synced to AV decoder.
Definition: stbpvr.c:4052
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:2131
void STB_PVRDiskFree(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space free in hours and minutes.
Definition: stbpvr.c:5828
S32BIT STB_PVRRecordingGetEndPadding(U32BIT handle)
Gets the end padding value for the specified recording as set by STB_PVRRecordingSetEndPadding.
Definition: stbpvr.c:1956
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:3813
U16BIT STB_PVRRecordingGetGuidanceLen(U32BIT handle)
Gets the length of the guidance text for a given recording.
Definition: stbpvr.c:2915
BOOLEAN STB_PVRIsPlaySlowest(U8BIT decoder)
Returns TRUE if play speed is slowest possible.
Definition: stbpvr.c:5647
BOOLEAN STB_PVRRecordingHasGuidance(U32BIT handle)
Returns whether the given recording has guidance.
Definition: stbpvr.c:2841
BOOLEAN STB_PVRIsRecording(U8BIT path, U32BIT *handle)
Reads the PVR record status.
Definition: stbpvr.c:4938
BOOLEAN STB_PVRRecordingSetLocked(U32BIT handle, BOOLEAN state)
Sets the locked state of a recording.
Definition: stbpvr.c:2531
BOOLEAN STB_PVRRecordingGetSelected(U32BIT handle)
Returns whether the given recording is selected.
Definition: stbpvr.c:2646
void STB_PVRReleaseRecordingHandles(U32BIT *handle_array)
Frees the given array of handles allocated by the preceding function.
Definition: stbpvr.c:1087
BOOLEAN STB_PVRIsPlayForward(U8BIT decoder)
Returns TRUE if play is forwards trick mode.
Definition: stbpvr.c:5395
U16BIT STB_PVRGetRecordingHandles(U32BIT **handle_array)
Allocates and returns an array of all the recording handles.
Definition: stbpvr.c:1039
void STB_PVRRecordingSetRecommendation(U32BIT handle)
Sets a recording to a recommendation recording.
Definition: stbpvr.c:2428
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:4432
void STB_PVRSaveRecording(U32BIT handle)
Save all info on the given recording. The filename and disk should already have been setup...
Definition: stbpvr.c:999
BOOLEAN STB_PVRStartPlaying(U8BIT path, U32BIT handle, BOOLEAN resume)
Start the PVR playing.
Definition: stbpvr.c:3638
BOOLEAN STB_PVRIsPlaying(U8BIT path, U32BIT *handle)
Reads the PVR play status.
Definition: stbpvr.c:3792
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:4250
S16BIT STB_PVRGetMinPlaySpeed(U8BIT path)
Reads the PVR min play speed.
Definition: stbpvr.c:5749
U32BIT STB_PVRRecordingGetParentalRating(U32BIT handle)
Returns the parental rating age for the specified recording as set by STB_PVRRecordingSetParentalRati...
Definition: stbpvr.c:1830
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:2059
BOOLEAN STB_PVRIsPlayMedium(U8BIT decoder)
Returns TRUE if play speed is medium (1x).
Definition: stbpvr.c:5592
BOOLEAN STB_PVRRecordingGetDateTime(U32BIT handle, U16BIT *date, U8BIT *hours, U8BIT *mins, U8BIT *secs)
Gets the date and time for a recording.
Definition: stbpvr.c:1494
void STB_PVRPlaySlower(U8BIT decoder, BOOLEAN include_slow_speeds)
Decrease play speed - has no effect when decoding from demux.
Definition: stbpvr.c:5612
BOOLEAN STB_PVRIsPlayFastest(U8BIT decoder)
Returns TRUE if play speed is fastest possible.
Definition: stbpvr.c:5713
U32BIT STB_PVRGetHandleForRecordingIndex(U8BIT rec_index)
Returns the handle for the given recording index.
Definition: stbpvr.c:1362
void STB_PVRPlayPause(U8BIT decoder)
Pauses play - has no effect when decoding from demux.
Definition: stbpvr.c:5280
BOOLEAN STB_PVRRecordingGetSeries(U32BIT handle)
Returns whether the given recording is a series.
Definition: stbpvr.c:2460
void STB_PVRRecordingSetSeries(U32BIT handle)
Sets a recording to a series recording.
Definition: stbpvr.c:2396
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:715
S16BIT STB_PVRGetMaxPlaySpeed(U8BIT path)
Reads the PVR max play speed.
Definition: stbpvr.c:5775
U16BIT STB_PVRGetDefaultDisk(void)
Returns the set default disk, or finds the first mounted (usable) disk if a default hasn't been set...
Definition: stbpvr.c:512
void STB_PVRStopPlaying(U8BIT path)
Stop the PVR play back.
Definition: stbpvr.c:3931
BOOLEAN STB_PVRRecordingGetServiceName(U32BIT handle, U8BIT *service_name, U16BIT name_len)
Gets the service name for a given recording.
Definition: stbpvr.c:2025
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:647
BOOLEAN STB_PVRCreateBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Creates a bookmark associated with the a recording.
Definition: stbpvr.c:5894
BOOLEAN STB_PVRDeleteBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Deletes a bookmark associated with the a recording.
Definition: stbpvr.c:5927
BOOLEAN STB_PVRIsBeingRecorded(U32BIT handle)
Returns whether the recording with the given handle is currently being recorded.
Definition: stbpvr.c:2364
void STB_PVRPlayNormal(U8BIT decoder)
Restarts playback (no trick mode) - has no effect when decoding from demux.
Definition: stbpvr.c:5198
BOOLEAN STB_PVRRecordingGetCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the programme CRID for a given recording.
Definition: stbpvr.c:2320