CN101556789B - Image scaling control system and method - Google Patents

Image scaling control system and method Download PDF

Info

Publication number
CN101556789B
CN101556789B CN2008100664666A CN200810066466A CN101556789B CN 101556789 B CN101556789 B CN 101556789B CN 2008100664666 A CN2008100664666 A CN 2008100664666A CN 200810066466 A CN200810066466 A CN 200810066466A CN 101556789 B CN101556789 B CN 101556789B
Authority
CN
China
Prior art keywords
data
module
image
line data
horizontal scaling
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
CN2008100664666A
Other languages
Chinese (zh)
Other versions
CN101556789A (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 CN2008100664666A priority Critical patent/CN101556789B/en
Publication of CN101556789A publication Critical patent/CN101556789A/en
Application granted granted Critical
Publication of CN101556789B publication Critical patent/CN101556789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Input (AREA)

Abstract

The invention provides an image scaling control system and a method applicable to the technical field of multimedia. The image scaling control system comprises an external memory, a direct memory access module, an image scaling prejudging module, an image scaling module and an output data buffer area. The image scaling prejudging module is used for generating row number information of two rows of original image data for scaling the next target row; the image scaling module is used for receiving the row number information generated by the image scaling prejudging module, reading image data fromthe external memory through the direct memory access module, judging the row number of the image data required to be read from the external memory, performing horizontal scaling operation and longitu dinal scaling operation to the image data, and generating target row data; and the output data buffer area is used for receiving target row data generated by the image scaling module. The invention reduces data amount read from the external memory to finally achieve the aim of reducing occupation of system bandwidth.

Description

A kind of image scaling control system and method
Technical field
The invention belongs to multimedia technology field, relate in particular to a kind of image scaling control system and method.
Background technology
In the hardware system of mobile multi-media terminal, often need dwindle and amplify image, liquid crystal display (Liquid Crystal Display, LCD) the image zoom module in the controller also becomes the very important part of whole system, and Fig. 1 shows a kind of structure chart of typical image zoom module.
The existing scheme that comprises the image zoom module, generally be that the view data that earlier other module (as the video decode module) is produced leaves in the external memory storage, then these view data all by direct memory access (Direct Memory Access, DMA) module is read the image zoom module, in the image zoom module, carry out the computing of horizontal direction convergent-divergent then, promptly earlier good the data convergent-divergent of delegation wherein, leave in the described row buffer in the image zoom module stand-by, then the data of next line are read into from external memory storage by dma module, after carrying out horizontal scaling, need to judge whether delegation's view data to carry out vertical convergent-divergent again with being temporarily stored in the described row buffer before, if desired, then carry out vertical convergent-divergent computing, thereby obtain new delegation, and then replace previous row data in the buffering area with the data that read into for the second time, wait for that again the next line data come in to judge; If do not need to carry out vertical zoom operations, then the data of reading are into for the second time directly thrown away, read new data line again; So successively loop computation just can get scaled images data to the end.
In the existing technical scheme, most mobile hand-held device has adopted the YUV420 form to deposit video data, and Fig. 3 shows the YUV420 form.In this form, the U/V data of even number line are the same with odd-numbered line, so in the time will from external memory storage, getting the pixel data of even number line, just only need read into the value of Y just passable, the data of U/V and lastrow identical, finished convergent-divergent handle leave in the described row buffer stand-by.
Because the initial data of each row is all moved into by dma module, although might this delegation not need to participate in the convergent-divergent computing, has so just wasted the system bandwidth of a large amount of preciousnesses.Mobile multi-media terminal product for low side also can be accepted reluctantly, but in high-end product, because the module of a lot of complexity is arranged, the bandwidth resources of whole system are limited, and existing processing mode has then not too met the demands.
Summary of the invention
Embodiment of the invention technical problem to be solved is to provide a kind of image scaling control system and method, so that when realizing image zoom, under the prerequisite that does not influence operate as normal, effectively takies and discharges bandwidth resources.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of image scaling control system, and described control system comprises external memory storage and direct memory access module, it is characterized in that, described image scaling control system also comprises:
Image zoom is prejudged module, is used to produce the row information of the needed two row raw image datas of next target line of convergent-divergent; The image zoom module, be used to receive described image zoom and prejudge the row information that module produces, and by described direct memory access module reads image data from described external memory storage, prejudging module when image zoom judges and generates new delegation's target line data and need original M capable and M+1 is capable, and this moment, M capablely passed through the horizontal scaling processing, and leave in the described line data buffering area, from external memory storage, read into M+1 is capable by DMA, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent; Prejudging module when image zoom judges and generates new delegation's target line data and need original M capable and M+1 is capable, and the capable horizontal scaling that also do not carry out of M this moment is handled, from external memory storage, read into M is capable by DMA, after the horizontal scaling processing, leave the line data buffering area in, and then the capable data of M+1 are read into by DMA from external memory storage, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent; The data output buffer district is used to receive the target line data that described image zoom module generates.
Wherein said image zoom module comprises: the horizontal scaling unit is used for view data is done the horizontal scaling operation; Vertically unit for scaling is used for view data is made vertical zoom operations; The line data buffering area is used to deposit through described horizontal scaling unit view data is made data after the horizontal scaling operation.
Another purpose of the embodiment of the invention is, a kind of image zoom control method is provided, and described method comprises the steps:
The image zoom module reads the capable view data of N by dma module from external memory storage, carry out horizontal scaling after, leave in the described line data buffering area of described image zoom module;
Image zoom is prejudged module according to algorithm, obtains producing the row number of needed original two line data of next line, is respectively M and M+1;
Compare N and M, the data line of selecting also transmission to need, and carry out convergent-divergent and handle;
Concrete comparative approach is, if N=M, capable having left in the described line data buffering area of M in two line data that the expression convergent-divergent is prepared to need to use, at this moment only need read the capable data of M+1, after carrying out the horizontal scaling operation, carry out vertical zoom operations with the M line data that leaves in the described line data buffering area, obtain the target line data;
If N<=M-1, two line data that the expression convergent-divergent is prepared to need to use do not leave in the described line data buffering area, need read the capable data of M earlier, carry out leaving in the line data buffering area after the horizontal scaling operation, and then read the capable data of M+1, after carrying out the horizontal scaling operation, carry out vertical zoom operations, obtain the target line data with the M line data that leaves in the described row buffer;
Wherein, if the M behavior even number line in needed original two line data, after then the capable yuv data of M being carried out the horizontal scaling operation, only need read the data of the capable Y of M+1, and after the Y data are carried out horizontal scaling, carry out vertical zoom operations with the M line data in the described row buffer, obtain the target line data;
If M is an odd-numbered line, after then the capable yuv data of M being carried out horizontal scaling operation, also need from external memory storage, to read the capable yuv data of M+1, carry out the horizontal scaling operation after, carry out vertical zoom operations with the M line data in the described row buffer, obtain the target line data;
At last, the data of image zoom module after convergent-divergent send in the data output buffer district.
Beneficial effect of the present invention is, prejudge logic by image zoom, judge the row information that produces the needed view data of next target line, and offer to the image zoom module, reduce the data volume that from SDRAM, reads, finally reach the purpose that reduces the DMA bandwidth occupancy.Realize simply, solved and carried out image zoom operation Time Bandwidth in the prior art and take problem many and that overall power is big.
Description of drawings
Fig. 1 is an image zoom process flow block diagram in the prior art;
Fig. 2 is an image zoom processing module internal frame diagram in the prior art;
Fig. 3 is a YUV420 image data format in the prior art;
Fig. 4 is the image zoom control method flow chart that the embodiment of the invention provides;
Fig. 5 is the image scaling control system structure chart that the embodiment of the invention provides.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.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.Fig. 4 shows the image zoom control method flow chart that the embodiment of the invention provides, and is described as follows below in conjunction with Fig. 4.
Suppose to have 5 capable initial data, capable number is respectively S1, S2, and S3, S4, S5, wherein S1, S3, S5 are odd number, S2, S4 are even number.We need be scaled to this 5 line data 3 row, and capable number is respectively D1, D2, D3.Judge according to fixing algorithm, need fixedly calculate D1 with S1 and S2, fixedly calculate D2 by S4 and S5, the data of this delegation of S3 are not participate in convergent-divergent so, therefore do not need this data line is passed to the image zoom module by dma module.
Described image zoom control method specifically may further comprise the steps:
Step 401, image zoom module be by dma module reads image data from external memory storage, carry out horizontal scaling after, leave in the line data buffering area of image zoom module;
The image zoom module is read in the capable view data of S1 by DMA from external memory storage, carry out leaving in the described line data buffering area behind the horizontal scaling, at this moment N=S1.
Step 402 obtains row M and the M+1 that needs produce new needed original two line data of delegation according to fixing algorithm, is respectively S1 and S2 this moment;
Step 403 is selected and transmission needs the data line of transmission, and carries out convergent-divergent and handle.
Since N=M, the previous row in two line data that the expression convergent-divergent is prepared to use, promptly S1 is capable has left in the described line data buffering area, and at this moment the image zoom module is read in the capable data of S2 by DMA from SDRAM;
Because S1 is odd-numbered line, then need the data of the capable YUV of S2 are read in the image zoom module by dma module, carry out horizontal scaling after, carry out vertical zoom operations with S1 line data in the described row buffer, obtain the yuv data of the target line D1 behind the convergent-divergent;
What deposited in the described line data buffering area this moment is the capable view data of S2.
Step 402 obtains row M and the M+1 that needs produce new needed original two line data of delegation according to fixing algorithm, is respectively S4 and S5 this moment;
Step 403, the data line that selection and transmission need, and carry out convergent-divergent and handle;
Owing to S2<S4-1 this moment, two line data that the expression convergent-divergent is prepared to use do not leave in the described line data buffering area, needing to read the capable data of S4 by DMA from external memory storage earlier enters in the image zoom module, carry out leaving in the described line data buffering area after the horizontal scaling operation, because S4 is an even number line, then only need read the Y data of S5, it is carried out the horizontal scaling operation, carry out vertical convergent-divergent with the S4 line data that leaves in the described line data buffering area then;
Step 404, the image zoom module target line data after convergent-divergent send in the data output buffer district.
In embodiments of the present invention, the image zoom module may be carried out the operation of two kinds of different conditions:
Convergent-divergent current line: prejudge module when image zoom and judge and generate new delegation and need original M capable and M+1 is capable, and this moment, M capablely passed through the horizontal scaling processing, left in the described line data buffering area, this moment only need M+1 capable from external memory storage DMA come in, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent.
Convergent-divergent is prepared row: prejudge module when image zoom and judge and generate new delegation and need original M capable and M+1 is capable, and the capable horizontal scaling that also do not carry out of M this moment is handled, need read into by DMA from external memory storage this moment M is capable, after the horizontal scaling processing, leave the line data buffering area in, and then the capable data of M+1 are read into by DMA from external memory storage, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent.
Fig. 5 shows the image scaling control system structure chart that the embodiment of the invention provides, and described control system comprises external memory storage and direct memory access module, comprises that also image zoom prejudges module, image zoom module, and data output buffer district.
The view data that is produced by modules such as video decodes leaves in the external memory storage, the image zoom module is finished the image zoom operation, by direct memory access module reads image data from external memory storage, leave in the line data buffering area of image zoom module.
Image zoom is prejudged and is comprised in the module and prejudge logic, and the described fixedly algorithm of logical foundation of prejudging draws the row number of the needed two row raw image datas of next target line of convergent-divergent, and sends to the image zoom module.
The image zoom module is according to the row information of store data in the current line data buffer zone, and the row information of the needed two row view data of next target line of convergent-divergent, judge the view data that need from external memory storage, read which row, and the view data that reads made corresponding zoom operations, and reading image data behind the convergent-divergent are sent to the data output buffer district.
The present invention is in the mobile terminal system that includes the image zoom module, add image zoom and prejudged module, logic is prejudged in utilization, prejudge out accurately the row number that need carry out zoom operations, thereby the DMA transmission of control whole system correlation module, conserve bandwidth to greatest extent.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. image scaling control system, it comprises external memory storage and direct memory access module, it is characterized in that, described system also comprises:
Image zoom is prejudged module, is used to produce the row information of the needed two row raw image datas of next target line of convergent-divergent;
The image zoom module, be used to receive described image zoom and prejudge the row information that module produces, and by described direct memory access module reads image data from described external memory storage, prejudging module when image zoom judges and generates new delegation's target line data and need original M capable and M+1 is capable, and this moment, M capablely passed through the horizontal scaling processing, and leave in the described line data buffering area, from external memory storage, read into M+1 is capable by DMA, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent; Prejudging module when image zoom judges and generates new delegation's target line data and need original M capable and M+1 is capable, and the capable horizontal scaling that also do not carry out of M this moment is handled, from external memory storage, read into M is capable by DMA, after the horizontal scaling processing, leave the line data buffering area in, and then the capable data of M+1 are read into by DMA from external memory storage, through horizontal scaling, again with the line data buffering area in M capablely carry out vertical convergent-divergent;
The data output buffer district is used to receive the target line data that described image zoom module generates.
2. image scaling control system as claimed in claim 1 is characterized in that, described image zoom module comprises:
The horizontal scaling unit is used for view data is done the horizontal scaling operation;
Vertically unit for scaling is used for view data is made vertical zoom operations;
The line data buffering area is used to deposit through described horizontal scaling unit view data is made data after the horizontal scaling operation.
3. an image zoom control method is characterized in that, said method comprising the steps of:
The image zoom module reads the capable view data of N by dma module from external memory storage, carry out leaving in the row buffer behind the horizontal scaling;
Image zoom is prejudged module according to algorithm, obtains producing the row number of needed original two line data of next line, is respectively M and M+1;
Relatively N and M, if N=M then reads the capable data of M+1, carry out the horizontal scaling operation after, carry out vertical zoom operations with the M line data that leaves in the described line data buffering area;
If N<=M-1, then read the capable data of M earlier, go and leave in the line data buffering area after the zoom operations, read the capable data of M+1 then, after carrying out the horizontal scaling operation, carry out vertical zoom operations with the M line data that leaves in the described line data buffering area;
Described image zoom module sends to the scaled images data in the data output buffer district.
4. image zoom control method as claimed in claim 3 is characterized in that, the described capable data concrete steps of M+1 that read are:
If described M behavior even number line, after then the capable yuv data of M being carried out horizontal scaling operation, only need read the capable Y data of M+1, the Y data are carried out horizontal scaling after, carry out vertical zoom operations with the M line data in the described line data buffering area, obtain the target line data;
If described M behavior odd-numbered line, after then the capable yuv data of M being carried out horizontal scaling operation, also need to read the capable yuv data of M+1, carry out the horizontal scaling operation after, carry out vertical zoom operations with the M line data in the described line data buffering area, obtain the target line data.
CN2008100664666A 2008-04-08 2008-04-08 Image scaling control system and method Active CN101556789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100664666A CN101556789B (en) 2008-04-08 2008-04-08 Image scaling control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100664666A CN101556789B (en) 2008-04-08 2008-04-08 Image scaling control system and method

Publications (2)

Publication Number Publication Date
CN101556789A CN101556789A (en) 2009-10-14
CN101556789B true CN101556789B (en) 2011-05-11

Family

ID=41174879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100664666A Active CN101556789B (en) 2008-04-08 2008-04-08 Image scaling control system and method

Country Status (1)

Country Link
CN (1) CN101556789B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131740B (en) * 2019-12-03 2021-03-05 中国航空工业集团公司洛阳电光设备研究所 VESA time sequence real-time conversion method for realizing arbitrary scaling
CN111145078B (en) * 2019-12-27 2024-03-08 深圳云天励飞技术股份有限公司 Image preprocessing device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5852672A (en) * 1995-07-10 1998-12-22 The Regents Of The University Of California Image system for three dimensional, 360 DEGREE, time sequence surface mapping of moving objects
CN1746923A (en) * 2004-09-10 2006-03-15 上海杰得微电子有限公司 Contraction of digital image circuit with adjustable proportion and accuracy
CN101060607A (en) * 2007-05-31 2007-10-24 友达光电股份有限公司 Image zooming device and its method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5852672A (en) * 1995-07-10 1998-12-22 The Regents Of The University Of California Image system for three dimensional, 360 DEGREE, time sequence surface mapping of moving objects
CN1746923A (en) * 2004-09-10 2006-03-15 上海杰得微电子有限公司 Contraction of digital image circuit with adjustable proportion and accuracy
CN101060607A (en) * 2007-05-31 2007-10-24 友达光电股份有限公司 Image zooming device and its method

Also Published As

Publication number Publication date
CN101556789A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
US8749667B2 (en) System and method for maintaining maximum input rate while up-scaling an image vertically
US8638353B2 (en) Video processing in a multi-participant video conference
US20040222941A1 (en) Multi-display architecture using single video controller
TWI524176B (en) Method and apparatus for display power management
CN101261740B (en) Processing method of an image storage
JP4346591B2 (en) Video processing apparatus, video processing method, and program
KR20150009128A (en) Image Processing Device, Image Processing System and Image Processing Method
US7868898B2 (en) Methods and apparatus for efficiently accessing reduced color-resolution image data
CN102263880A (en) Image scaling method and apparatus thereof
EP3084752A1 (en) Display system
CN101546527B (en) Liquid crystal display controller and image scaling method
CN101212680B (en) Image data storage access method and system
CN101562006A (en) Method and device for image scaling
CN110060643B (en) Data storage method and data storage system
US20070041662A1 (en) Efficient scaling of image data
CN101556789B (en) Image scaling control system and method
CN107657587A (en) Image processing method, apparatus and system
CN101304533A (en) Video processing apparatus
CN101127847A (en) A screen display synthesis method and synthesis device
CN107506119A (en) Picture display method, device, equipment and storage medium
CN101867808B (en) Method for accessing image data and relevant device thereof
CN104036754B (en) Share two scaler systems of row cache
KR102247741B1 (en) An image processor, a method of operating the image processor, and an application processor including the image processor
CN113658049A (en) Image transposition method, equipment and computer readable storage medium
CN101990102B (en) Data reading method and device on embedded equipment in video decoding process

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: 20100122

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

Effective date of registration: 20100122

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.