Invention content
The purpose of embodiment of the present invention is to provide a kind of projection for reducing mobile device screen to vehicle device screen and prolongs
Slow method, data processing equipment and mobile equipment.
To achieve these goals, embodiment of the present invention provides one kind for reducing mobile device screen to vehicle device screen
Projection delay method, including:Crawl processing is carried out to the content of the mobile device screen to generate the first data;To institute
It states the first data and carries out conversion process to obtain the second data;And coded treatment is carried out to second data to obtain third
Data;Wherein, the parallel progress of at least the two in the crawl processing, the conversion process and the coded treatment.
Optionally, the conversion process includes:First data are zoomed in and out with processing, and to obtain scaling, treated
Data;Format conversion processing is carried out to scaling treated the data to obtain the data after format conversion processing;To described
Data after format conversion carry out rotation processing to obtain the data after rotation processing as second data.
Optionally, the crawl processing, scaling processing, the format conversion processing, the rotation processing and described
The parallel progress of at least the two in coded treatment.
Optionally, the method further includes:First data are input to first queue;Wherein described conversion process packet
It includes and takes out first data from the first queue and conversion process is carried out to first data.
Optionally, the method further includes:Second data are input to the second queue;At wherein described coding
Reason includes taking out second data from the second queue and carries out coded treatment to second data.
Optionally, the method further includes:First data are input to first queue;Wherein described scaling processing packet
It includes and takes out first data from the first queue and processing is zoomed in and out to first data;After scaling processing
Data be input to second queue;Wherein described format conversion processing is included after the second queue takes out the scaling processing
Data and format conversion processing is carried out to scaling treated the data.
Optionally, the method further includes:Data after the format conversion processing are input to third queue;Wherein institute
Rotation processing is stated to include from the data after the third queue taking-up format conversion processing and to the format conversion processing
Data afterwards carry out rotation processing.
Optionally, the method further includes:Second data are input to the 4th queue;Wherein described coded treatment packet
It includes and takes out second data from the 4th queue and coded treatment is carried out to second data.
Embodiment of the present invention also provides a kind of data processing equipment, including:Screen processing module is grabbed, is configured to described
The content of the screen of mobile equipment carries out crawl processing to generate the first data;Conversion processing module is configured to described
One data carry out conversion process to obtain the second data;And coded treatment module, it is configured to carry out second data
Coded treatment is to obtain third data;Wherein, at least two in the crawl processing, the conversion process and the coded treatment
Person carries out parallel.
Optionally, the conversion processing module includes:Processing module is scaled, is configured to contract to first data
Processing is put to obtain scaling treated data;Format conversion processing module is configured to scaling treated the data
Format conversion processing is carried out to obtain the data after format conversion processing;Rotation processing module is configured to turn the form
Data after changing carry out rotation processing to obtain the data after rotation processing as second data.
Optionally, the crawl processing, scaling processing, the format conversion processing, the rotation processing and described
The parallel progress of at least the two in coded treatment.
Optionally, the screen processing module of grabbing is further configured to first data being input to first queue;Wherein institute
Conversion processing module is stated to be configured to take out first data from the first queue and convert first data
Processing.
Optionally, the conversion processing module is further configured to second data being input to the second queue;Its
Described in coded treatment module be configured to take out second data from the second queue and second data carried out
Coded treatment.
Optionally, the screen processing module of grabbing is further configured to first data being input to first queue;Wherein institute
Scaling processing module is stated to be configured to take out first data from the first queue and zoom in and out first data
Processing;By the scaling, treated that data are input to second queue;Wherein described format conversion processing module be configured to from
The second queue takes out the scaling treated data and treated that data carry out format conversion processing to the scaling.
Optionally, the format conversion processing module is further configured to the data after the format conversion processing being input to
Third queue;Wherein described rotation processing module is configured to from the number after the third queue taking-up format conversion processing
Rotation processing is carried out according to and to data after the format conversion processing.
Optionally, the rotation processing module is further configured to second data being input to the 4th queue;Wherein institute
Coded treatment module is stated to be configured to take out second data from the 4th queue and encode second data
Processing.
Embodiment of the present invention also provides a kind of mobile equipment, including the data processing dress according to the above embodiment
It puts.
Through the above technical solutions, each key link that can be projected with parallel processing screen, big degree reduce movement
The projection of equipment to vehicle device postpones.
The other feature and advantage of embodiment of the present invention will be described in detail in subsequent specific embodiment part.
Specific embodiment
The specific embodiment of embodiment of the present invention is described in detail below in conjunction with attached drawing.It should be understood that
The specific embodiments described herein are merely to illustrate and explain the present invention embodiment, are not intended to restrict the invention implementation
Mode.
Fig. 1 is postponed according to the projection for reducing mobile device screen to vehicle device screen that embodiment of the present invention provides
Method flow chart.As shown in Figure 1, it in embodiments of the present invention, provides one kind and is arrived for reducing mobile device screen
The method of the projection delay of vehicle device screen, this method can include:
Crawl processing is carried out to the content of mobile device screen to generate the first data;
Conversion process is carried out to the first data to obtain the second data;And
Coded treatment is carried out to the second data to obtain third data;
Wherein, at least the two in crawl processing, conversion process and coded treatment can carry out parallel.
Mobile equipment may, for example, be mobile phone, tablet computer, personal digital assistant (PDA) etc..Mobile phone may, for example, be base
In the mobile phone of Android system.By taking the mobile phone of Android system as an example, when mobile phone is for example interconnected by USB line and vehicle device, to complete
Mobile phone screen picture is projected into vehicle device screen (referred to as throwing screen), mobile phone completion is needed to grab screen, conversion and encoding operation.In order to
It is enough efficiently to complete these operations, queue and thread can be quoted.In embodiments of the present invention, this method can be with
Including:First data are input to first queue;Wherein conversion process includes taking out the first data and right from the first queue
First data carry out conversion process.In this embodiment, for example, mobile phone will to grab the obtained data (the first data) of screen operation defeated
Enter to first queue.Furthermore it is possible to conversion process is performed in first thread.The first thread takes out the first number from first queue
Conversion process is carried out according to it.If first queue has expired, can be discharged with waiting list again to the first number of first queue input
According to.Coded treatment can also use queue and thread.For example, can be input by the second data that conversion process obtains
Two queues.Coded treatment can carry out in the second thread, which can take out the second data and right from second queue
It carries out coded treatment.If second queue has expired, it can wait for second queue release again to the second number of second queue input
According to.In this embodiment, at least two processing during shielding are thrown by the way of queue, therefore can be carried out parallel, with
It serially carries out processing to compare, execution efficiency is improved.
In embodiments of the present invention, conversion process can be included at scaling processing, format conversion processing and/or rotation
Reason.It will be understood by those skilled in the art that conversion process can include the arbitrary combination of these three processing according to actual demand.
Fig. 2 is the projection for reducing mobile device screen to vehicle device screen provided according to another embodiment of the present invention
The flow chart of the method for delay.As shown in Fig. 2, in embodiments of the present invention, this method can include:
Crawl processing is carried out to the content of mobile device screen to generate the first data;
First data are zoomed in and out with processing to obtain scaling treated data;
Format conversion processing is carried out to scaling treated data to obtain the data after format conversion processing;
To form, transformed data carry out rotation processing to obtain the data after rotation processing as the second data;And
Coded treatment is carried out to the second data to obtain third data.
Wherein, in crawl processing, scaling processing, format conversion processing, rotation processing and coded treatment both at least simultaneously
Row carries out.
By taking the mobile phone of Android system as an example, when mobile phone is for example interconnected by USB line and vehicle device, to complete mobile phone screen
Picture projects vehicle device screen (referred to as throwing screen), and mobile phone completion is needed to grab screen, scaling, format conversion, rotation and encoding operation.For
It can efficiently complete these operations, queue and thread can be quoted.In this embodiment, for example, mobile phone will grab
The data (the first data) that screen operation obtains are input to first queue.Furthermore it is possible to scaling processing is performed in first thread.It should
First thread takes out the first data from first queue and processing is zoomed in and out to it.If first queue has expired, team can be waited for
Row release inputs the first data to first queue again.
Format conversion processing can also use queue and thread.For example, treated for the scaling handled by scaling
Data are input to second queue.Format conversion processing can carry out in the second thread, which can be from second queue
It takes out scaling treated data and format conversion processing is carried out to it.If second queue has expired, the second team can be waited for
Row release is again to second queue input scaling treated data.
Rotation processing can also use queue and thread.For example, the format conversion processing obtained by format conversion processing
Data afterwards are input to third queue.Rotation processing can carry out in third thread, which can be from third queue
It takes out the data after format conversion processing and rotation processing is carried out to it to obtain the second data.If third queue has been expired,
The third queue release data after third queue input format conversion process again can be waited for.Those skilled in the art can manage
Solution, in some applications, it may not be necessary to rotation processing.
Coded treatment can also use queue and thread.It for example, can be defeated by the second data that conversion process obtains
Enter to the 4th queue.Coded treatment can carry out in the 4th thread, and the 4th thread can take out the second number from the 4th queue
Coded treatment is carried out according to and to it.If the 4th queue has been expired, the 4th queue release can be waited for be inputted again to the 4th queue
Second data.In this embodiment, at least two processing during shielding are thrown by the way of queue, therefore can and be advanced
Row, compared with serially carrying out processing, execution efficiency is improved.
Although describing scaling processing, format conversion processing and rotation processing in a particular order in the above-described embodiment,
But it will be appreciated by those skilled in the art that according to practical application, these processing can be other sequences, can only need this
In a little processing some or other processing can be added.
Correspondingly, embodiments of the present invention provide the data processing equipment that can perform the above embodiment.Fig. 3 is
According to the structure diagram for the data processing equipment that embodiment of the present invention provides.As shown in figure 3, in embodiments of the present invention
In, a kind of data processing equipment is provided, including:
Screen processing module 10 is grabbed, is configured to carry out crawl processing to the content of the screen of mobile equipment to generate the first number
According to;
Conversion processing module 20 is configured to carry out conversion process to the first data to obtain the second data;And
Coded treatment module 30 is configured to carry out coded treatment to the second data to obtain third data;
Wherein, the parallel progress of at least the two in crawl processing, conversion process and coded treatment.
Screen processing module 10 is grabbed to can be configured to the first data being input to first queue;Conversion processing module 20 can
To be configured to take out the first data from first queue and carry out conversion process to the first data.
Conversion processing module 20 can be configured to the second data being input to second queue;Wherein coded treatment module
30 may be configured to take out the second data from second queue and the second data are carried out with coded treatment and output third number
According to.
Correspondingly, another embodiment of the invention provides the data processing equipments that can perform the above embodiment.
Fig. 4 is the structure diagram of data processing equipment provided according to another embodiment of the present invention.As shown in figure 4, the present invention's
In embodiment, a kind of data processing equipment is provided, including:
Screen processing module 10 is grabbed, is configured to carry out crawl processing to the content of the screen of mobile equipment to generate the first number
According to;
Conversion processing module 20 is configured to carry out conversion process to the first data to obtain the second data;And
Coded treatment module 30 is configured to carry out coded treatment to the second data to obtain third data.
Conversion processing module 20 can include:
Processing module 21 is scaled, is configured to zoom in and out the first data processing to obtain scaling treated data;
Format conversion processing module 22 is configured to carry out format conversion processing to scaling treated data to obtain lattice
Data after formula conversion process;
Rotation processing module 23 is configured to after the transformed data to form carry out rotation processing to obtain rotation processing
Data as the second data.
It grabs at least the two in screen processing, scaling processing, format conversion processing, rotation processing and coded treatment and advances
Row.
Screen processing module 10 is grabbed to can be configured to the first data being input to first queue;
Wherein scaling processing module 21 may be configured to take out the first data from first queue and the first data carried out
Scaling processing;Will scaling treated that data are input to second queue;
Wherein format conversion processing module 22 may be configured to take out scaling treated data and right from second queue
Scaling treated data carry out format conversion processing.
Format conversion processing module 22 can be configured to the data after format conversion processing being input to third queue;
Rotation processing module 23 may be configured to from the data after third queue taking-up format conversion processing and to form
Data after conversion process carry out rotation processing.
Rotation processing module 23 can be configured to the second data being input to the 4th queue;
Coded treatment module 30 may be configured to take out the second data from the 4th queue and the second data encoded
Processing exports third data.
The modules in data processing equipment described in embodiment of the present invention can pass through hardware, software, firmware
Or any combination of these is realized.It is no in embodiments to describe at data for the emphasis of prominent the application embodiment
Manage some modules common in device, such as memory module.
Another embodiment of the present invention also provides a kind of mobile equipment, including the data processing described in the above embodiment
Device.Mobile equipment may, for example, be mobile phone, tablet computer, personal digital assistant (PDA) etc..
The mobile equipment of such as mobile phone and vehicle device interconnection can be carried out throwing screen by the scheme that embodiment of the present invention provides
Process is divided into multiple subprocess, and parallel processing is carried out to multiple subprocess, degree can reduce throwing of the mobile equipment to vehicle device greatly
Delay is penetrated, promotes user experience.
The optional embodiment of example of the present invention is described in detail above in association with attached drawing, still, embodiment of the present invention is not
The detail being limited in the above embodiment, can be to of the invention real in the range of the technology design of embodiment of the present invention
The technical solution for applying mode carries out a variety of simple variants, these simple variants belong to the protection domain of embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, embodiment of the present invention
Various combinations of possible ways are no longer separately illustrated.
It will be appreciated by those skilled in the art that realize that all or part of step in the above embodiment method is can to lead to
Cross program and completed to instruct relevant hardware, which is stored in a storage medium, used including some instructions so that
One (can be microcontroller, chip etc.) or processor (processor) perform each embodiment the method for the application
All or part of step.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of embodiment of the present invention, as long as its
Without prejudice to the thought of embodiment of the present invention, it should equally be considered as embodiment of the present invention disclosure of that.