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.
BOOLEAN STB_PVRCreateRecording(U16BIT disk_id, U8BIT *name, U32BIT *handle)
Create a new recording and return the handle.
BOOLEAN STB_PVRIsPlayReverse(U8BIT decoder)
Returns TRUE if play is backwards trick mode.
void STB_PVRPlayMedium(U8BIT decoder)
Sets play speed to medium (1x) - has no effect when decoding from demux.
BOOLEAN STB_PVRRecordingGetParentalLock(U32BIT handle)
Returns the parental lock state of the given recording.
BOOLEAN STB_PVRCanDiskBeUsed(U16BIT disk_id)
Checks whether the given disk can be used for PVR functions.
void STB_PVRRecordingSetServiceName(U32BIT handle, U8BIT *service_name)
Sets the service name for a recording and saves the database file.
void STB_PVRRecordingSetOtherCrid(U32BIT handle, U8BIT *crid)
Sets the series/recommendation CRID for a recording and saves the database file.
U32BIT STB_PVRGetPlayPosition(U32BIT handle)
Returns the bookmarked play position for the given recording.
void STB_PVRStartRecordPaused(U8BIT path, U32BIT timeshift_seconds)
Set to start recording in paused mode for timeshift recording.
void STB_PVRPlayForward(U8BIT decoder)
Set play forwards - has no effect when decoding from demux.
void STB_PVRRecordingSetEndPadding(U32BIT handle, S32BIT end_padding)
Sets the end padding value for the specified recording.
U16BIT STB_PVRGetBookmarks(U8BIT path, void ***bookmarks)
Allocates and returns an array containing the handles of the bookmarks for the recording currently be...
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...
BOOLEAN STB_PVRRecordingIsEncrypted(U32BIT handle)
Returns whether the given recording is encrypted.
BOOLEAN STB_PVRRecordingGetOtherCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the series/recommendation CRID for a given recording.
void STB_PVRPlayReverse(U8BIT decoder)
Set play backwards - has no effect when decoding from demux.
void STB_PVRRecordingSetAdditionalInfo(U32BIT handle, U8BIT *additional_info)
Sets the additional info string for a recording.
U8BIT * STB_PVRRecordingGetAdditionalInfo(U32BIT handle)
Gets the additional info string pointer for a recording.
BOOLEAN STB_PVRGotoNextBookmark(U8BIT path)
Jumps playback to the position of the bookmark after the current play position.
BOOLEAN STB_PVRRecordingSetStatus(U32BIT handle, E_PVR_RECORDING_STATUS status)
Set the status to be saved with the recording.
S32BIT STB_PVRRecordingGetStartPadding(U32BIT handle)
Gets the start padding value for the specified recording as set by STB_PVRRecordingSetStartPadding.
BOOLEAN STB_PVRRecordingSetGuidance(U32BIT handle, U8BIT *text)
Sets the guidance text of a recording.
U32BIT STB_PVRGetBookmarkTime(void *bookmark_handle)
Returns the time associated with a bookmark.
void STB_PVRPlayFaster(U8BIT decoder, BOOLEAN include_slow_speeds)
Increase play speed - has no effect when decoding from demux.
BOOLEAN STB_PVRFindNextSplitRecording(U32BIT curr_handle, U32BIT *next_handle)
Returns the handle of a split event recording that follows on from curr_handle.
BOOLEAN STB_PVRRecordingGetLocked(U32BIT handle)
Returns whether the given recording is locked.
void STB_PVRStartPlayRunning(U8BIT decoder)
Set to start playback in running mode.
void STB_PVRRecordingSetStartPadding(U32BIT handle, S32BIT start_padding)
Sets the start padding value for the specified recording.
void STB_PVRPlayFrameDec(U8BIT decoder)
Decrements play by one frame - has no effect when decoding from demux.
BOOLEAN STB_PVRRecordingSetParentalLock(U32BIT handle, BOOLEAN state)
Sets the parental lock state of a recording.
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.
BOOLEAN STB_PVRDestroyRecording(U32BIT handle)
Completely destroys a recording by deleting all files and removing it from the list of recordings...
BOOLEAN STB_PVRStartRecording(U8BIT path, U32BIT handle)
Start the PVR record tasks.
U16BIT STB_PVRRecordingGetDiskId(U32BIT handle)
Gets the disk id for a recording.
BOOLEAN STB_PVRIsPlayVideo(U32BIT handle)
Returns TRUE if play contains video data.
U16BIT STB_PVRRecordingGetExtendedDescriptionLen(U32BIT handle)
Gets the length of the extended description for a given recording.
BOOLEAN STB_PVRIsInitialised(void)
Returns Initialised status.
void STB_PVRPlaybackNotifyTime(U8BIT path)
Handles the notification received from the platform code when playback reaches a set position...
BOOLEAN STB_PVRIsValidHandle(U32BIT handle)
Determines whether the given handle is in the recording database.
BOOLEAN STB_PVRRecordingSetSelected(U32BIT handle, BOOLEAN state)
Sets the selected state of a recording.
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.
void STB_PVRDiskUsed(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space used in hours and minutes.
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.
void STB_PVRRecordingSetCrid(U32BIT handle, U8BIT *crid)
Sets the programme CRID for a recording and saves the database file.
U8BIT STB_PVRGetPathForRecordingIndex(U8BIT rec_index)
Returns the path for the given recording index.
U32BIT STB_PVRDiskSize(U16BIT disk_id)
Returns disk size in MBytes.
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. ...
void STB_PVRPlayFrameInc(U8BIT decoder)
Increments play by one frame - has no effect when decoding from demux.
void STB_PVRStopRecording(U8BIT path)
Stop the PVR recording.
BOOLEAN STB_PVRIsRecordAudio(U8BIT path)
Returns TRUE if record contains audio data.
void STB_PVRSetStandbyState(BOOLEAN state)
Sets the standby state of the PVR path control.
BOOLEAN STB_PVRFormat(U16BIT disk_id, E_STB_PVR_FORMATMODE mode, U8BIT *prog)
Formats disk for PVR. Call this for each mode.
void STB_PVRStartRecordRunning(U8BIT path)
Set to start recording in running mode.
void STB_PVRStartPlayPaused(U8BIT decoder)
Set to start playback in paused mode.
BOOLEAN STB_PVRInitialise(void)
Initialises PVR path control.
U32BIT STB_PVRGetSizeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in KB for all recordings.
BOOLEAN STB_PVRIsPlayNormal(U8BIT decoder)
Returns TRUE if play is not in trick mode.
BOOLEAN STB_PVRIsPlayAudio(U8BIT decoder)
Returns TRUE if play contains audio data.
void STB_PVRReleaseBookmarks(void **bookmarks, U16BIT num)
Frees a previously allocated array of bookmark handles.
void STB_PVRRecordingSetParentalRatingAge(U32BIT handle, U32BIT parental_rating)
Sets the parental rating age for the specified recording.
BOOLEAN STB_PVRResumeRecording(U8BIT path)
Resumes a recording after it's been paused.
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.
BOOLEAN STB_PVRIsPlayPause(U8BIT decoder)
Returns TRUE if play is paused trick mode.
void STB_PVREncryptRecording(U8BIT path, BOOLEAN state)
Sets whether a recording should be encrypted. Must be set before the recording is started...
BOOLEAN STB_PVRRecordingGetGuidance(U32BIT handle, U8BIT *text, U16BIT text_len)
Returns the whether a recording has guidance and the guidance text if available.
BOOLEAN STB_PVRRecordingGetStatus(U32BIT handle, E_PVR_RECORDING_STATUS *status)
Returns the status saved with the given recording.
BOOLEAN STB_PVRFindRecordingFromCrid(U8BIT *prog_crid, U32BIT *handle)
Returns the handle of the recording with the given programme CRID.
U8BIT * STB_PVRGetBookmarkName(void *bookmark_handle)
Allocates and returns the name associated with a bookmark.
U8BIT * STB_PVRRecordingGetName(U32BIT handle)
Gets the name for a recording.
BOOLEAN STB_PVRPauseRecording(U8BIT path)
Pauses recording after it's been started.
U32BIT STB_PVRGetTimeOfAllRecordings(U16BIT disk_id)
Calculates the total disk space used in minutes.
BOOLEAN STB_PVRRecordingGetRecommendation(U32BIT handle)
Returns whether the given recording is a recommendation.
BOOLEAN STB_PVRIsRecordVideo(U8BIT path)
Returns TRUE if record contains video data.
void STB_PVRRecordingSetName(U32BIT handle, U8BIT *name)
Sets the name for a recording.
void STB_PVRRecordingSetExtendedDescription(U32BIT handle, U8BIT *description)
Sets the extended description for a recorded programme.
BOOLEAN STB_PVRRecordingGetDescription(U32BIT handle, U8BIT *description, U16BIT desc_len)
Gets the short description for a given recording.
void STB_PVRStartPlaySync(U8BIT decoder)
Set to start playback synced to AV decoder.
System Wide Global Technical Data Type Definitions.
U16BIT STB_PVRRecordingGetDescriptionLen(U32BIT handle)
Gets the length of the short description for a given recording.
void STB_PVRDiskFree(U16BIT disk_id, U8BIT *hours, U8BIT *mins)
Returns disk space free in hours and minutes.
S32BIT STB_PVRRecordingGetEndPadding(U32BIT handle)
Gets the end padding value for the specified recording as set by STB_PVRRecordingSetEndPadding.
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...
U16BIT STB_PVRRecordingGetGuidanceLen(U32BIT handle)
Gets the length of the guidance text for a given recording.
BOOLEAN STB_PVRIsPlaySlowest(U8BIT decoder)
Returns TRUE if play speed is slowest possible.
BOOLEAN STB_PVRRecordingHasGuidance(U32BIT handle)
Returns whether the given recording has guidance.
BOOLEAN STB_PVRIsRecording(U8BIT path, U32BIT *handle)
Reads the PVR record status.
BOOLEAN STB_PVRRecordingSetLocked(U32BIT handle, BOOLEAN state)
Sets the locked state of a recording.
BOOLEAN STB_PVRRecordingGetSelected(U32BIT handle)
Returns whether the given recording is selected.
void STB_PVRReleaseRecordingHandles(U32BIT *handle_array)
Frees the given array of handles allocated by the preceding function.
BOOLEAN STB_PVRIsPlayForward(U8BIT decoder)
Returns TRUE if play is forwards trick mode.
U16BIT STB_PVRGetRecordingHandles(U32BIT **handle_array)
Allocates and returns an array of all the recording handles.
void STB_PVRRecordingSetRecommendation(U32BIT handle)
Sets a recording to a recommendation recording.
U16BIT STB_PVRGetBookmarksForRecording(U32BIT handle, void ***bookmarks)
Allocates and returns an array containing the handles of the bookmarks for the recording specified by...
void STB_PVRSaveRecording(U32BIT handle)
Save all info on the given recording. The filename and disk should already have been setup...
BOOLEAN STB_PVRStartPlaying(U8BIT path, U32BIT handle, BOOLEAN resume)
Start the PVR playing.
BOOLEAN STB_PVRIsPlaying(U8BIT path, U32BIT *handle)
Reads the PVR play status.
BOOLEAN STB_PVRToggleBookmark(U8BIT path)
Creates or deletes a bookmark at the current position during playback. If there's a bookmark within a...
S16BIT STB_PVRGetMinPlaySpeed(U8BIT path)
Reads the PVR min play speed.
U32BIT STB_PVRRecordingGetParentalRating(U32BIT handle)
Returns the parental rating age for the specified recording as set by STB_PVRRecordingSetParentalRati...
Header file - Function prototypes for Demux control.
void STB_PVRRecordingSetDescription(U32BIT handle, U8BIT *description)
Sets the short description for a recorded programme.
BOOLEAN STB_PVRIsPlayMedium(U8BIT decoder)
Returns TRUE if play speed is medium (1x).
BOOLEAN STB_PVRRecordingGetDateTime(U32BIT handle, U16BIT *date, U8BIT *hours, U8BIT *mins, U8BIT *secs)
Gets the date and time for a recording.
void STB_PVRPlaySlower(U8BIT decoder, BOOLEAN include_slow_speeds)
Decrease play speed - has no effect when decoding from demux.
BOOLEAN STB_PVRIsPlayFastest(U8BIT decoder)
Returns TRUE if play speed is fastest possible.
U32BIT STB_PVRGetHandleForRecordingIndex(U8BIT rec_index)
Returns the handle for the given recording index.
void STB_PVRPlayPause(U8BIT decoder)
Pauses play - has no effect when decoding from demux.
BOOLEAN STB_PVRRecordingGetSeries(U32BIT handle)
Returns whether the given recording is a series.
void STB_PVRRecordingSetSeries(U32BIT handle)
Sets a recording to a series recording.
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 ...
S16BIT STB_PVRGetMaxPlaySpeed(U8BIT path)
Reads the PVR max play speed.
U16BIT STB_PVRGetDefaultDisk(void)
Returns the set default disk, or finds the first mounted (usable) disk if a default hasn't been set...
void STB_PVRStopPlaying(U8BIT path)
Stop the PVR play back.
BOOLEAN STB_PVRRecordingGetServiceName(U32BIT handle, U8BIT *service_name, U16BIT name_len)
Gets the service name for a given recording.
BOOLEAN STB_PVRRepair(U16BIT disk_id, E_STB_PVR_REPAIRMODE mode, U8BIT *prog)
Repairs disk for PVR. Call this for each mode.
BOOLEAN STB_PVRCreateBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Creates a bookmark associated with the a recording.
BOOLEAN STB_PVRDeleteBookmark(U32BIT handle, U32BIT time, U8BIT *name)
Deletes a bookmark associated with the a recording.
BOOLEAN STB_PVRIsBeingRecorded(U32BIT handle)
Returns whether the recording with the given handle is currently being recorded.
void STB_PVRPlayNormal(U8BIT decoder)
Restarts playback (no trick mode) - has no effect when decoding from demux.
BOOLEAN STB_PVRRecordingGetCrid(U32BIT handle, U8BIT *crid, U16BIT name_len)
Gets the programme CRID for a given recording.