Summary of the invention
Fundamental purpose of the present utility model is to provide the multimedia playing apparatus of a kind of uClinux of utilization embedded OS and MPEG-4 decoding technique, can play and comprise the MPEG-4 various video formatted file of (comprising DIVX, RMP, AVI), multiple audio format file, the file management facilities of utilizing embedded ucLinux operating system are provided simultaneously, comprise establishment, deletion of file copy, deletion, sub-directory etc., make the user realize management file.
The technical solution of the utility model is:
Described portable media player adopts embedded uCLinux operating system and MPEG-4 decoding technique, and it comprises master chip, Installed System Memory, program storage, display memory, audio coder-decoder, hard disk, liquid crystal display and control module; The functional module of master chip 1 inside comprises CPU (central processing unit), keyboard controller, Audio Controller, Video Controller, hard disk controller.CPU (central processing unit) is connected with Installed System Memory, program storage by address bus, data bus, and by interrupting, read allowing, write signals such as permission, chip selection Installed System Memory, program storage are controlled, hard disk controller is connected with external hard disk or other multimedia memory device; Video Controller connects the LCD Controller module by display memory, by liquid crystal display and control module, can connect many moneys liquid crystal indicator; Audio Controller is connected with audio coder-decoder, and audio coder-decoder connects earphone, microphone and audio input signal; Keyboard controller links to each other with external keyboard.
Described main core is that sheet EM8511S, described hard disk are that DK14FA-20, described Installed System Memory are that MT48LC2M32, described display memory are that MT48LC2M32, described program storage are that AM29LV320, described audio coder-decoder are that WM8731LEFL, described liquid crystal display and control module are A036QN01.
In this multimedia player software,, a server program and two client processes have been designed according to the system architecture characteristics.Server moves the backstage all the time, records pass system information, as system timing, keyboard interrupt etc., by the Socket mechanism communication that Microwindows provides data is passed to following CLIENT PROGRAM.Main interface client process provides complete operating experience to the user, and the user can select to play functions such as MPEG-4 video, MP3 audio frequency, file management by menu.Another client process then is that OSD shows, in the process that the user plays, can show dynamically that stack shows operational illustration yet such as F.F., rewind down.
This information terminal main body interface CLIENT PROGRAM is opened under the control desk program of MicroWindows server, shows the master menu of multimedia player, has shown menu options such as video playback, voice playing, file management, system information.
When program realized, beginning was the header file that comprises.The header file of Microwindows graphics package has: nano-X.h (definition of grand and data type commonly used), nanowm.h.h (comprising that NanoGui Windows Manager has defined relevant with window grand, data type, data structure and window function).
When programming realized, the program entry point of Microwindows was the main function, will begin to carry out from the main function behind the system initialization.Some base attributes of main window are set earlier, set up a unique message queue of each CLIENT PROGRAM.When EOP (end of program), remove the employed Message Queuing system of main window resource, return in the server program.For realizing each function interface, need in principal function (main), create each interfaces windows, register each interfaces windows message then, by the main window message circulation being triggered function corresponding interfaces windows procedure function, all be the case statement of switch and case structure on the function interface window procedure function main body, produce different responses at different message, and then realize function choosing-items such as video playback, voice playing, file management.
Good effect of the present utility model is as follows:
Adopt the video portable media player of MPEG-4 technology,, both dwindled volume, guaranteed capacity again because its storage medium is selected micro harddisk especially for use.Hard disk with 30G is an example, it can be stored and surpass 120 hours movie program, perhaps storage surpasses 5000 first songs, even can store down when whole TV series is gone out for you and watch, and has overcome the deficiency that the DVD/VCD disc player need carry a large amount of video discs.
Embodiment
As shown in Figure 1, described portable media player adopts embedded uCLinux operating system and MPEG-4 decoding technique, and it comprises master chip 1, Installed System Memory 2, program storage 3, display memory 4, audio coder-decoder 5, hard disk 6, liquid crystal display and control module 7.The functional module of master chip 1 inside comprises CPU (central processing unit) 8, keyboard controller 9, Audio Controller 10, Video Controller 11, hard disk controller 12.CPU (central processing unit) 8 is connected with Installed System Memory 2, program storage 3 by address bus, data bus, and by interrupting, read allowing, write signals such as permission, chip selection Installed System Memory 2, program storage 3 are controlled, hard disk controller 12 is connected with external hard disk 6 or other multimedia memory device; Video Controller 11 connects LCD Controller module 7 by display memory 4, by liquid crystal display and control module 7, can connect many moneys LCDs; Audio Controller 10 is connected with audio coder-decoder 5, and audio coder-decoder 5 can connect earphone, microphone and audio input signal; Keyboard controller 9 links to each other with external keyboard.
Described main core is that sheet EM8511S, described hard disk are that DK14FA-20, described Installed System Memory are that MT48LC2M32, described display memory are that MT48LC2M32, described program storage are that AM29LV320, described audio coder-decoder are that WM8731LEFL, described liquid crystal display and control module are A036QN01.