A kind of image sharing method, source device, terminal device and system based on Miracast
Technical field
The present invention relates to field of image transmission, more particularly to a kind of image sharing method based on Miracast, source device,
Terminal device and system.
Background technology
Miracast technologies are increasingly popularized at present, and the annual production of the estimated Miracast authenticating devices of industry analysis person is not
Coming 4 years will be more than 1,000,000,000.Miracast technologies are that a kind of image based on WIFI Direct technologies shares technology, and principle is
The p2p network connections established using WIFI Direct show frame buffer zone data constantly to transmit.Based on Miracast technologies
Equipment provides simplified discovery and setting, and user can transmit image in equipment room rapidly.In Miracast systems, shadow is delivered
The equipment of picture is referred to as source device (source equipment), and the equipment being delivered is referred to as terminal device (sink equipment).
The limitation of Miracast display effects is primarily limited to both sides WIFI throughputs and source device Installed System Memory bandwidth (source device need
The data flow of cbr (constant bit rate) is constantly read or stored from Installed System Memory).Due to the popularization of existing wireless telecommunications, wirelessly
The disturbed condition of signal is more severe between communication modes, can usually cause the bandwidth of transmission to greatly reduce, cause image transmission
Blunt, the slack problem of process.During view data transmission simultaneously, source device is in Installed System Memory bandwidth deficiency, source device
The speed for obtaining data flow declines, and can equally cause the blunt, not smooth of image transmitting process, influence the experience of client.
The content of the invention
The technical problem to be solved in the present invention, be to provide a kind of image sharing method based on Miracast, source device,
Terminal device and system, the Miracast image transmissions process of solution is in the case of transmission bandwidth deficiency or memory bandwidth deficiency
The delay of appearance and slack problem.
What the present invention was realized in:
A kind of image sharing method based on Miracast, comprises the following steps:
When synthesizing next frame figure layer, the material of material is identified to terminal and set source device needed for transmission synthesis next frame figure layer
Standby, terminal device detects whether there is described material mark;
If terminal device has described material mark, described material is identified into corresponding material and original graph
It is laminated to turn into new figure layer;
If terminal device does not have described material mark, send prompt message and received to source device, source device
The corresponding material of described material mark is sent after to prompting message and arrives terminal device, described in terminal device stores after receiving
Material simultaneously turns into new figure layer by material and original graph are laminated.
Further, in addition to sensing data transceiving step:
Source device sends the sensing data that the step of material mark is specially source device transmission material mark and source device
To terminal device;Terminal device synthesize new figure layer the step of be specially:Sensing data, material and original graph is laminated as new
Figure layer.
Further, described sensing data is attached most importance to force sensor data.
And the present invention also provides a kind of image based on Miracast and shares source device, including the first WIFI module, element
Material identifies sending module and material sending module, wherein:
First WIFI module is used to send and receive data;
Material mark sending module is used for when synthesizing next frame figure layer, sends the element of material needed for synthesis next frame figure layer
Material is identified to terminal device;
Material sending module is used for when receiving prompting message, sends the corresponding material of described material mark to eventually
End equipment.
Further, in addition to sensor assembly and sensing data sending module, wherein:
Sensor assembly is used to generate sensing data;
Sensing data sending module is used to send sensing data to terminal device.
Further, described sensor assembly is gravity sensor module.
And the present invention also provides a kind of image based on Miracast and shares terminal device, including the second WIFI module,
Material mark receiving module, material mark judge module, material receiving module and new figure layer synthesis module, wherein:
Second WIFI module is used to send and receive data;
Material mark receiving module is used to receive material mark;
Material identifies judge module for detecting whether having the material mark of reception, if sending prompting message without if
To source device;
Material receiving module is used to receive the material that source device is sent;
New figure layer synthesis module is used to turn into new figure layer by material and original graph are laminated.
Further, sensing data receiving module, sensing data receiving module are used to receive sensing data, new figure
Layer synthesis module is additionally operable to sensing data, material and original graph is laminated turns into new figure layer.
Further, described sensing data receiving module is gravity sensor receiving module.
And the present invention also provides a kind of image sharing system based on Miracast, including source device and terminal device,
Described source device is that the above-mentioned image based on Miracast shares source device, described terminal device for it is above-mentioned based on
Miracast image shares terminal device.
The invention has the advantages that:Identified by reading, sending and parsing material, avoid Miracast and be transmitted across
Image in journey after source device transmission synthesis, because the size of material mark is far smaller than the size of image, then reduce
Bandwidth used in bandwidth and transmission shared by Miracast IMAQs, avoid because of memory bandwidth deficiency or transmission belt
Wide deficiency and cause the blunt of image transmission process and not smooth.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the inventive method embodiment;
Fig. 2 is the structural representation of present system embodiment.
Description of reference numerals:
1st, source device,
10th, the first WIFI module,
11st, material mark sending module,
12nd, material sending module,
13rd, sensor assembly,
14th, sensing data sending module,
2nd, terminal device,
21st, material mark receiving module,
22nd, material mark judge module,
23rd, material receiving module,
24th, new figure layer synthesis module,
25th, sensor receiving module.
Embodiment
To describe the technology contents of the present invention, construction feature, the objects and the effects in detail, below in conjunction with embodiment
And accompanying drawing is coordinated to be explained in detail.
Fig. 1 and Fig. 2 is referred to, the present invention provides a kind of image sharing method based on Miracast, and this method can answer
With between source device and terminal device based on Miracast, comprise the following steps:Step S101 source devices are in synthesis next frame
During figure layer, the material for sending material needed for synthesis next frame figure layer is identified to terminal device.The existing shadow based on Miracast
Picture transmitting procedure, it is the Image compounding step of source device first, i.e., when source device will show next frame data, will first synthesizes next
Material and original figure layer (the picture figure layer originally shown) needed for frame are sent to image composing unit and carry out synthesis drafting, meeting simultaneously
The sensing data added obtained by sensor detection unit, obtain final figure layer (image data) and be sent to display frame buffering
Area, display controller can then be shown the digital independent for showing frame buffer zone and over the display after parsing;Followed by source
The image forwarding step of equipment, source device transport module as used in Miracast by the image data of display frame buffer zone
(i.e. WIFI module) is sent to terminal device, and the WIFI module of terminal device is sent to the display frame of itself after receiving image data
Buffering area, then by the display controller of terminal device carry out show frame buffer zone data reading and parsing after in display
On shown.
Material can be program interface, system interface or picture etc., material mark can be prestored on source device with
The customized numbering of one-to-one a string of material or according to certain rule according to corresponding to material content feature string.
In a certain embodiment, material is identified as MD5 (Message Digest Algorithm, Message Digest Algorithm 5) sequence
Feature string, then source device be identified to terminal device in the material for sending material needed for synthesis next frame figure layer and be specially:
The MD5 sequences of material, send the MD5 sequences to terminal device needed for source device generation next frame.Due to each file
There are one-to-one MD5 sequences therewith, then will not produce and obscure and repeat.Simultaneously because the generating mode of MD5 sequences is existing
, then material need not be identified and carry out space that is self-defined, while also saving storage material mark.
Subsequently into the step S102 of this method:Terminal device detects whether there is described material mark.If eventually
End equipment has described material mark, then is directly entered step S106 and described material is identified into corresponding material and original
Figure layer synthesizes new figure layer;If terminal device does not have described material mark, prompting letter is sent into step S103
Cease to source device, prompt message is used to show that terminal device does not have the material to identify i.e. no material, then step
S104 source devices send the corresponding material of described material mark to terminal device, step S105 ends after receiving prompting message
End equipment stores the material and enters step S106 after receiving turn into new figure layer by material and original graph are laminated.Pass through reading
The material mark relatively small with data volume is transmitted, avoids and reads and send the larger figure layer of data volume or image data, section
Memory bandwidth when source device is read is saved and required transmission bandwidth when data are sent, so as to memory bandwidth is smaller or transmission
When bandwidth is smaller, the promptness of image transmission is ensure that, avoids interim card or not smooth phenomenon that image transmission occurs.
Terminal device can be placed into display frame buffer zone for new figure layer, then can be read and be solved by display controller
Pass on display and shown after analysis.When running this method next time, new figure layer again can be as the sheet run next time
It is used for the original figure layer synthesized with material in method.Simultaneously because material and the original figure layer and terminal device of source device synthesis
Consistent, the method for synthesis is equally identical, then the picture that source device next frame is shown and terminal device be it is consistent, i.e.,
Complete the transmission of source device image.
Further, this method also includes sensing data transceiving step:It is specific that source device sends the step of material mark
Material is sent for source device to identify and the sensing data of source device to terminal device;The step of terminal device synthesis new figure layer, has
Body is:By sensing data, material and original graph is laminated turns into new figure layer.Sensing data can be gravity sensor data,
Light intensity sensor data or proximity transducer data.These sensing datas can produce the change of image on source device
Change, such as gravity sensor data produce the change in image direction, light intensity sensor data produce the change of colors of image.If
The figure layer of the synthesis of source device combines sensing data, in order that source device display image and terminal device it is consistent,
Then want transmission sensor data.The data volume of sensing data is simultaneously little, can't excessively temporary source device memory bandwidth and biography
Defeated bandwidth, the process of image transmission is not interfered with.
And the present invention also provides a kind of image based on Miracast and shares source device 1, source device is used to send image
Data are to terminal device 2, and form can be hand-held device to source device in actual applications, such as mobile phone, tablet personal computer or notes
This.As shown in Fig. 2 including the first WIFI module 10, material mark sending module 11 and material sending module 12, the first WIFI moulds
Block 10 identifies sending module 11 with material respectively and material sending module 12 is connected.Wherein:First WIFI module 10 is used to send
With reception data;Material mark sending module 11 is used for when synthesizing next frame figure layer, is sent and closed by the first WIFI module 10
Material into material needed for next frame figure layer is identified to terminal device 2;Material sending module 12 is used to receive terminal device 2
During the prompting message sended over, the corresponding material of described material mark is sent to terminal device 2.After source device 1 is sent
The original figure layer that material can currently be shown when identifying to source device 1 synthesize the new figure layer of source device 1 with material and shown
Show.
Due to material mark data amount very little, source device 1 is when obtaining material mark and need not to take source device 1 very big
Memory bandwidth, while the first WIFI module 10 sends material mark also without very big transmission bandwidth, then avoid because
Memory bandwidth deficiency either transmission bandwidth deficiency and caused by image transmission interim card or not smooth.
Further, in addition to sensor assembly 13 and sensing data sending module 14, sensing data sending module
14 are connected with the WIFI module 10 of sensor assembly 13 and first respectively.Wherein:Sensor assembly 13 is used to generate sensing data;
Sensing data sending module 14 is used to send sensing data to terminal device.Sensor assembly 13 can be gravity sensor
Module, light intensity sensor module or proximity transducer module.Source device 1 can also utilize gravity sensor 1 and currently show
Original figure layer synthesize the new figure layer of source device 1 with material and shown.
And the present invention also provides a kind of image based on Miracast and shares terminal device 2, as shown in Fig. 2 terminal is set
Standby 2 are used to receive the image information of source device 1 and generate new figure layer.Including the second WIFI module 20, material mark receiving module
21st, material mark judge module 22, material receiving module 23 and new figure layer synthesis module 24, the second WIFI module 20 respectively with element
Material mark receiving module 21, material mark judge module 22, material receiving module 23 connect, new figure layer synthesis module 24 respectively with
Material mark receiving module 21, new figure layer synthesis module 24 connect.Wherein:Second WIFI module 20 is set for sending and receiving source
Standby 1 data;Material mark receiving module 21 is used to receive material mark;Material identifies judge module 22 for detecting whether depositing
The material for having reception identifies, if sending prompting message without if to source device 1;Material receiving module 23 is used to receive source device
The material sent;New figure layer synthesis module 24 is used to turn into new figure layer by material and original graph are laminated.
Further, in addition to sensing data receiving module 25, sensing data receiving module are sensed with 25 in reception
Device data, new figure layer synthesis module 24 is additionally operable to sensing data, material and original graph is laminated turns into new figure layer.Wherein, pass
Sensor data reception module is gravity sensor receiving module, light intensity sensor receiving module or proximity transducer receiving module.
And the present invention also provides a kind of image sharing system based on Miracast, including source device and terminal device,
Described source device is that the above-mentioned image based on Miracast shares source device, described terminal device for it is above-mentioned based on
Miracast image shares terminal device.
It is all tablet personal computer with source device 1 and terminal device 2 below and Miracast interconnections is carried out by WIFI, source is set
Standby 1 exemplified by carrying out next system interface and showing, procedure declaration is operated to present system.Source device 1 is detecting
When showing next system interface display request, material information (the i.e. image letter that the needs of next system interface are shown is read
Breath), source device 1 reads the material mark of material, and material identifies sending module 11 and sends material mark by the first WIFI module 10
Know, while figure layer is synthesized by image composing unit, and with display controller unit show layers.The material mark of terminal device 2
Receiving module 21 is known after the second WIFI module 20 receives material mark, and material identifies judge module 22 and material mark is examined
Survey, if just carrying out new figure layer synthesis using new figure layer synthesis module 24, sent out if not by the second WIFI module 20
Prompting message is sent to source device 1.The material sending module 12 of source device 1 leads to after receiving prompting message from the first WIFI module 10
Cross the first WIFI module 10 and send material to terminal device, the material receiving module 23 of terminal device 2 passes to new after receiving
Figure layer synthesis module 24 carries out new figure layer synthesis.Terminal device is 2-in-1 into rear, is sent to display frame buffer zone and is being shielded by display controller
Shown on curtain, due to source device 1 and terminal device it is 2-in-1 into mode be consistent, then the picture that they show is also
The same, that is, the image of source device 1 is completed to the delivery of terminal device 2.Wherein, for unified original figure layer, then set in source
When just being connected for 1 and terminal device 2, source device 1 should send the figure layer (i.e. original figure layer) currently shown and arrive terminal device 2
On, the original figure layer then used is all the new figure layer of last generation.
Embodiments of the invention are the foregoing is only, not thereby limit the scope of patent protection of the present invention, every utilization
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.