DVD Sample Demos

Location

$REVOLUTION_SDK_ROOT/build/demos/dvddemo

Compilation

Change directories to $REVOLUTION_SDK_ROOT/build/demos/dvddemo and enter make. The executable file (.elf file) will be generated under the path $REVOLUTION_SDK_ROOT/build/demos/dvddemo/bin/RVL/.

Execution

You must configure DVDRoot before execution. Copy the $REVOLUTION_SDK_ROOT/dvddata directory to the emulation hard disk and specify this directory as DVDRoot.

Change directories to $REVOLUTION_SDK_ROOT/build/demos/dvddemo/bin/RVL/ and do one of the following:

Description

dvddemo1 Shows how to use the DVDRead function.
This demo reads a file from the DVD using the DVDRead function and then prints the content to the debug output. The file content is [ abcdefg...z ] (four times).
dvddemo2 Shows how to use the DVDReadAsync function.
This demo reads a file from a DVD using the DVDReadAsync function and then prints the content to the debug output. The file content is [ abcdefg...z ] (four times).
dvddemo3 Shows how to use the queue feature of the DVDReadAsync function.
This demo issues two reads (without waiting for the first read to finish) on different files from a DVD using the DVDReadAsync function and prints the content to the debug output. The files contents are [ abcdefg....z ] (four times) and [ ABCDEFG...Z ] (four times).
directory Shows how to use the DVDOpenDir, DVDReadDir, and DVDCloseDir functions.
This demo operates like ls -lR. The names of all the files and directories under DVDRootare shown recursively. File lengths are shown as well.
errorhandling Shows how to handle errors.
Use the Control Stick or +Control Pad to select a command to run from the command list. To see how these errors are handled in the program, eject the disc and replace it while the drive is executing a command in order to generate an error.
When you select the DVDChangeDisk function from the command list (see the DVDChangeDisk description), you are asked to enter the disk number to change (255 corresponds to any disk number). Use NDEV to insert the disk that has the selected disk number. This action completes the disc exchange sequence.
* Controller input standby status will not be supported in the near term.
dvdfatal Shows how to use the DVDSetAutoFatalMessaging function.
This demo turns on the auto fatal message mode and afterwards continues to read a file (texts/test1.txt). When a fatal error is issued with NDEV, the device driver will automatically show an appropriate error message on the TV screen.

See Also

Disc Drive

Revision History

2006/09/19 Removed the confirmation procedure for the controller input standby status.
2006/09/07 Added a method for checking the controller input standby status of a drive.
2006/03/01 Initial version.


CONFIDENTIAL