A kind of method realizing MIPI CSI-2 multichannel low-frequency transmissionTechnical field
The present invention relates to image transmission technology field, particularly relate to a kind of method realizing MIPI CSI-2 multichannel low-frequency transmission.
Background technology
Along with developing rapidly of multimedia technology, various video electronic product is popularized at a terrific speed.And higher requirement be it is also proposed to image transmitting speed, and require that image pixel is increasing, transmission frame speed is more and more higher, and Fig. 1 gives conventional images transmission basic functional principle schematic diagram.As shown in Figure 1, first image acquisition unit obtains view data, and then export to MIPI processing unit, MIPI processing unit carries out the process such as packing to view data, finally exports according to MIPI protocol requirement sequential.
But the scheme of prior art cannot meet the fast transport of hi-vision pixel, and the circuit power consumption of the program is higher.
Summary of the invention
The object of this invention is to provide a kind of method realizing MIPI CSI-2 multichannel low-frequency transmission, circuit power consumption and running frequency can be reduced, and image transmitting speed can be improved further.
The object of the invention is to be achieved through the following technical solutions:
Realize a method for MIPI CSI-2 multichannel low-frequency transmission, the method comprises:
Obtain view data;
According to the port number that user is arranged, channel allocation is carried out to described view data;
Export after adding the header packet information indicating image format before each passage of view data after dispensing.
Further, export after adding the header packet information indicating image type before each passage of described view data after dispensing and comprise:
The view data that each passage exports by the image output format pre-set according to user combines with the header packet information comprising image format, obtains the packet that acquisition one is complete, more outwards exports.
As seen from the above technical solution provided by the invention, view data and header packet information are divided into two parts to process respectively by the present invention, implementation method complexity compared with former implementation does not increase, but overall operation frequency is reduced to original 1/2,1/3 even 1/4, greatly reduce whole module running frequency, reduce the power consumption of whole processing module; Meanwhile, the program also allows view data with the transmission of higher speed, can as large pixel image and the occasion having high frame per second demand.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
The schematic diagram of the conventional images transmission basic functional principle that Fig. 1 provides for background technology of the present invention;
A kind of flow chart realizing the method for MIPI CSI-2 multichannel low-frequency transmission that Fig. 2 provides for the embodiment of the present invention;
A kind of schematic diagram realizing the method for MIPI CSI-2 multichannel low-frequency transmission that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to protection scope of the present invention.
Embodiment
A kind of flow chart realizing the method for MIPI CSI-2 multichannel low-frequency transmission that Fig. 2 provides for the embodiment of the present invention.As shown in Figure 2, the method mainly comprises the steps:
Step 21, acquisition view data.
Step 22, according to user arrange port number channel allocation is carried out to described view data.
Export after adding the header packet information indicating image format before step 23, each passage of view data after dispensing.
In the embodiment of the present invention, the view data that each passage exports by the image output format pre-set according to user combines with the header packet information comprising image format, obtains a complete packet, more outwards exports.
For the ease of understanding, operating diagram that also can be shown in Figure 3.
As shown in Figure 3, after getting the view data of input, utilize user to arrange image transfer mode mode, first view data is assigned to multiple channel parallel process according to setting, the data through distributing carry out data packing after exporting; After packing, channel allocation is carried out to the header packet information of view data, and with the view data through channel allocation according to sequential combination; Finally, by combination packet according to MIPI CSI-2 formatted output.
View data and header packet information are divided into two parts to process respectively by the such scheme of the embodiment of the present invention, implementation method complexity compared with former implementation does not increase, but overall operation frequency is reduced to original 1/2,1/3 even 1/4, greatly reduce whole module running frequency, reduce the power consumption of whole processing module; Meanwhile, the program also allows view data with the transmission of higher speed, can as large pixel image and the occasion having high frame per second demand.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.