CN108460729A - A kind of computer readable storage medium and the Image Reversal device using the medium - Google Patents

A kind of computer readable storage medium and the Image Reversal device using the medium Download PDF

Info

Publication number
CN108460729A
CN108460729A CN201810045779.7A CN201810045779A CN108460729A CN 108460729 A CN108460729 A CN 108460729A CN 201810045779 A CN201810045779 A CN 201810045779A CN 108460729 A CN108460729 A CN 108460729A
Authority
CN
China
Prior art keywords
yuv
data
length
rgb
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810045779.7A
Other languages
Chinese (zh)
Inventor
梁少杰
梁丕树
夏群兵
劳可词
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Ai Sheng Sheng Intelligent Technology Co Ltd
Original Assignee
Dongguan Ai Sheng Sheng Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Ai Sheng Sheng Intelligent Technology Co Ltd filed Critical Dongguan Ai Sheng Sheng Intelligent Technology Co Ltd
Priority to CN201810045779.7A priority Critical patent/CN108460729A/en
Publication of CN108460729A publication Critical patent/CN108460729A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/606Rotation by memory addressing or mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Abstract

The present invention relates to technical field of image processing, more particularly to the Image Reversal device of a kind of computer readable storage medium and the application medium, the dielectric memory has computer program, which can be executed by the processor of Image Reversal device.The Image Reversal device turns the yuv data that YUV algorithms are converted to RGB data equal length using RGB, then the length that oversampling ratio further reduces yuv data is reduced again, finally in the yuv data storage to SDRAM that length is 16bit, after turning operation being carried out to data, the length of yuv data is restored again, then turn RGB algorithms yuv data translation bit RGB data using YUV, be then sent to display screen and show.The size of data of the required storage of image of 1920*1080 resolution ratio in this way is 1920*1080* length C=16=33177600bit.Reduce a large amount of memory space on the basis of original, and it is the SDRAM of length C=16bit bit wides only to need data line, reduces design cost.

Description

A kind of computer readable storage medium and the Image Reversal device using the medium
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of computer readable storage medium and apply the medium Image Reversal device, which has computer program, which can be held by the processor of Image Reversal device Row.
Background technology
With the fast development of picture pick-up device hardware itself and image processing techniques, high-definition image, image people life Popularization and application in living, study and work, more stringent requirements are proposed for this processing system to high-definition image, image.Image Overturning is that piece image is interchangeable up and down, and very frequent, MIPI shown in Fig. 1 is used in image processing field It is the abbreviation of mobile industry processor interface, it is a kind of agreement that transmission of video is shown, including a clock lane and four A data lane.Conventional Image Reversal processing method is:MIPI is by serially transmitting the data in four channels, four Then the data solution of Data Lane changes into the RGB display datas of 24bit, then RGB display datas at the parallel data of 32bit The YUV display datas of 16bit are converted to, in the yuv data storage to SDRAM memory that then every frame picture is obtained again, so The yuv data inside SDRAM is read and be reduced to the RGB display datas of 24bit afterwards, finally realize the overturning of image and is shown Show.
When the image to high-resolution, high-bit width carries out overturning processing, first the MIPI signals of full frame image can be changed into 24bit RGB data storage in SDRAM, then read first address successively from the last one address of SDRAM again, This completes the overturnings of a frame image.However, the size of data of the required storage of the image of 1920*1080 resolution ratio is 1920*1080*24=49766400bit can occupy a large amount of memory space, result in waste of resources in this way, the SDRAM needed Memory space it is larger, increase design cost.
Invention content
It is an object of the invention to:A kind of meter for having and can reducing the memory space occupied in Image Reversal operation is provided The computer readable storage medium of calculation machine program, and the Image Reversal device using the medium.
To achieve the above object, the present invention provides a kind of computer readable storage medium, is stored with computer program Flipped image, the program realize following steps when being executed by processor:
Image data acquisition step reads the MIPI signals of image and generates the parallel data that length is A;
Above-mentioned parallel data is converted to the RGB display datas that length is B by RGB data generation step;
The RGB display datas that above-mentioned length is B are converted to the YUV mediants that length is B by yuv data generation step According to;
The YUV intermediate data that above-mentioned length is B is converted to the YUV that length is C and shows number by yuv data switch process According to;
Yuv data processing step stores the YUV display datas that above-mentioned length is C into SDRAM, then with default Rule from SDRAM read length be C YUV show number, to complete the data processing of Image Reversal;
A is more than B and is more than C.
Wherein, further include the following steps realized after yuv data spread step when which is executed by processor:
Yuv data processing step, it is B's that the YUV display datas that overturning treated length is C, which are converted to length, YUV growth datas;
Image exports step, and the YUV growth datas that length is B are converted to the RGB output datas that length is B, should RGB output datas are for exporting to display device.
Wherein, the length of described A, B, C are 32bit, 24bit, 16bit respectively.
Wherein, in the yuv data generation step, use following formula that RGB display datas are converted among YUV Data:
Y=0.299*R+0.587*G+0.114*B;
U=-0.147*R -0.289*G+0.436*B;
V=0.615*R -0.515*G -0.100*B.
Wherein, it in the yuv data switch process, reduces to the oversampling ratio of YUV intermediate data to obtain YUV Display data.
Wherein, in the yuv data spread step, following formula extension YUV intermediate data is used:
Wherein, it in described image exports step, uses following formula that YUV growth datas are converted to RGB and exports number According to:
R=Y+1.140*V;
G=Y -0.394*U -0.518*V;
B=Y+2.032*U.
A kind of Image Reversal device, including processor and above computer readable storage medium storing program for executing are also provided, which can The computer program read on storage medium can be executed by processor.
Advantageous effect:After the parallel data for obtaining 32bit by MIPI, the parallel data of 32bit is converted into 24bit Then wide RGB data turns the YUV numbers that YUV algorithms are converted to the RGB data of 24bit bit wides 24bit bit wides using RGB According to then the YUV signal of 24bit bit wides being converted to again the YUV signal of 16bit, then the YUV data of 16bit bit wides are stored Into SDRAM, data are then read to complete the data processing of Image Reversal, then reading with default rule from SDRAM The yuv data of the 16bit bit wides gone out is reduced to the yuv data of 24bit bit wides, recycles YUV to turn RGB algorithms and yuv data is turned It is changed to RGB data, display screen is then sent to and shows, the data of the required storage of image of such 1920*1080 resolution ratio Size is 1920*1080*16=33177600bit.Reduce a large amount of memory space on the basis of original, and only needs to count According to the SDRAM that line is 16bit bit wides, design cost is reduced.
Description of the drawings
Fig. 1 is the control block diagram of MIPI agreements.
Fig. 2 is the flow chart of the Image Reversal device.
Fig. 3 is the schematic diagram of the yuv data write-in SDRAM of the Image Reversal device.
Fig. 4 is the schematic diagram that the yuv data of the Image Reversal device is read from SDRAM.
Specific implementation mode
The invention will be further described with the following Examples.
As shown in Fig. 2, following steps are executed by Image Reversal device, to be realized to the quick, accurate of image Overturning.
Image data acquisition step a:The data of the MIPI signals for four data lane that mobile phone transmits are changed into length The parallel data of A=32bit is spent, RGB data generation step is then executed, length B=24bit is changed into according to MIPI agreements Wide RGB data.
Yuv data generation step b:Turn YUV algorithms using RGB and the RGB data of length B=24bit is converted into length B The yuv data of=24bit, RGB turn YUV algorithms:
Y=0.299*R+0.587*G+0.114*B;
U=-0.147*R -0.289*G+0.436*B;
V=0.615*R -0.515*G -0.100*B.
Yuv data switch process c:The yuv data of length B=24bit bit wides is converted to the YUV numbers of length C=16bit According to that is, by YUV444 translation bits YUV422.
YUV444 is 4:4:4 samplings, each Y correspond to one group of UV component;Code stream storage mode:Y0U0V0, Y1U1V1, Y2U2V2, Y3U3C3, Y4U4V4 ...
YUV422 is 4:2:2 samplings, each two Y share one group of UV component;Code stream storage mode:Y0U0, Y1V0, Y2U2, Y3V2, Y4U4 ...
The yuv data of length B=24bit is converted to the yuv data of length C=16bit i.e. by the corresponding odd number of UV data Component extraction is gone out, and even components are left behind.
Yuv data processing step d:As shown in figure 3, in the yuv data storage to SDRAM of length C=16bit, then As shown in figure 4, the data inside SDRAM are read out, specifically:Data are written when storing since address 0, by full frame image Data write, for example it is addrn to write the last one address, and data are read when reading since the addrn of the last one address, always Address 0 is read, to complete the data processing of Image Reversal.
Yuv data spread step e:The yuv data of length C=16bit is reduced to the YUV numbers that length is B=24bit According to.
The reduction formula of yuv data spread step e:
Image exports step f:The yuv data of length B=24bit is reduced to the RGB data of length B=24bit.
Image exports the reduction formula of step f:
R=Y+1.140*V;
G=Y -0.394*U -0.518*V;
B=Y+2.032*U.
Image exports step g:The RGB data of length B=24bit is connected to display screen by rgb interface chip can point Bright screen completes the display of Image Reversal.
The Image Reversal device realizes the overturning to high-definition image by step as above, turns YUV algorithms length using RGB The RGB data of B=24bit bit wides is converted to the yuv data of length B=24bit bit wides, then again length B=24bit bit wides YUV signal be converted to the YUV signal of length C=16bit, then the yuv data storage of length C=16bit bit wides is arrived In SDRAM, the yuv data of length C=16bit bit wides is reduced to length B=24bit bit wides YUV again after then reading data Data recycle YUV to turn RGB algorithms yuv data translation bit RGB data, are then sent to display screen and show, such 1920* The size of data of the required storage of image of 1080 resolution ratio is 1920*1080*16=33177600bit.In original base Reduce a large amount of memory space on plinth, and it is the SDRAM of length C=16bit bit wides only to need data line, reduces and sets Count cost.

Claims (8)

1. a kind of computer readable storage medium is stored with the computer program for realizing Image Reversal, which is characterized in that The program realizes following steps when being executed by processor:
Image data acquisition step reads the MIPI signals of image and generates the parallel data that length is A;
Above-mentioned parallel data is converted to the RGB display datas that length is B by RGB data generation step;
The RGB display datas that above-mentioned length is B are converted to the YUV intermediate data that length is B by yuv data generation step;
The YUV intermediate data that above-mentioned length is B is converted to the YUV display datas that length is C by yuv data switch process;
Yuv data processing step stores the YUV display datas that above-mentioned length is C into SDRAM, then with preset rule The YUV that length is C is then read from SDRAM and shows number, to complete the data processing of Image Reversal;
A is more than B and is more than C.
2. computer readable storage medium according to claim 1, which is characterized in that when the program is executed by processor also It is included in the following steps realized after yuv data spread step:
The YUV display datas that overturning treated length is C are converted to the YUV that length is B and expanded by yuv data processing step Open up data;
Image exports step, and the YUV growth datas that length is B are converted to the RGB output datas that length is B, RGB outputs Data are for exporting to display device.
3. computer readable storage medium according to claim 1, which is characterized in that the length of described A, B, C is respectively 32bit、24bit、16bit。
4. computer readable storage medium according to claim 1, which is characterized in that in the yuv data generation step In, use following formula that RGB display datas are converted to YUV intermediate data:
Y=0.299*R+0.587*G+0.114*B;
U=-0.147*R -0.289*G+0.436*B;
V=0.615*R -0.515*G -0.100*B.
5. computer readable storage medium according to claim 1, which is characterized in that in the yuv data switch process In, the oversampling ratio to YUV intermediate data is reduced to obtain YUV display datas.
6. computer readable storage medium according to claim 2, which is characterized in that in the yuv data spread step In, use following formula extension YUV intermediate data:
7. computer readable storage medium according to claim 2, which is characterized in that in described image exports step, It uses following formula that YUV growth datas are converted to RGB output datas:
R=Y+1.140*V;
G=Y -0.394*U -0.518*V;
B=Y+2.032*U.
8. a kind of Image Reversal device, including processor, which is characterized in that further include any one of claim 1~7 meter Calculation machine readable storage medium storing program for executing, the computer program on the computer readable storage medium can be executed by processor.
CN201810045779.7A 2018-01-17 2018-01-17 A kind of computer readable storage medium and the Image Reversal device using the medium Pending CN108460729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810045779.7A CN108460729A (en) 2018-01-17 2018-01-17 A kind of computer readable storage medium and the Image Reversal device using the medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810045779.7A CN108460729A (en) 2018-01-17 2018-01-17 A kind of computer readable storage medium and the Image Reversal device using the medium

Publications (1)

Publication Number Publication Date
CN108460729A true CN108460729A (en) 2018-08-28

Family

ID=63220160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810045779.7A Pending CN108460729A (en) 2018-01-17 2018-01-17 A kind of computer readable storage medium and the Image Reversal device using the medium

Country Status (1)

Country Link
CN (1) CN108460729A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325804A (en) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 Method and device for determining YUV image display parameters
CN113591878A (en) * 2021-07-09 2021-11-02 杭州当虹科技股份有限公司 Dynamic HDR image feature extraction method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292534A (en) * 2005-10-18 2008-10-22 Nxp股份有限公司 Methods of storing colour pixel data and driving a display, means for performing such methods, and display apparatus using the same
CN102447915A (en) * 2011-10-09 2012-05-09 杭州海康威视软件有限公司 YUV (Luma and Chroma) video data resolution automatic identification method and device thereof
CN105741237A (en) * 2016-01-26 2016-07-06 南京铁道职业技术学院 FPGA (Field Programmable Gate Array) image rollover based hardware realization method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292534A (en) * 2005-10-18 2008-10-22 Nxp股份有限公司 Methods of storing colour pixel data and driving a display, means for performing such methods, and display apparatus using the same
CN102447915A (en) * 2011-10-09 2012-05-09 杭州海康威视软件有限公司 YUV (Luma and Chroma) video data resolution automatic identification method and device thereof
CN105741237A (en) * 2016-01-26 2016-07-06 南京铁道职业技术学院 FPGA (Field Programmable Gate Array) image rollover based hardware realization method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
牛金海: "《TI C66X多核软件开发(MCSDK)技术 基于CCSV5 SYS/BIOS的高级应用与实例精解》", 31 July 2015 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325804A (en) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 Method and device for determining YUV image display parameters
CN111325804B (en) * 2018-12-14 2023-11-03 中移(杭州)信息技术有限公司 Method and device for determining YUV image display parameters
CN113591878A (en) * 2021-07-09 2021-11-02 杭州当虹科技股份有限公司 Dynamic HDR image feature extraction method

Similar Documents

Publication Publication Date Title
CN106056530B (en) Method and device for displaying picture content in application
US8989509B2 (en) Streaming wavelet transform
CN105850129B (en) High dynamic range images are carried out with the method and apparatus of tone mapping
CN107886466B (en) Image processing unit system of graphic processor
US20050024380A1 (en) Method for reducing random access memory of IC in display devices
CN112188280B (en) Image processing method, device and system and computer readable medium
CN107547904B (en) FPGA-based YUV data 8x8block conversion method and device in video compression
CN103177419A (en) Caching method for vector diagram converted bitmap and special image processing device
CN109697739B (en) Reverse color display method of handwriting reading equipment and handwriting reading equipment
CN108460729A (en) A kind of computer readable storage medium and the Image Reversal device using the medium
CN102572207B (en) Color space transformation method suitable for joint photographic experts group (JPEG) image
CN112991412B (en) Liquid crystal instrument sequence frame animation performance optimization method and liquid crystal instrument
CN103034975A (en) Image processing method and device
CN116166185A (en) Caching method, image transmission method, electronic device and storage medium
CN102263924B (en) Image processing method based on bicubic interpolation and image display method
Gong et al. Design of high-speed real-time sensor image processing based on FPGA and DDR3
CN115829846A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114302087A (en) MIPI data transmission mode conversion method and device and electronic equipment
US9888250B2 (en) Techniques for image bitstream processing
CN112905514A (en) Photoetching equipment data transmission system based on DMD and method thereof
US20140125821A1 (en) Signal processing circuit, imaging apparatus and program
CN110536123A (en) Video data handling procedure, device, computer equipment and storage medium
CN203895098U (en) LCOS-based image dithering removing circuit structure
CN116309893B (en) Picture compression method and device, storage medium and electronic equipment
WO2023087827A1 (en) Rendering method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180828