1. Technical Field
The disclosure relates to a digital media controller and a method of controlling the digital media controller.
2. General Background
Digital cameras, digital photo frames (DPF), personal digital assistants (PDA), and the like are widely used, and are convenient for users to enjoy digital media such as photos, videos, and so on. However, the size of the display of electronic devices is often very small and users cannot comfortably enjoy the media.
Generally, a method is used to directly connect the electronic device mentioned above to a computer system through a data cable such as a universal serial bus (USB) cable, thereby displaying the contents of the media files on the display of the computer system by accessing a storage card of the electronic device through the USB cable. Another method is to remove the storage card from the electronic device, and insert it into a storage card interface of the computer system, thereby the computer system directly accesses the media files stored in the storage card through the storage card interface, and displays the contents of the media files on the display of the computer system. However, when the methods mentioned above are adopted, the user must manually select which media files stored in the storage card to display, which is inconvenient because the user must browse through the media files in the electronic device to find what they want.
Therefore, it is necessary to provide a digital media controller and control method which can overcome the above-mentioned problem.
The operation unit 10 is configured for transmitting control commands to the processor 13 according to operations from users. The control commands are used to activate various functions, for example, selecting media files, playing media files, copying media files, and the like. The storage unit 11 is configured for storing a plurality of system programs of the digital media controller 1. The storage card interface 12 is configured to connect to the storage card 3. The processor 13 is configured for performing corresponding functions according to the control commands transmitted by the operation unit 10. The media processing unit 14 is configured for decoding the media files selected by the processor 13 to video signals and audio signals. The video input interface 15 is configured for receiving video signals output by the host computer 4. The video output interface 16 is configured for outputting video signals from the media processing unit 14 or from the video input interface 15 to the display 5. The audio output interface 17 is configured for outputting the audio signals to the at least one speaker 6. The USB interface 18 is configured for the digital media controller 1 to establish communication with the host computer 4 or other external electronic devices. In another embodiment, the at least one speaker 6 can be integrated into the digital media controller 1.
The digital media controller 1 further includes a detector 19 and a switch unit 20. The detector 19 is connected between the video input interface 15 and the processor 13, and used for detecting whether video signals are received from the host computer 4. The switch unit 20 is connected between the video input interface 15 and the video output interface 16, and the media processing unit 14, and further controlled by the processor 13, in the exemplary embodiment, to connect a first signal channel between the video input interface 15 and the video output interface 16, or a second signal channel between the multimedia processing unit 14 and the video output interface 16.
The processor 13 is configured to control the switch unit 20 to select a corresponding signal channel according to a predetermined control rule. The control rule may be displaying video signals output by the host computer 4 with higher priority, displaying comments of the media files of the storage card 3 with higher priority, last input and first output (LIFO) rule, or the like.
If the control rule is displaying video signals output by the host computer 4 with higher priority, the processor 13 controls the switch unit 20 to connect the first signal channel between the video input interface 15 and the video input interface 16. The first signal channel is connected without consideration of the absence or presence of the storage card 3 in the storage card interface 12. If the video signals output by the host computer 4 are not detected, the processor 13 is configured to control the switch unit 20 to connect the second signal channel between the media processing unit 14 and the video output interface 16 when the storage card 3 is inserted in the storage card interface 12. The processor 13 selects media files stored in the storage card 3 according to the commands input by the operation unit 10. The media processing unit 14 decodes the selected media files into video signals and audio signals. The video signals are transmitted to the display 5 to display through the switch unit 20 and the video output interface 16, the audio signals are transmitted to the speaker 6 via the audio output interface and the speaker 6 converts the audio signals to audible sound.
If the control rule is displaying comments of the media files of the storage card 3 with higher priority, the processor 13 controls the switch unit 20 to connect the second signal channel between the media processing unit 14 and the video output interface 16. The channel is connected without consideration of the presence or the absence of video signals from the video input interface 15 when the storage card 3 is inserted in the storage card interface 12. If the storage card 3 is not inserted in the storage card interface 12, the processor 13 controls the switch unit 20 to connect the first signal channel between the video input interface 15 and the video output interface 16 for when video signals from the host computer 4 are transmitted through the video input interface 15.
If the control rule is last input and first output (LIFO) rule, the processor 13 performs corresponding program as follows: if the video signals input by the host computer 4 are detected on the video input interface 15 when video signals from the storage card 3 are being displayed, the processor 13 controls the switch unit 20 to connect the first signal channel between the video input interface 15 and the video output interface 16. On the contrary, when the video signals output by the host computer 4 are being displayed, the processor 13 controls the switch unit 13 to connect the second signal channel between the media processing unit 14 and the video output interface 16 once the storage card 3 is detected in the storage card interface 12.
The processor 13 is also configured to update the files in the storage card 3 when new media files are detected in the host computer 4 and the digital media controller 1 is connected to the host computer via the USB interface 18. Firstly, the processor 13 determines whether the host computer 4 stores new media files by comparing the media files stored in the host computer 4 with the media files stored in the storage card. If there are media files found stored in the host computer 4 that are not stored in the storage card 3, the media files are considered new media files. Secondly, the processor 13 determines whether there is space available for storing the new media files in the storage card 3 and stores as many of the new media files in the storage card 3 according to the volume of the available space in the storage card 3.
In another embodiment of the present disclosure, if the control rule is displaying video signals previously output by the host computer 4, the switch unit 20 has a normal status, which is used to connect the second signal channel between the video output interface 16 and the media processing unit 14. When the video signals output by the host computer 4 is detected, the processor 13 outputs a control signal to switch the switch unit 20 from the normal status to a controlled status. The controlled status is to connect the first signal channel between the video input interface 15 and the video output interface 16, in the controlled status, the display 5 displays the video signals output by the host computer 4.
Although the present disclosure has been specifically described on the basis of an exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810304358.8 | Sep 2008 | CN | national |