$REVOLUTION_SDK_ROOT/build/demos/dvddemo
Change the directory to $REVOLUTION_SDK_ROOT/build/demos/dvddemo and enter make. The executable (.elf) file will be generated under the path $REVOLUTION_SDK_ROOT/build/demos/dvddemo/bin/RVL/.
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:
ndrun script, using the .elf file as an argument.ide with the .elf file as an argument.| 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 DVD, using the DVDReadAsync function, then prints the content to the debug output. The file content is [ abcdefg...z ] (four times). |
| dvddemo3 | This sample demonstrates how to use the queue feature of the DVDReadAsync function.Without waiting for the first read to finish, this demo loads two different files from DVD, using the DVDReadAsync function, and prints the content to the debug output.The file 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. Names of all files and directories under DVDRoot are shown recursively. Also shown are file lengths. |
| errorhandling | Shows methods for handling 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.Note: Controller input wait state 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. |
Optical Disc (DVD) API Function List
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