Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of output display packing, device and system of portable terminal.Below be elaborated respectively.
Embodiment one,
The present invention will describe from the angle of portable terminal; This portable terminal includes but not limited to be mobile phone, dynamic image expert compression standard audio frequency aspect 3 (MP3; Moving Picture Experts Group Audio Layer III) equipment such as player, dynamic image expert compression standard audio frequency aspect 4 (MP4, Moving Picture Experts Group Audio Layer IV) player or e-book (E-BOOK) terminal.
A kind of output display packing of portable terminal; Comprise: when needs output video data; Obtain explicit identification, if the format conversion that this video data of this explicit identification indication need be set type again, export after the format conversion of then this video data being set type again; If the format conversion that this this video data of explicit identification indication need not set type is again then directly exported this video data.
Referring to Fig. 1, idiographic flow can be following:
101, when needs output video data, obtain explicit identification, wherein, this explicit identification is used to the format conversion of indicating this video data whether need set type again;
If the format conversion that this this video data of explicit identification indication need be set type again, then execution in step 102;
If the format conversion that this this video data of explicit identification indication need not set type again, then execution in step 104.
Wherein, video data can be lteral data and/or view data and/or video/audio or the like.When specifically obtaining, can directly from the display memory (BUFFER) of portable terminal, obtain, also can be from other storages of portable terminal, such as from primary data cache (RAW BUF, RAW BUFFER), obtaining.
The format conversion of 102, this video data being set type again obtains new video data, and execution in step 103 then; For example, specifically can be following:
Obtain the display size that needs,, obtain new video data according to the format conversion that this display size is set type to this video data again; Such as, can generate the RAW data under this display size.
Wherein, The RAW data refer to a kind of data of optical grating point, and bitmap (BMP, Bitmap-File) data class is seemingly; Data are made up of a plurality of points; When amplifying or dwindle, can only amplify point according to difference or dwindle by the mode of bitmap, and cannot obtain the concrete data of each point among the figure.
Wherein, video data can comprise lteral data and view data, and is general, the format conversion that only can set type again to lteral data, and promptly above-mentioned " format conversion of this video data being set type again according to display size " specifically can comprise:
According to the format conversion that display size is set type to the lteral data in the video data again, obtain the new literacy data; New literacy data and view data are merged, obtain new video data.
Certainly, if the form of view data allows to be edited, such as polar plot, the format conversion that then also can set type again to view data; Promptly above-mentioned " format conversion of this video data being set type again according to display size " specifically can comprise:
According to the format conversion that display size is set type to the lteral data in the video data again, obtain the new literacy data; Format conversion according to display size is set type to the view data in the video data again obtains new image data; New literacy data and new image data are merged, obtain new video data.
103, the new video data that obtains in the output step 102 is such as the RAW data under new display size that obtain in the input step 102.
Wherein, During concrete output; Can be through the USB (USB on the portable terminal; Universal Serial BUS) interface, Wireless Fidelity (WIFI, wireless fidelity) interface or blue tooth interface are exported, and also can adopt the wire communication of other types or the interface output of radio communication certainly.
104, directly export this video data, such as, through USB interface, WIFI interface or this video data of blue tooth interface output.
By on can know that present embodiment need not to add special hardware, but utilize original data transmission interface; Be employed in when needing the output video data; Obtain explicit identification, when the format conversion that this video data of explicit identification indication need be set type again, just export after the format conversion that this video data is set type again; Otherwise, then directly export this video data.Owing to can select to whether setting type again; So in terms of the existing solutions, the display mode of this programme is more flexible, and; Owing to can set type again to this video data; So can obtain being more suitable for type-setting mode in new display size, improved display effect, improved user experience.
Embodiment two,
According to embodiment one described mode, below will elaborate for example.
Because mobile phone is a kind of portable terminal comparatively commonly used, and all has USB interface on the general mobile phone, so, in the present embodiment, will be mobile phone, and be that example describes through USB interface output video data with this portable terminal.
Referring to Fig. 2, idiographic flow can be following:
20l, in the time need the apparent data on the mobile phone (being displaying contents) being shown through USB interface output; Mobile phone reads the video data in the mobile phone EMS memory (BUFFER); And obtain explicit identification; Wherein, this explicit identification is used to the format conversion of indicating this video data whether need set type again.
202, mobile phone determines whether the format conversion that needs are set type again according to explicit identification, if then execution in step 203, if not, then execution in step 207;
During concrete the realization; Can in the data structure of video data, increase a sign newly as explicit identification; Also can not change original data structure; But with original type of data structure as explicit identification, then according to preset the strategy through judging that original type of data structure determines whether the format conversion that needs are set type again.
For example; If type of data structure comprises writings and image; And preset strategy be: when type of data structure was literal, the format conversion that then need set type again was when type of data structure is image; The format conversion that then need not set type again, then step 201 and 202 specifically can be following:
Before every output one frame video data; Read the type of data structure of this video data earlier, confirm that then the type of data structure of this video data is literal or image, if be literal; Then show the format conversion that to set type again, so execution in step 203; If be image, then show the format conversion that need not set type again, so execution in step 207.
203, mobile phone obtains the display size that needs;
For example, be presented at if desired on the personal computer (PC, Personal Computer), then obtain the size that need on PC, show, like 1024 * 768 pixels, or the like.
204, the mobile phone format conversion of the lteral data in the video data being set type again according to this display size obtains the new literacy data.
205, mobile phone merges new literacy data and view data, obtains new video data;
For example, mobile phone merges new literacy data and view data, regenerates the RAW data under this display size.
Certainly, if the form of view data allows to be edited, such as polar plot, the format conversion that then also can set type again to view data; Promptly in step 204; Except the format conversion that can set type again to the lteral data in the video data according to display size; Obtain outside the new literacy data, the format conversion that can also set type again to the view data in the video data according to display size obtains new image data; If in step 204, view data has also been carried out the format conversion of setting type again, then in this step (being step 205), need new literacy data and new image data be merged, obtain new video data.
206, mobile phone outputs to new video data on the usb bus, by usb bus new video data is outputed among the demonstration BUFFER of display device, to show.
For example, can new video data be exported to display device to show through USB video data protocol class (UVC, USB Video Class) with new video data.
207, mobile phone directly outputs to the video data in the internal memory on the usb bus, by usb bus new video data is outputed among the demonstration BUFFER of display device, to show.
For example, can new video data be exported to display device through UVC with new video data, to show.
Wherein, display device specifically can have the equipment of Presentation Function for PC, E-BOOK terminal or mobile phone etc. arbitrarily.Certainly, this display device needs and same host-host protocol and the interface of this portable terminal support.
What need explanation is, general, when being connected on the equipment such as PC through USB interface when mobile phone; Only just exist as a USB client (client), which function that can realize USB this moment depends on which usb protocol this mobile phone side and PC side can realize; So, after video data outputs on the usb bus, how with these video datas; Such as how video being shown, then can adopt the several data processing mode, as long as PC side and mobile phone side realize that all corresponding protocols is just passable based on usb protocol; Concrete implementation can repeat no more at this referring to prior art.
In addition, also need to prove, for convenience; In the present embodiment, only describe, should be understood that to be transmitted as example through USB interface; Except transmitting, can also transmit through other interface, such as WIFI interface or blue tooth interface etc. through USB interface; Because its implementation and present embodiment are similar, repeat no more at this.
By on can know that present embodiment need not to add special hardware, but utilize original USB interface; Be employed in when needing the output video data; Obtain explicit identification, when the format conversion that this video data of explicit identification indication need be set type again, just export after the format conversion that this video data is set type again; Otherwise, then directly export this video data.Owing to can select to whether setting type again; So in terms of the existing solutions, the display mode of this programme is more flexible, and; Owing to can set type again to this video data; So can obtain being more suitable for type-setting mode in new display size, improved display effect, improved user experience.
Embodiment three,
In embodiment two; Mainly be to describe, because the UVC agreement is a kind of agreement of standard, so make things convenient for the user in the multiple standards program, to use to be transmitted as example through UVC in the usb protocol; Simultaneously, also help each exploitation of device fabrication producer and production equipment.But in the specific implementation, also can adopt other standard transmission protocol, or even custom protocol (being proprietary protocol); Adopt the implementation of other standard transmission protocol or custom protocol similar, repeat no more at this with enforcement two.
Through custom protocol, be convenient to expand the various effects of demonstration, for adopting standard transmission protocol, controllability is better, but is unfavorable for promoting and standardization.Concrete practical which kind of agreement can be selected according to the demand that practices.
Embodiment four,
In order to implement above method better, the embodiment of the invention also provides a kind of portable terminal, and shown in Fig. 3 a, this portable terminal comprises acquiring unit 301, first output unit 302 and second output unit 303;
Acquiring unit 301 is used for when needs output video data, obtaining explicit identification, and wherein, this explicit identification is used to the format conversion of indicating this video data whether need set type again;
Wherein, video data can be lteral data and/or view data and/or video/audio or the like.When specifically obtaining, can directly from the demonstration BUFFER of portable terminal, obtain, also can be from other storages of portable terminal, such as from RAW BUF, obtaining.
First output unit 302; During format conversion that this video data of explicit identification indication that is used for getting access at acquiring unit 301 need be set type again; To the format conversion that this video data is set type again, obtain new video data, export this new video data;
When second output unit 303, format conversion that this video data of the explicit identification that is used for getting access at acquiring unit 301 indication need not set type again, directly export this video data.
Wherein, when specifically exporting, can export through the USB interface on the portable terminal, WIFI interface or blue tooth interface.
Shown in Fig. 3 b, first output unit 302 can comprise and obtains subelement 3021, composing subelement 3022 and output subelement 3023;
Obtain subelement 3021, be used to obtain the display size of needs;
Composing subelement 3022 is used for obtaining new video data according to obtaining the format conversion that display size that subelement 3021 gets access to is set type to this video data again;
Output subelement 3023 is used to export the new video data that composing subelement 3022 obtains.
Wherein, video data can comprise lteral data and view data, and is general, the format conversion that only can set type again to lteral data, and the subelement 3022 of promptly setting type can comprise that the first text composition sub level unit and first merges the sub level unit;
The first text composition sub level unit is used for obtaining the new literacy data according to obtaining the format conversion that display size that subelement 3021 gets access to is set type to the lteral data of video data again;
First merges the sub level unit, is used for the new literacy data that the view data and the first text composition sub level unit with video data obtain and merges, and obtains new video data;
Then export subelement, specifically be used to export first and merge the new video data that the sub level unit obtains.
So, if the form of view data allows to be edited, such as polar plot, the format conversion that then also can set type again to view data; The subelement 3022 of promptly setting type can comprise that also the second text composition sub level unit, the second image layout sub level unit and second merge the sub level unit;
The second text composition sub level unit is used for obtaining the new literacy data according to obtaining the format conversion that display size that subelement 3021 gets access to is set type to the lteral data of video data again;
The second image layout sub level unit is used for obtaining new image data according to obtaining the format conversion that display size that subelement 3021 gets access to is set type to the view data of video data again;
Second merges the sub level unit, and the new literacy data that the new image data that is used for the second image layout sub level unit is obtained and the second text composition sub level unit obtain merge, and obtain new video data;
Then export subelement, specifically be used to export second and merge the new video data that the sub level unit obtains.
More than the practical implementation of each unit can repeat no more at this referring to front embodiment.
By on can know; The acquiring unit 301 of present embodiment portable terminal can be when needs be exported video data; Obtain explicit identification, when the format conversion that this video data of explicit identification indication need be set type again, just export after the format conversion of setting type again by 302 pairs of these video datas of first output unit; Otherwise, then directly export this video data by second output unit 303.Owing to can select to whether setting type again; So in terms of the existing solutions, the display mode of this programme is more flexible, and; Owing to can set type again to this video data; So can obtain being more suitable for type-setting mode in new display size, improved display effect, improved user experience.
Embodiment five,
Correspondingly, the embodiment of the invention also provides a kind of communication system, comprises any one portable terminal that the embodiment of the invention provides.
Portable terminal is used for when needs output video data, obtaining explicit identification; If the format conversion that this this video data of explicit identification indication need be set type again; The format conversion of then this video data being set type again obtains new video data, exports this new video data; If the format conversion that this this video data of explicit identification indication need not set type is again then directly exported this video data.
Wherein, the format conversion that video data is set type again specifically can for: obtain the display size that needs,, obtain new video data according to the format conversion that this display size is set type to this video data again; Such as, can generate the RAW data under this display size, the method embodiment referring to the front repeats no more at this.
Wherein, video data can be lteral data and/or view data and/or video/audio or the like.When specifically obtaining, can directly from the demonstration BUFFER of portable terminal, obtain, also can be from other storages of portable terminal, such as from RAW BUF, obtaining.During concrete output, can pass through USB interface, also can be through other interface such as WIFI interface or blue tooth interface, the host-host protocol of employing can be the UVC in the usb protocol, also can adopt other host-host protocol or make by oneself with agreement, or the like.
This communication facilities, the concrete display size that also is used to obtain needs according to the format conversion that this display size is set type to this video data again, obtains new video data; Such as, can generate the RAW data under this display size, the method embodiment referring to the front repeats no more at this.
Optional, this communication system can also comprise display device;
Display device is used for video data or new video data that mobile terminal receive sends, show according to this video data or new video data, such as Show Picture, literal or displaying video, audio frequency or the like.
More than the practical implementation of each unit can repeat no more at this referring to front embodiment.
This communication system specifically can be used for long-range mobile phone screen and share; Such as can being used for the demonstration of long-range mobile phone operation, and teaching etc., again such as; Can directly pass through the QQ video; Or other video grabber, the operation of mobile phone demonstration is dealt into a distant place, or makes mobile phone operation video display video recording or the like.This communication system can also be used under the scenes such as use of direct demonstration and E-BOOK of Folding screen, USB display screen.
By on can know that the portable terminal of the communication system of present embodiment can obtain explicit identification when needs are exported video data, determine whether the format conversion that video data is set type again according to the indication of explicit identification.Because whether can select setting type again, so in terms of the existing solutions, the display mode of this programme is more flexible; And, owing to can set type again to this video data, so can obtain being more suitable for type-setting mode in new display size; Improve display effect, improved user experience, and; This scheme need not extraly on portable terminal, to set up hardware, so can not cause hardware cost to increase, helps producing and promoting.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium; Storage medium can comprise: ROM (read-only memory) (ROM; Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
The easiest implementation of this invention adopts any new agreement for adopting USB UVC standard agreement, and new interface is all within this scope of patent protection.
More than output display packing, device and the system of a kind of portable terminal that the embodiment of the invention provided carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.