Summary of the invention
The embodiment of the invention provides a kind of optimization decoding processing method, device and system of mobile terminal playing device, is used for improving the audio/video decoding speed of mobile terminal playing device, reduces audio/video decoding taking system processing power.
On the one hand, the embodiment of the invention provides a kind of optimization decoding processing method of mobile terminal playing device, and the method comprises: the hardware parameter that obtains portable terminal; Judge locally whether to have the audio/video decoding library file that is complementary with described hardware parameter: if having, if then come audio-video document decoded to play not have according to described audio/video decoding library file, then described hardware parameter is sent to server end; The audio/video decoding library file that is complementary with described hardware parameter that the reception server end returns; The described audio/video decoding library file that returns according to server end comes the audio-video document broadcast of decoding.
Preferably, when judging the local audio/video decoding library file that is not complementary with described hardware parameter, also comprise: judge whether network connection is normal: if normally, then described hardware parameter is sent to server end in the embodiment of the invention; If undesired, then call local general audio/video decoding library file and come the audio-video document broadcast of decoding.
Preferably, also comprise after in the embodiment of the invention described hardware parameter being sent to server end: fileinfo and the file location information of the audio/video decoding library file that is complementary with described hardware parameter that the reception server end returns; Send the described audio/video decoding library file request of obtaining according to described fileinfo and file location information to described server end.
On the other hand, the embodiment of the invention also provides a kind of optimization decoding processing method of mobile terminal playing device, and the method comprises: obtain the hardware parameter that portable terminal sends; According to described hardware parameter inquiry is local whether the audio/video decoding library file that is complementary with described hardware parameter is arranged: if having, then described audio/video decoding library file is sent to described portable terminal, so that described portable terminal can be according to described audio/video decoding library file decoding playing audio-video document; If no, then described hardware parameter is recorded to be used for the additional corresponding audio/video decoding library file of operating personnel.
Preferably, if when there is the audio/video decoding library file that is complementary with described hardware parameter this locality in the embodiment of the invention, also comprise: fileinfo and the file location information of described audio/video decoding library file are sent to portable terminal; The request of obtaining described audio/video decoding library file that mobile terminal receive sends.
On the other hand, the embodiment of the invention also provides a kind of optimization decoding processing device of mobile terminal playing device, and device comprises: parameter acquiring unit, for the hardware parameter that obtains portable terminal; The first judging unit is used for judging the local audio/video decoding library file that is complementary with described hardware parameter that whether has; Transmitting element is used for when this locality does not have the audio/video decoding library file that is complementary with described hardware parameter described hardware parameter being sent to server end; The first receiving element, the audio/video decoding library file that is complementary with described hardware parameter that is used for that the reception server end returns; The decoding broadcast unit is used for audio/video decoding library file that audio/video decoding library file or server end according to this locality return to the audio-video document broadcast of decoding.
Preferably, also comprise in the embodiment of the invention: the second judging unit is used for judging whether network connection is normal; Described transmitting element, concrete being used for do not have the audio/video decoding library file that is complementary with described hardware parameter and network connection when normal when this locality, and described hardware parameter is sent to server end; Described decoding broadcast unit also is used for when network connection is undesired, and the general audio/video decoding library file that calls this locality comes the audio-video document broadcast of decoding.
Preferably, the embodiment of the invention also comprises: the second receiving element, fileinfo and the file location information of the audio/video decoding library file that is complementary with described hardware parameter that is used for that the reception server end returns; Request unit is used for sending the described audio/video decoding library file request of obtaining according to described fileinfo and file location information to described server end.
On the other hand, the embodiment of the invention also provides a kind of optimization decoding service end processing unit of mobile terminal playing device, and device comprises: parameter acquiring unit is used for obtaining the hardware parameter that portable terminal sends; Query unit is used for according to described hardware parameter inquiry this locality whether the audio/video decoding library file that is complementary with described hardware parameter being arranged; The first transmitting element is used for and will sends to described portable terminal in the audio/video decoding library file that described hardware parameter is complementary, so that described portable terminal can be according to described audio/video decoding library file decoding playing audio-video document; Record cell is used for recording described hardware parameter to be used for the additional corresponding audio/video decoding library file of operating personnel when the local audio/video decoding library file that is not complementary with described hardware parameter.
Preferably, the embodiment of the invention also comprises: the second transmitting element sends to portable terminal with fileinfo and the file location information of described audio/video decoding library file; The request receiving unit is used for the request of obtaining described audio/video decoding library file that mobile terminal receive sends.
On the other hand, the embodiment of the invention also provides a kind of optimization decoding processing system of mobile terminal playing device, this system comprises portable terminal and server end, described portable terminal comprises aforesaid optimization decoding processing device, and described server end comprises aforesaid optimization decoding service end processing unit.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.In addition, the embodiment of the invention is owing to dynamically update the audio/video decoding library file in the feedback of server end according to the user, thereby can support better to comprise the portable terminal of various hardware.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Be illustrated in figure 1 as the optimization decoding process flow schematic diagram of a kind of mobile terminal playing device that the embodiment of the invention provides, present embodiment is the description of the present invention being done from mobile terminal side, and the method comprises the steps:
S101: the hardware parameter that obtains portable terminal, this step can be to trigger behind the playing device of user in opening portable terminal, the hardware parameter here such as the CPU type that can comprise portable terminal such as armv5, armv6, armv7, and the characteristic that has of this processor such as floating-point operation (Vector Floating-point, VFP), VFPV3, Neon etc.
S102: judge whether this locality has the audio/video decoding library file that is complementary with described hardware parameter, if having, then enters step S103, if do not have, then enters step S104.
In the present embodiment, can make optimization to the decoding of audio-video document with the audio/video decoding library file that the portable terminal hardware parameter is complementary, thereby decode more quickly, and decode procedure only takies less system resource.
S103: come the audio-video document broadcast of decoding according to the audio/video decoding library file that is complementary with hardware parameter of this locality.
S104: described hardware parameter is sent to server end.
S105: the audio/video decoding library file that is complementary with hardware parameter that the reception server end returns.
S106: the audio/video decoding library file that returns according to server end comes the audio-video document broadcast of decoding.
Server end is pre-stored various audio/video decoding library files, every kind of audio/video decoding library file has corresponding corresponding hardware parameter, when the portable terminal with this hardware parameter utilizes this corresponding audio/video decoding library file decoding playing audio-video document, can obtain faster decoding speed.In the present embodiment, after server end is received the hardware parameter that portable terminal sends, namely in the memory cell of this locality, find the audio/video decoding library file that is complementary with this hardware parameter and send to portable terminal.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.
Be illustrated in figure 2 as the optimization decoding process flow schematic diagram of the another kind of mobile terminal playing device that the embodiment of the invention provides, present embodiment is the description of the present invention being done from mobile terminal side, and the method comprises the steps:
S201: the hardware parameter that obtains portable terminal.
S202: judge whether this locality has the audio/video decoding library file that is complementary with described hardware parameter, if having, then enters step S203, if do not have, then enters step S204.
S203: come the audio-video document broadcast of decoding according to the audio/video decoding library file that is complementary with hardware parameter of this locality.
S204: judge whether network connection is normal, if undesired, then enter step S205, if normally then enter step S206.
S205: call local general audio/video decoding library file and come the audio-video document broadcast of decoding.
In the present embodiment, when network connection is undesired, can call local general audio/video decoding library file comes the audio-video document broadcast of decoding, thereby guarantee the normal play of audio-video document, this general audio/video decoding storehouse deposits portable terminal in the time of can installing first along with player.
S206: hardware parameter is sent to server end.
S207: fileinfo and the file location information of the audio/video decoding library file that is complementary with described hardware parameter that the reception server end returns.
S208: send the described audio/video decoding library file request of obtaining to described server end according to described fileinfo and file location information.
S209: the audio/video decoding library file that is complementary with hardware parameter that the reception server end returns.
S210: the audio/video decoding library file that returns according to server end comes the audio-video document broadcast of decoding.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.
Be illustrated in figure 3 as the optimization decoding process flow schematic diagram of the another kind of mobile terminal playing device that the embodiment of the invention provides, it is pointed out that present embodiment is the explanation of the present invention being done from server end, the method comprises the steps:
S301: obtain the hardware parameter that portable terminal sends.
S302: according to the hardware parameter inquiry is local whether the audio/video decoding library file that is complementary with this hardware parameter is arranged, if having, then enter step S303, if do not have, then enter step S304.
S303: the audio/video decoding library file is sent to portable terminal, so that portable terminal can be according to this audio/video decoding library file decoding playing audio-video document.
S304: hardware parameter is recorded the additional corresponding audio/video decoding library file for operating personnel.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.In addition, the embodiment of the invention is owing to dynamically update the audio/video decoding library file in the feedback of server end according to the user, thereby can support better to comprise the portable terminal of various hardware.
Be illustrated in figure 4 as the optimization decoding process flow schematic diagram of the another kind of mobile terminal playing device that the embodiment of the invention provides, present embodiment also is the explanation of the present invention being done from server end, and the method comprises the steps:
S401: obtain the hardware parameter that portable terminal sends.
S402: according to the hardware parameter inquiry is local whether the audio/video decoding library file that is complementary with this hardware parameter is arranged, if having, then enter step S403, if do not have, then enter step S406.
S403: fileinfo and the file location information of described audio/video decoding library file are sent to portable terminal.
S404: the request of obtaining described audio/video decoding library file that mobile terminal receive sends.
S405: the request according to this portable terminal sends to portable terminal with the audio/video decoding library file, so that portable terminal can be according to this audio/video decoding library file decoding playing audio-video document.
S406: hardware parameter is recorded the additional corresponding audio/video decoding library file for operating personnel.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.In addition, the embodiment of the invention is owing to dynamically update the audio/video decoding library file in the feedback of server end according to the user, thereby can support better to comprise the portable terminal of various hardware.
Be illustrated in figure 5 as the optimization decoding processing device structural representation of a kind of mobile terminal playing device that the embodiment of the invention provides, this device can be positioned at portable terminal, and this device comprises: parameter acquiring unit 510, judging unit 520, transmitting element 530, receiving element 540 and decoding broadcast unit 550.
Parameter acquiring unit 510 is used for obtaining the hardware parameter of portable terminal, and it can carry out obtaining of hardware parameter when portable terminal starts player.
Judging unit 520 is used for judging the local audio/video decoding library file that the hardware parameter that obtains with parameter acquiring unit 510 is complementary that whether has.In the present embodiment, can make optimization to the decoding of audio-video document with the audio/video decoding library file that the portable terminal hardware parameter is complementary, thereby decode more quickly, and decode procedure only takies less system resource.
Transmitting element 530 is used for when judging unit 520 judges that this locality does not have the audio/video decoding library file that is complementary with this hardware parameter this hardware parameter being sent to server end.
The audio/video decoding library file that is complementary with this hardware parameter that receiving element 540 is used for that the reception server end returns.Server end is pre-stored various audio/video decoding library files, every kind of audio/video decoding library file has corresponding corresponding hardware parameter, when the portable terminal with this hardware parameter utilizes this corresponding audio/video decoding library file decoding playing audio-video document, can obtain faster decoding speed.In the present embodiment, after server end is received the hardware parameter that transmitting element 530 sends, namely in the memory cell of this locality, find the audio/video decoding library file that is complementary with this hardware parameter and send to receiving element 540.
Decoding broadcast unit 550 is used for audio/video decoding library file that audio/video decoding library file or server end according to this locality return to the audio-video document broadcast of decoding.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.
Be illustrated in figure 6 as the optimization decoding processing device structural representation of the another kind of mobile terminal playing device that the embodiment of the invention provides, this device can be positioned at portable terminal, and this device comprises: parameter acquiring unit 610, the first judging unit 620, transmitting element 630, the first receiving element 640, decoding broadcast unit 650, the second judging unit 660, the second receiving element 670 and request unit 680.
Parameter acquiring unit 610 is used for obtaining the hardware parameter of portable terminal.
The first judging unit 620 is used for judging the local audio/video decoding library file that is complementary with this hardware parameter that whether has.
The second judging unit 660 is used for judging whether network connection is normal when the first judging unit 620 judges that this locality does not have the audio/video decoding library file that is complementary with this hardware parameter.
Transmitting element 630 is used for when the second judgment unit judges network is normal this hardware parameter being sent to server end.
Fileinfo and the file location information of the audio/video decoding library file that is complementary with hardware parameter that the second receiving element 670 is used for that the reception server end returns.
Request unit 680 is used for sending the request of obtaining the audio/video decoding library file to server end according to fileinfo and file location information.
The audio/video decoding library file that is complementary with this hardware parameter that the first receiving element 640 is used for that the reception server end returns.
Decoding broadcast unit 650 is used for audio/video decoding library file that the audio/video decoding library file that is complementary with hardware parameter or server end according to this locality return to the audio-video document broadcast of decoding, perhaps do not have the audio/video decoding library file that is complementary with hardware parameter when this locality, and when network is undesired, calls local general audio/video decoding library file and come the audio-video document broadcast of decoding.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.
Be illustrated in figure 7 as the structural representation of player in a kind of portable terminal that the embodiment of the invention provides, this player comprises: data communication interface, file read module, separation module, audio decoder module, video decode module, audio frequency rendering module, Video Rendering module, playing controller, playback interface and optimization decoding processing device.
The file read module obtains audio, video data by data communication interface from preserving disk position or core position.
Separation module constantly reads audio, video data in the mode of asking/replying from preserving the position by file read module and data communication interface, and is isolated into voice data and video data.
The audio decoder module is decoded to voice data, and decoded voice data is sent to the audio frequency rendering module, by the audio frequency rendering module this voice data is carried out audio frequency and plays up, and is then play by audio playing apparatus.
The video decode module is decoded to video data, and give the Video Rendering module with decoded video data transmitting, by the Video Rendering module this video data is carried out Video Rendering, then under the control of playing controller, play in User Interface by playback interface.
Playing controller is used for the operation of control player modules.
Optimizing decoding processing device namely can be Fig. 5 and the corresponding optimization decoding processing device of Fig. 6 in above-described embodiment, has just repeated no more at this.
Be illustrated in figure 8 as the structural representation of the optimization decoding service end processing unit of a kind of mobile terminal playing device that the embodiment of the invention provides, this device is positioned at server end, and this device comprises: parameter acquiring unit 810, query unit 820, transmitting element 830 and record cell 840.
Parameter acquiring unit 810 is used for obtaining the hardware parameter that portable terminal sends.
Query unit 820 is used for according to this hardware parameter inquiry this locality whether the audio/video decoding library file that is complementary with this hardware parameter being arranged.
Transmitting element 830 is used for and will sends to portable terminal with the audio/video decoding library file that this hardware parameter is complementary, so that this portable terminal can be according to this audio/video decoding library file decoding playing audio-video document.
Record cell 840 is used for recording this hardware parameter and being used for the additional corresponding audio/video decoding library file of operating personnel when the local audio/video decoding library file that is not complementary with this hardware parameter.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.In addition, the embodiment of the invention is owing to dynamically update the audio/video decoding library file in the feedback of server end according to the user, thereby can support better to comprise the portable terminal of various hardware.
Be illustrated in figure 9 as the structural representation of the optimization decoding service end processing unit of the another kind of mobile terminal playing device that the embodiment of the invention provides, this device is positioned at server end, and this device comprises: parameter acquiring unit 910, query unit 920, the first transmitting element 930, record cell 940, the second transmitting element 950 and request receiving unit 960.
Parameter acquiring unit 910 is used for obtaining the hardware parameter that portable terminal sends.
Query unit 920 is used for according to this hardware parameter inquiry this locality whether the audio/video decoding library file that is complementary with this hardware parameter being arranged.
Fileinfo and file location information that the second transmitting element 950 is used for the audio/video decoding library file that will be complementary with this hardware parameter send to portable terminal.
Request receiving unit 960 is used for the request of obtaining this audio/video decoding library file that mobile terminal receive sends.
The first transmitting element 930 is used for and will sends to portable terminal with the audio/video decoding library file that this hardware parameter is complementary, so that this portable terminal can be according to this audio/video decoding library file decoding playing audio-video document.
Record cell 940 is used for recording this hardware parameter and being used for the additional corresponding audio/video decoding library file of operating personnel when the local audio/video decoding library file that is not complementary with this hardware parameter.
The embodiment of the invention is obtained the audio/video decoding library file corresponding with this hardware parameter by the hardware parameter according to portable terminal from server end, optimized the portable terminal audio/video decoding, thereby improved the audio/video decoding speed of mobile terminal playing device, reduced audio/video decoding taking system processing power.In addition, the embodiment of the invention is owing to dynamically update the audio/video decoding library file in the feedback of server end according to the user, thereby can support better to comprise the portable terminal of various hardware.
The structural representation of the optimization decoding processing system of a kind of mobile terminal playing device that provides for the embodiment of the invention as shown in figure 10, this system comprises: portable terminal 101 and server end 102, wherein comprised the corresponding optimization decoding processing device of Fig. 5 or Fig. 6 in the portable terminal 101, then comprise the corresponding optimization decoding of Fig. 8 or Fig. 9 service end processing unit in the server end 102, can carry out radio communication between portable terminal 101 and the server end 102.
In one or more exemplary designs, the described above-mentioned functions of the embodiment of the invention can realize in hardware, software, firmware or this three's combination in any.If realize in software, these functions can be stored on the medium with computer-readable, or are transmitted on the medium of computer-readable with one or more instructions or code form.The computer-readable medium comprises the computer storage medium and is convenient to so that allow computer program transfer to other local communication medium from a place.Storage medium can be the useable medium that any general or special computer can access.For example, such computer readable media can include but not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage device, or other anyly can be used for carrying or storage can be read by general or special computer or general or special processor the program code of form with instruction or data structure and other medium.In addition, any connection can suitably be defined as the computer-readable medium, for example, if software is by a coaxial cable, optical fiber computer, twisted-pair feeder, Digital Subscriber Line (DSL) or also being comprised in the defined computer-readable medium with wireless way for transmittings such as infrared, wireless and microwave from a web-site, server or other remote resource.Described video disc (disk) and disk (disc) comprise Zip disk, radium-shine dish, CD, DVD, floppy disk and Blu-ray Disc, and disk is usually with the magnetic duplication data, and video disc carries out the optical reproduction data with laser usually.Above-mentioned combination also can be included in the computer-readable medium.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.