CN101546527B - Liquid crystal display controller and image scaling method - Google Patents

Liquid crystal display controller and image scaling method Download PDF

Info

Publication number
CN101546527B
CN101546527B CN 200810066336 CN200810066336A CN101546527B CN 101546527 B CN101546527 B CN 101546527B CN 200810066336 CN200810066336 CN 200810066336 CN 200810066336 A CN200810066336 A CN 200810066336A CN 101546527 B CN101546527 B CN 101546527B
Authority
CN
China
Prior art keywords
bilinear interpolation
data
module
unit
horizontal
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.)
Active
Application number
CN 200810066336
Other languages
Chinese (zh)
Other versions
CN101546527A (en
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.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics 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 Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN 200810066336 priority Critical patent/CN101546527B/en
Publication of CN101546527A publication Critical patent/CN101546527A/en
Application granted granted Critical
Publication of CN101546527B publication Critical patent/CN101546527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The invention is suitable for the technical field of multimedia, and provides a liquid crystal display controller and an image scaling method. The liquid crystal display controller comprises a direct memory access DMA module, a back stage module, an image scaling module, and a format conversion module, wherein the image scaling module comprises a horizontal bilinear interpolation unit and a longitudinal bilinear interpolation unit, and the image scaling module reads image data from an external memory through the DMA module, completes image scaling to acquire target row data with a format of YUV420, and transmits the target row data to the format conversion module; and the format conversion module splices the target row data from the image scaling module into the YUV444 format, and sends to the back stage module. The liquid crystal display controller and the image scaling method solve the problems of low utilization ratio of bandwidth resources and large power consumption when the image scaling is realized in the prior art.

Description

A kind of LCD controller and image-scaling method
Technical field
The invention belongs to multimedia technology field, relate in particular to a kind of LCD controller and image-scaling method.
Background technology
When on mobile device, carrying out the picture demonstration, use the amplification reduction capability of picture through regular meeting.Since at present the RGB selected for use of mobile device (Red Green Blue, RGB) the pattern screen is that a kind of real-time requires very high equipment, and LCD (Liquid Crystal Display, LCD) screen display needs lot of data to move.So in the system design of moving processor, transmission bandwidth is a very crucial problem.When particularly carrying out the image reduction operation, because the original image that needs to transmit will be bigger than the image data amount that needs show, so the transmission bandwidth that needs just requires strictness more.
In the design of mobile multi-media terminal hardware; Image zoom module in the LCD controller is crucial; Because performance that it is determining whole system and final display effect, it efficiently and fast be the whether successful key factor of decision whole system.
Most mobile hand-held device has adopted the YUV420 form to deposit video data, but all carries out data processing according to the YUV444 form usually in each image processing module inside.Fig. 1 shows the YUV420 form, and Fig. 2 shows the YUV444 form.Following brief account existing technical scheme is how to realize image zoom.
The convergent-divergent of image all is to adopt the bilinear interpolation algorithm usually, and the pixel that just new interpolation is come out is to be got by two adjacent original pixels point processings.Fig. 3 shows bilinear interpolation algorithm quick-reading flow sheets in the prior art.The concrete implementation method of bilinear interpolation algorithm is, at first row done horizontal bilinear interpolation, and original image is 4x2, totally two row just, 4 pixels of every row.Do horizontal bilinear interpolation to the data of two row respectively earlier, and then do vertical bilinear interpolation to this two row and handle, promptly corresponding pixel is done interpolation with same algorithm in two row, calculates pixel new on the column direction, obtains the line data of target 2x1 at last.
Fig. 4 is a convergent-divergent control system sketch map in the prior art.We can see from block diagram; The view data of the YUV420 form of external storage is downloaded to respectively in the corresponding buffering area of LCD module, is spliced into the data of YUV444 form then; Deliver to Zoom module to these view data again and carry out the convergent-divergent computing; All computings all are that unit carries out with the pixel, and one of them pixel comprises YUV each 8 bits, totally 24 Bit datas.At first carry out horizontal scaling; The data line of handling well all deposits in the row buffer, and then fetches in the data of second row to do horizontal scaling, and then need to judge whether the delegation with temporary before do vertical interpolation; Just insert the delegation that makes new advances if desired, do not need just to throw away.Loop computation gets target image to the end like this, and each module that sends the back level again to is carried out subsequent treatment.
In the prior art, simply generally be the data processing that the data splicing that the YUV420 form is imported in the outside is become the YUV444 form in order to control.Though this control method is simple, the convergent-divergent arithmetic element is that the unit carries out computing with the pixel, and external data is the YUV420 form; The U, the V signal that also just mean adjacent odd-numbered line and even number line are identical, and in existing technical scheme, horizontal scaling is good when first line data; After depositing in the row buffer; All data of second row still will be all (Direct Memory Access DMA) reads into, and it is done horizontal bilinear interpolation processing through the direct memory access module; Do vertical bilinear interpolation with first row again and handle, obtain the target line data.And in fact second row to have only the Y data be different with first row, but because arithmetic element all is based on pixel, therefore must also walk all flow processs to UV again one time with the be stitched together pixel of a completion of formation of Y.So not only waste bandwidth, and increased unnecessary power consumption.
Summary of the invention
Embodiment of the invention technical problem to be solved is to provide a kind of LCD controller and image-scaling method; So that in to bandwidth requirement hard real time property system, handling process through optimizing the image zoom module and control strategy reduce system bandwidth and take and improve the calculation process method of velocity.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of LCD controller, and it comprises direct memory access module and back level module, also comprises image zoom module and format converting module.Wherein the image zoom module comprises horizontal bilinear interpolation unit and vertical bilinear interpolation unit.Horizontal bilinear interpolation unit is made up of the horizontal bilinear interpolation of Y unit, U horizontal bilinear interpolation unit and the horizontal bilinear interpolation of V unit.Vertically the bilinear interpolation unit is made up of the vertical bilinear interpolation of Y unit, U vertical bilinear interpolation unit and the vertical bilinear interpolation of V unit.The image zoom module is accomplished image zoom and is obtained the target line data that form is YUV420, and said target line data are sent to format converting module through DMA reads image data from external memory storage.Format converting module will become the YUV444 form from the target line data splicing of image zoom module, and send to back level module.
Another purpose of the embodiment of the invention is to provide a kind of image-scaling method, may further comprise the steps:
LCD controller reads in the view data that form is YUV420 through dma module from external memory storage;
Behind the first row image of Y in the image zoom module reading DMA module, U, each component data buffering area of V; Carry out the horizontal bilinear interpolation of Y respectively; Horizontal bilinear interpolation of U and the horizontal bilinear interpolation of V, and leave each component data after the interpolation in vertical bilinear interpolation unit;
Judge that first line data is odd-numbered line or even number line; When the first behavior odd-numbered line, through dma module from external memory storage, only read second the row the Y data, carry out horizontal bilinear interpolation after; Again with leave first in vertical bilinear interpolation unit row Y data in and carry out vertical bilinear interpolation; Obtaining the Y data of target line, the U of target line, V data and be temporarily stored in U, the V data consistent of first row in vertical bilinear interpolation unit, and the target line data that obtain are sent to format converting module; When the first behavior even number line; From external memory storage, read Y, U, the V data of second row through dma module, carry out horizontal bilinear interpolation respectively after, again with leave first in vertical bilinear interpolation unit row Y, U, V data in and carry out vertical bilinear interpolation respectively; Obtain destination image data; At last the target line data are sent to format converting module, the processing method of follow-up odd-numbered line is identical with the processing method of above-mentioned odd-numbered line, and the processing method of follow-up even number line is identical with the processing method of above-mentioned even number line;
In format converting module, the target line data splicing is become the YUV444 form, send to back level module.
The embodiment of the invention is through be separated into Y, U, V three independently data paths fully; Individual processing Y, U, V data according to actual needs; Just be spliced into the YUV444 formatted data at last; Give back level resume module then, handling process and the control strategy of realizing optimizing the image zoom module reduces system bandwidth and takies and improve calculation process speed.Realize simply, solved that image zoom control Time Bandwidth takies many and the big problem of overall power in the prior art.
Description of drawings
Fig. 1 is a YUV420 form sketch map in the prior art;
Fig. 2 is a YUV444 form sketch map in the prior art;
Fig. 3 is a bilinear interpolation algorithm rough schematic in the prior art;
Fig. 4 is an image scaling control system sketch map in the prior art;
Fig. 5 is the lcd controller sketch map that the embodiment of the invention provides;
Fig. 6 is the flow chart of the image-scaling method that provides of the embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is mainly used in multimedia processor, and Fig. 5 shows the lcd controller structure that the embodiment of the invention provides, and comprises dma module, image zoom module, format converting module and back level module.Wherein comprise horizontal bilinear interpolation unit and vertical bilinear interpolation unit in the image zoom module again; Comprise the horizontal bilinear interpolation of Y unit, U horizontal bilinear interpolation unit and the horizontal bilinear interpolation of V unit in the horizontal bilinear interpolation unit again, vertically comprise the vertical bilinear interpolation of Y unit, U vertical bilinear interpolation unit and the vertical bilinear interpolation of V unit again in the bilinear interpolation unit.
The image zoom module is through dma module reads image data from external memory storage; And completion image zooming function; Horizontal bilinear interpolation unit wherein carries out horizontal bilinear interpolation with image to be handled, and the data after will handling send to vertical bilinear interpolation unit; Vertically the bilinear interpolation unit judges is first row or second row from the data of horizontal bilinear interpolation unit; If then directly leaving corresponding line in, first row prepares the data buffer zone; If second row; Then carry out vertical bilinear interpolation and handle, generate the target line data, and the target line data are sent to format converting module with the data of first row of before having deposited; Format converting module will be spliced into the YUV444 form from the YUV of the target line data of vertical bilinear interpolation unit, and send to back level module.
Fig. 6 shows the flow process of the image-scaling method that the embodiment of the invention provides, and does following description below in conjunction with Fig. 6, and said image-scaling method may further comprise the steps:
Step S601, in the time of need carrying out image zoom, the image zoom module is read in the first row view data that form is YUV420 through DMA from external memory storage;
Step S602 carries out horizontal bilinear interpolation to the first row view data and handles;
In horizontal bilinear interpolation unit, carry out horizontal bilinear interpolation and handle, respectively in the horizontal bilinear interpolation of Y unit, handle Y, U, V data in U horizontal bilinear interpolation unit and the horizontal bilinear interpolation of the V unit;
Step S603, the row that the first row view data after handling is left in vertical bilinear interpolation unit is prepared in the data buffer zone;
Step S604 judges that first row is odd-numbered line or even number line;
Step S6051; When first row when being odd-numbered line, to have only Y be different because the second row even number line is compared with previous row, and therefore just the second Y data of going are read in the Y data buffer zone from dma module; Carrying out horizontal bilinear interpolation handles; Then with before handled well, deposit the odd-numbered line Y data of preparing in the data buffer zone of being expert at and carry out vertical computing, obtain the Y data of target line; The U of target line, V data then with the U, the V data consistent that are temporarily stored in vertical bilinear interpolation unit, and the target line data that obtain are sent to format converting module;
Step S6051; When first row is even number line; Because the second row even number line is compared YUV with previous row all different, so will read the YUV view data of second row through dma module from external memory storage, carry out horizontal bilinear interpolation respectively and handle and vertically bilinear interpolation processing; Obtain the target line data, and the target line data that obtain are sent to format converting module;
Step S606 becomes the YUV444 form with the target line data splicing in format converting module, send to back level module.
Do not carry out computing because U, the V data of second even number line are transmitted so yet, saved bandwidth resources, accelerated arithmetic speed simultaneously, and reduced power consumption.
The embodiment of the invention is through be separated into Y, U, V three independently data paths fully; Individual processing Y, U, V data according to actual needs; Just be spliced into the YUV444 formatted data at last; Give back level resume module then, handling process and the control strategy of realizing optimizing the image zoom module reduces system bandwidth and takies and improve calculation process speed.Realize simply, solved that image zoom control Time Bandwidth takies many and the big problem of overall power in the prior art.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. a LCD controller comprises direct memory access dma module and back level module, it is characterized in that said LCD controller also comprises:
The image zoom module is used for through said dma module from the external memory storage reads image data, accomplishes image zoom, and obtaining form is the target line data of YUV420; With
Format converting module is used to receive the target line data that said image zoom module is sent, and said target line data splicing is become the YUV444 form, and sends to back level module; Wherein
Said image zoom module is made up of horizontal bilinear interpolation unit and vertical bilinear interpolation unit; Said horizontal bilinear interpolation unit is made up of the horizontal bilinear interpolation of Y unit, U horizontal bilinear interpolation unit and the horizontal bilinear interpolation of V unit; Said vertical bilinear interpolation unit is made up of the vertical bilinear interpolation of Y unit, U vertical bilinear interpolation unit and the vertical bilinear interpolation of V unit; The horizontal bilinear interpolation of said Y unit, U horizontal bilinear interpolation unit and the horizontal bilinear interpolation of V unit; Be respectively applied for Y, U, V data are carried out horizontal bilinear interpolation processing, and the data after will handling send to said vertical bilinear interpolation unit.
2. LCD controller as claimed in claim 1 is characterized in that, said vertical bilinear interpolation unit judges is odd-numbered line or even number line from first line data of horizontal bilinear interpolation unit;
When said first line data is odd-numbered line; Read the Y data of second row from the Y data buffer zone and carry out horizontal bilinear interpolation processing; Carry out vertical bilinear interpolation processing with the odd-numbered line Y data of depositing in the preparation data buffer zone of being expert at again, generating form at last is the target line data of YUV420;
When said first line data is even number line, from external memory storage, read the YUV view data of second row, and carry out horizontal bilinear interpolation respectively and handle and vertically bilinear interpolation processing, generating form at last is the target line data of YUV420;
Said target line data send to format converting module by said vertical bilinear interpolation unit.
3. an image-scaling method is characterized in that, said method comprising the steps of:
LCD controller reads in the view data that form is YUV420 through dma module from external memory storage;
Behind the first row image of Y in the image zoom module reading DMA module, U, each component data buffering area of V; Carry out the horizontal bilinear interpolation of Y respectively; Horizontal bilinear interpolation of U and the horizontal bilinear interpolation of V, and leave each component data after the interpolation in vertical bilinear interpolation unit;
Judge that first line data is odd-numbered line or even number line; When the first behavior odd-numbered line, through dma module from external memory storage, only read second the row the Y data, carry out horizontal bilinear interpolation after; Again with leave first in vertical bilinear interpolation unit row Y data in and carry out vertical bilinear interpolation; Obtaining the Y data of target line, the U of target line, V data and be temporarily stored in U, the V data consistent of first row in vertical bilinear interpolation unit, and the target line data that obtain are sent to format converting module; When the first behavior even number line; From external memory storage, read Y, U, the V data of second row through dma module, carry out horizontal bilinear interpolation respectively after, again with leave first in vertical bilinear interpolation unit row Y, U, V data in and carry out vertical bilinear interpolation respectively; Obtain destination image data; At last the target line data are sent to format converting module, the processing method of follow-up odd-numbered line is identical with the processing method of above-mentioned odd-numbered line, and the processing method of follow-up even number line is identical with the processing method of above-mentioned even number line;
In format converting module, the target line data splicing is become the YUV444 form, send to back level module.
CN 200810066336 2008-03-26 2008-03-26 Liquid crystal display controller and image scaling method Active CN101546527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810066336 CN101546527B (en) 2008-03-26 2008-03-26 Liquid crystal display controller and image scaling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810066336 CN101546527B (en) 2008-03-26 2008-03-26 Liquid crystal display controller and image scaling method

Publications (2)

Publication Number Publication Date
CN101546527A CN101546527A (en) 2009-09-30
CN101546527B true CN101546527B (en) 2012-01-11

Family

ID=41193624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810066336 Active CN101546527B (en) 2008-03-26 2008-03-26 Liquid crystal display controller and image scaling method

Country Status (1)

Country Link
CN (1) CN101546527B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263880B (en) * 2010-05-25 2015-02-11 安凯(广州)微电子技术有限公司 Image scaling method and apparatus thereof
JP6249343B2 (en) * 2014-05-09 2017-12-20 マクセル株式会社 Video reproduction device, display device, and transmission device
CN105611261A (en) * 2015-12-25 2016-05-25 北京小鸟科技发展有限责任公司 Projection method and device based on video buffer and projector
CN106205454A (en) * 2016-07-06 2016-12-07 昀光微电子(上海)有限公司 A kind of microdisplay on silicon module
CN112188280B (en) * 2019-07-03 2022-07-08 北京嗨动视觉科技有限公司 Image processing method, device and system and computer readable medium
CN112929624B (en) * 2021-01-21 2023-02-17 杭州雾联科技有限公司 Encoding method, encoding device, electronic equipment and computer readable storage medium
CN114302091A (en) * 2021-12-15 2022-04-08 中国船舶重工集团公司第七0九研究所 Method and system for converting YUV format image into RGB format image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514343A (en) * 2002-12-16 2004-07-21 ��ʢ���ӹɷ����޹�˾ System and method of processing chromatic difference signal 4:2:0 plane image data format storage
CN2750601Y (en) * 2004-12-24 2006-01-04 北京中星微电子有限公司 A computer camera realizing specific processing of dynamic image
CN1812469A (en) * 2005-12-26 2006-08-02 北京中星微电子有限公司 Image digital compressing and amplifying system
CN1960436A (en) * 2005-09-29 2007-05-09 日本电气视象技术株式会社 Video signal determination device and method, and a video display device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514343A (en) * 2002-12-16 2004-07-21 ��ʢ���ӹɷ����޹�˾ System and method of processing chromatic difference signal 4:2:0 plane image data format storage
CN2750601Y (en) * 2004-12-24 2006-01-04 北京中星微电子有限公司 A computer camera realizing specific processing of dynamic image
CN1960436A (en) * 2005-09-29 2007-05-09 日本电气视象技术株式会社 Video signal determination device and method, and a video display device and method
CN1812469A (en) * 2005-12-26 2006-08-02 北京中星微电子有限公司 Image digital compressing and amplifying system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2000-182022A 2000.06.30

Also Published As

Publication number Publication date
CN101546527A (en) 2009-09-30

Similar Documents

Publication Publication Date Title
CN101546527B (en) Liquid crystal display controller and image scaling method
US10861133B1 (en) Super-resolution video reconstruction method, device, apparatus and computer-readable storage medium
CN102263880B (en) Image scaling method and apparatus thereof
CN104902193B (en) A kind of method for being split processing and display to image data based on FPGA
CN101123723B (en) Digital video decoding method based on image processor
US8570318B2 (en) Collaborative graphics rendering using mobile devices to support remote display
KR102173107B1 (en) Methed, device and system for processing image based on cloud server
CN101562006B (en) Method and device for image scaling
CN110246081B (en) Image splicing method and device and readable storage medium
CN101963895B (en) Edge blending processor, system and superposition method
CN102611869A (en) Output-oriented network transmission technique of multi-screen splicing system
JP2007129573A (en) Imaging apparatus
CN110782387B (en) Image processing method and device, image processor and electronic equipment
CN101552916A (en) DMA transfer method, device and DMA controller for YUV video data
CN109992541A (en) A kind of data method for carrying, Related product and computer storage medium
CN103702110A (en) Multi-channel video signal quality monitoring equipment
CN112511896A (en) Video rendering method and device
CN113014804A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN111860363A (en) Video image processing method and device, electronic equipment and storage medium
KR100818034B1 (en) ON THE FLY DATA TRANSFER BETWEEN RGB AND YCrCb COLOR SPACES FOR DCT INTERFACE
CN108174084A (en) panoramic video processing method and terminal device
CN102073987A (en) Method and system for converting YUV420 image into RGB565 image
TW201332366A (en) Capturing multiple video channels for video analytics and encoding
WO2023184754A1 (en) Configurable real-time disparity point cloud computing apparatus and method
CN102263924B (en) Image processing method based on bicubic interpolation and image display method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY CO.,

Free format text: FORMER OWNER: SHENZHEN ANKAI MICROELECTRONICS TECHNOLOGY CO., LTD.

Effective date: 20100115

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20100115

Address after: C1, 3 floor, Chuangxin building, 182 science Avenue, Science Town, Guangdong, Guangzhou Province, China: 510600

Applicant after: Anyka (Guangzhou) Microelectronics Technology Co., Ltd.

Address before: A3, building 2, building 518057, building, Shenzhen digital technology park, Nanshan District hi tech Industrial Zone, Shenzhen, Guangdong, China

Applicant before: Shenzhen Anyka Microelectronics Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: Guangzhou Ankai Microelectronics Co.,Ltd.