$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 if you want to debug with CodeWarrior.| 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, you are asked to enter the disc number to change (255 corresponds to any disc number). Use NDEV to insert the disc that has the selected disc number. This action completes the disc exchange sequence.Note: Controller input wait state will not be supported in the near term. |
| dvdfatal | This sample shows how to use the DVDSetAutoFatalMesseaging 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. |
| checkdisk | This sample gets disc status using functions such as DVDGetDriveStatus, DVDCheckDiskAsync, and DVDIsDiskIdentified.It is possible to check onscreen what kind of value is returned by various functions for each respective state by performing operations as disc eject, insert, and file ( abc.ecd) loading while running this demo. |
Optical Disc (DVD) API Function List
2009/01/16 Added the sample demo checkdisk. Added links to functions.
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