CN102065253A - Software and hardware coordinated image horizontal zooming method and device - Google Patents
Software and hardware coordinated image horizontal zooming method and device Download PDFInfo
- Publication number
- CN102065253A CN102065253A CN 200910198842 CN200910198842A CN102065253A CN 102065253 A CN102065253 A CN 102065253A CN 200910198842 CN200910198842 CN 200910198842 CN 200910198842 A CN200910198842 A CN 200910198842A CN 102065253 A CN102065253 A CN 102065253A
- Authority
- CN
- China
- Prior art keywords
- horizontal
- software
- hardware
- precision
- algorithm
- 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.)
- Granted
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Studio Circuits (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a software and hardware coordinated image horizontal zooming method and a software and hardware coordinated image horizontal zooming device. Video images are subjected to horizontal zooming processing by a software and hardware coordinated method. The software and hardware coordinated image horizontal zooming device converts N sections of input/output resolutions of an input image into N sections of output resolutions; and a part which has a complicated algorithm and is not needed to be processed in real time is implemented by a horizontal zooming program, and a filter interpolation part which has a relatively simple algorithm and is needed to be processed in real time is implemented by a horizontal zooming hardware module, so that hardware overhead is reduced and the cost performance for realizing the video image zooming function is improved. Furthermore, common linear and non-linear zooming algorithms are implemented by different circuits; however, the same parts of the linear and nonlinear algorithms are abstracted and are implemented by a uniform software algorithm and circuit, and the software and hardware overhead is reduced further.
Description
Technical field
The present invention relates to image scaling device, be specifically related to a kind of image level Zoom method and device of software-hardware synergism.
Background technology
In video playback, for adapting to different display unit, before broadcast, to pass through image zoom usually, make display effect better.LCD TV and other panel TV all have image zooming function at present, be used for guaranteeing the normal demonstration of the multiple resolution of different resolution input signal on LCD TV and other panel TV, some can also support plurality of display modes, as demonstration in 4: 3, full screen display isotype.The image-scaling method that relatively passes through in the prior art at first leaves video data in the buffer in, reads video data then from buffer, utilizes vertically scale unit and horizontal scaling unit successively to carry out vertically scale operation and horizontal scaling operation.For example the operation of the described image zoom of patent CN101179671A is adopted is to carry out horizontal scaling earlier, after carry out the method for vertically scale.And patent CN201075280Y adopts is to carry out vertically scale (convergent-divergent) earlier, after carry out horizontal scaling (row convergent-divergent).These processing methods all are with vertically scale and horizontal scaling separate processes, though it is more convenient that this method is handled, but because during corresponding different display mode, when particularly convergent-divergent in the horizontal direction may be linear scale or non-linear convergent-divergent, the method that this kind image zoom is handled just needs different circuit to realize the function of linear scale and non-linear convergent-divergent, therefore, in order to show that different patterns often needs to comprise linear and nonlinear convergent-divergent treatment circuit, thereby the change-over circuit that causes this class image zoom pattern is more complicated often, increases spending of hardware.In addition, thisly realize that with hardware the implementation method of zoom technology algorithm also needs to expend a large amount of hardware spendings, has further increased the cost of video scaling fully.
Summary of the invention
In order to overcome the existing excessive shortcoming of zoom technology hardware spending, the method that the invention provides a kind of processing of software-hardware synergism is cheaply finished the non-linear or linear horizontal scaling of video image, thereby satisfy present video and be input to the needs that TV shows the various patterns of conversion, comprise full frame, panorama, ordinary zoom, non-linear convergent-divergent or the like.Simultaneously, this also needs the software-hardware synergism processing to finish zoom function jointly.
Purpose of the present invention provides a kind of image level Zoom method of software-hardware synergism, may further comprise the steps: draw N section horizontal scaling ratio after the horizontal I/O resolution of the N section of input picture is calculated through software algorithm, according to described every section horizontal scaling ratio, finish image convergent-divergent in the horizontal direction with the method for hardware.The value of N is 3,5,7 or 9 in the horizontal I/O resolution of described N section.The horizontal I/O resolution of described N section is drawn by input pattern, display resolution and the display mode of display video.Described software algorithm is provided by following:
The first step,
ratio1=(srcsize1-1)*PRECISION/dessize1;
x1_1=PRECISION+ratio1*(dessize1+1);
x1_2=(srcsize1+srcsize2)*PRECISION-x1_1;
Second step,
ratio2=x1_2/(dessize2-1);
x2_1=x1_1+ratio2*dessize2;
x2_2=(srcsize1+srcsize2+srcsize3)*PRECISION-x2_1;
The M step,
ratioM=xL_2/(dessizeM-1);
xM_1=xL_1+ratioM*dessizeM;
xM_2=(srcsize1+srcsize2+…+srcsizeN)*PRECISION-xM_1;
The N step (M<N),
ratioN=x_M/(dessizeN-1);
Wherein,
1) L/M/N can be 1/2/3,3/4/5,5/6/7 or 7/8/9;
2) srcsize1, srcsize2 ..., srcsizeN is N section corresponding horizontal input resolution;
3) dessize1, dessize2 ..., dessizeN is the display resolution of N section corresponding horizontal output;
4) ratio1, ratio2 ..., ratioN is exactly N section corresponding horizontal zoom ratio;
5) PRECISION is the figure place that algorithm is realized precision, as 1024 expressions be 10 precision, 4096 expressions be 12 precision;
6) x1_1, x1_2 ..., xL_1, xL_2, parameters such as xM_1, xM_2 all are temporary variables.
Described method with hardware is finished the step of image convergent-divergent in the horizontal direction, comprising: according to described every section horizontal scaling ratio, produce the coefficient of corresponding filtering interpolation in real time with algorithm by hardware; According to the coefficient of described filtering interpolation, realize last image convergent-divergent in the horizontal direction by interpolation filter.Describedly produce in real time in the coefficient step of corresponding filtering interpolation with algorithm by hardware, described algorithm is bilinearity algorithm or bicubic side's algorithm.
Another object of the present invention provides a kind of horizontal scaling device of software-hardware synergism, comprise: primary control program, the N section I/O resolution that input picture is provided is to horizontal convergent-divergent program, and described horizontal scaling program draws N section horizontal scaling ratio with the horizontal I/O resolution of N section after computing; Memory cell is used for the operation result of temporary described horizontal scaling program; The horizontal scaling module according to the operation result of described horizontal scaling program, is carried out the zoom operations of horizontal direction to image.The value of N is 3,5,7 or 9 in the horizontal I/O resolution of described N section.Described primary control program draws the horizontal I/O resolution of described N section according to input pattern, display resolution and the display mode of display video.Described primary control program and described horizontal scaling program are arranged in the programmable storage.Described programmable storage is Flash or EEPROM.The algorithmic procedure of described horizontal scaling program is:
The first step,
ratio1=(srcsize1-1)*PRECISION/dessize1;
x1_1=PRECISION+ratio1*(dessize1+1);
x1_2=(srcsize1+srcsize2)*PRECISION-x1_1;
Second step,
ratio2=x1_2/(dessize2-1);
x2_1=x1_1+ratio2*dessize2;
x2_2=(srcsize1+srcsize2+srcsize3)*PRECISION-x2_1;
The M step,
ratioM=xL_2/(dessizeM-1);
xM_1=xL_1+ratioM*dessizeM;
xM_2=(srcsize1+srcsize2+…+srcsizeN)*PRECISION-xM_1;
The N step (M<N),
ratioN=x_M/(dessizeN-1);
Wherein,
1) L/M/N can be 1/2/3,3/4/5,5/6/7 or 7/8/9;
2) srcsize1, srcsize2 ..., srcsizeN is N section corresponding horizontal input resolution;
3) dessize1, dessize2 ..., dessizeN is the display resolution of N section corresponding horizontal output;
4) ratio1, ratio2 ..., ratioN is exactly N section corresponding horizontal zoom ratio;
5) PRECISION is the figure place that algorithm is realized precision, as 1024 expressions be 10 precision, 4096 expressions be 12 precision;
6) x1_1, x1_2 ..., xL_1, xL_2, parameters such as xM_1, xM_2 all are temporary variables.
Further, described horizontal scaling module comprises control section and interpolation filter, described control section is according to described horizontal scaling ratio, and the coefficient that computing provides correspondence through hardware algorithm is to described interpolation filter, and described interpolation filter is output image horizontal scaling data after treatment.Described hardware algorithm is bilinearity algorithm or bicubic side's algorithm.
Adopted the method for software-hardware synergism to carry out the processing of video image horizontal scaling among the present invention, the horizontal image device for zooming of this software-hardware synergism is the N section I/O conversion of resolution of input picture the zoom ratio of each section in the N section, utilize this algorithm complexity but do not need the part of processing in real time to realize with the horizontal scaling program, and the flat convergent-divergent hardware module of filtering interpolation part water simple relatively algorithm but that need handle in real time realizes, thereby reduced hardware spending widely, improved the cost performance that the video image zooming function realizes.Simultaneously, the present invention comes out and realizes that with unified software algorithm and circuit this has also further reduced hardware spending the same section of linear and nonlinear algorithm is abstract.
Description of drawings
The horizontal image device for zooming schematic diagram of Fig. 1 present embodiment software-hardware synergism.
The horizontal scaling programmed algorithm result of using in Fig. 2 present embodiment.
The horizontal scaling module of using in Fig. 3 present embodiment.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Present embodiment provides a kind of horizontal image Zoom method and device of software-hardware synergism, as the block diagram of the implement device of the software-hardware synergism horizontal scaling of Fig. 1.Video input stream comprises input vertical sync signal vsync_in, horizontal synchronization input signal hsync_in, video input data enable signal de_in, signals such as video input data signal data_in.
The first step,
ratio1=(srcsize1-1)*PRECISION/dessize1;
x1_1=PRECISION+ratio1*(dessize1+1);
x1_2=(srcsize1+srcsize2)*PRECISION-x1_1;
Second step,
ratio2=x1_2/(dessize2-1);
x2_1=x1_1+ratio2*dessize2;
x2_2=(srcsize1+srcsize2+srcsize3)*PRECISION-x2_1;
The M step,
ratioM=xL_2/(dessizeM-1);
xM_1=xL_1+ratioM*dessizeM;
xM_2=(srcsize1+srcsize2+…+srcsizeN)*PRECISION-xM_1;
The N step,
ratioN=x_M/(dessizeN-1);
Wherein,
1.L/M/N can be 1/2/3,3/4/5,5/6/7 or 7/8/9 etc.,
2.srcsize1, srcsize2 ..., srcsizeN is N section corresponding horizontal input resolution;
3.dessize1, dessize2 ..., dessizeN is the display resolution of N section corresponding horizontal output;
4.ratio1, ratio2 ..., ratioN is exactly N section corresponding horizontal zoom ratio;
5.PRECISION be the figure place that algorithm is realized precision, as 1024 expressions be 10 precision, 4096 expressions be 12 precision;
6.x1_1, x1_2 ..., xL_1, xL_2, parameters such as xM_1, xM_2 all are temporary variables, only use in the horizontal scaling program, do not offer hardware.
Above-mentioned execution result is temporarily stored in register, provides the result of N section horizontal scaling ratio to horizontal Zoom module 3 by register.As shown in Figure 3, horizontal scaling module 3 comprises control section 30 and interpolation filter 31 two parts, and control section 30 carries out the processing of hardware aspect according to the horizontal scaling ratio of the input that register provided.Control section 30 produces two coefficients in real time according to the bilinearity algorithm and gives interpolation filter 31 or give interpolation filter 31 according to four coefficients of the real-time generation of bicubic side's algorithm.The data of interpolation filter 31 outputs are the data behind the video scaling.The final video inlet flow is finished image convergent-divergent in the horizontal direction under the control of hardware, and the module of video output streams to next stage is provided.The video output streams that is provided comprises output vertical synchronizing signal vsync_out, horizontal synchronization output signal hsync_out, video output data enable signal de_out, signals such as video output data signal data_out.
Under situation without departing from the spirit and scope of the present invention, can also constitute many very embodiment of big difference that have.Should be appreciated that except as defined by the appended claims, the invention is not restricted at the specific embodiment described in the specification.
Claims (16)
1. the image level Zoom method of a software-hardware synergism, may further comprise the steps: draw N section horizontal scaling ratio after the horizontal I/O resolution of the N section of input picture is calculated through software algorithm, according to described every section horizontal scaling ratio, finish image convergent-divergent in the horizontal direction with the method for hardware.
2. the image level Zoom method of software-hardware synergism as claimed in claim 1 is characterized in that, the value of N is 3,5,7 or 9 in the horizontal I/O resolution of described N section.
3. the image level Zoom method of software-hardware synergism as claimed in claim 1 is characterized in that, the horizontal I/O resolution of described N section is drawn by input pattern, display resolution and the display mode of display video.
4. the image level Zoom method of software-hardware synergism as claimed in claim 1 is characterized in that, described software algorithm is provided by following:
The first step,
ratio1=(srcsize1-1)*PRECISION/dessize1;
x1_1=PRECISION+ratio1*(dessize1+1);
x1_2=(srcsize1+srcsize2)*PRECISION-x1_1;
Second step,
ratio2=x1_2/(dessize2-1);
x2_1=x1_1+ratio2*dessize2;
x2_2=(srcsize1+srcsize2+srcsize3)*PRECISION-x2_1;
The M step,
ratioM=xL_2/(dessizeM-1);
xM_1=xL_1+ratioM*dessizeM;
xM_2=(srcsize1+srcsize2+…+srcsizeN)*PRECISION-xM_1;
The N step (M<N),
ratioN=x_M/(dessizeN-1);
Wherein,
1) L/M/N can be 1/2/3,3/4/5,5/6/7 or 7/8/9;
2) srcsize1, srcsize2 ..., srcsizeN is N section corresponding horizontal input resolution;
3) dessize1, dessize2 ..., dessizeN is the display resolution of N section corresponding horizontal output;
4) ratio1, ratio2 ..., ratioN is exactly N section corresponding horizontal zoom ratio;
5) PRECISION is the figure place that algorithm is realized precision, as 1024 expressions be 10 precision, 4096 expressions be 12 precision;
6) x1_1, x1_2 ..., xL_1, xL_2, parameters such as xM_1, xM_2 all are temporary variables.
5. the image level Zoom method of software-hardware synergism as claimed in claim 1, it is characterized in that, described method with hardware is finished the step of image convergent-divergent in the horizontal direction, comprise:, produce the coefficient of corresponding filtering interpolation in real time with algorithm by hardware according to described every section horizontal scaling ratio; According to the coefficient of described filtering interpolation, realize last image convergent-divergent in the horizontal direction by interpolation filter.
6. the image level Zoom method of software-hardware synergism as claimed in claim 5 is characterized in that, describedly produces in real time in the coefficient step of corresponding filtering interpolation with algorithm by hardware, and described algorithm is the bilinearity algorithm.
7. the image level Zoom method of software-hardware synergism as claimed in claim 5 is characterized in that, describedly produces in real time in the coefficient step of corresponding filtering interpolation with algorithm by hardware, and described algorithm is bicubic side's algorithm.
8. the horizontal scaling device of a software-hardware synergism is characterized in that, comprising:
Primary control program, the N section I/O resolution that input picture is provided are to horizontal convergent-divergent program, and described horizontal scaling program draws N section horizontal scaling ratio N section horizontal scaling ratio with the horizontal I/O resolution of N section after computing;
Memory cell is used for the operation result of temporary described horizontal scaling program;
The horizontal scaling module according to the operation result of described horizontal scaling program, is carried out the zoom operations of horizontal direction to image.
9. the image level device for zooming of software-hardware synergism as claimed in claim 8 is characterized in that, the value of N is 3,5,7 or 9 in the horizontal I/O resolution of described N section.
10. the image level device for zooming of software-hardware synergism as claimed in claim 8 is characterized in that, described primary control program draws the horizontal I/O resolution of described N section according to input pattern, display resolution and the display mode of display video.
11. the image level device for zooming of software-hardware synergism as claimed in claim 8 is characterized in that, described primary control program and described horizontal scaling program are arranged in the programmable storage.
12. the image level device for zooming of software-hardware synergism as claimed in claim 8 is characterized in that, the algorithmic procedure of described horizontal scaling program is:
The first step,
ratio1=(srcsize1-1)*PRECISION/dessize1;
x1_1=PRECISION+ratio1*(dessize1+1);
x1_2=(srcsize1+srcsize2)*PRECISION-x1_1;
Second step,
ratio2=x1_2/(dessize2-1);
x2_1=x1_1+ratio2*dessize2;
x2_2=(srcsize1+srcsize2+srcsize3)*PRECISION-x2_1;
The M step,
ratioM=xL_2/(dessizeM-1);
xM_1=xL_1+ratioM*dessizeM;
xM_2=(srcsize1+srcsize2+…+srcsizeN)*PRECISION-xM_1;
The N step (M<N),
ratioN=x_M/(dessizeN-1);
Wherein,
1) L/M/N can be 1/2/3,3/4/5,5/6/7 or 7/8/9;
2) srcsize1, srcsize2 ..., srcsizeN is N section corresponding horizontal input resolution;
3) dessize1, dessize2 ..., dessizeN is the display resolution of N section corresponding horizontal output;
4) ratio1, ratio2 ..., ratioN is exactly N section corresponding horizontal zoom ratio;
5) PRECISION is the figure place that algorithm is realized precision, as 1024 expressions be 10 precision, 4096 expressions be 12 precision;
6) x1_1, x1_2 ..., xL_1, xL_2, parameters such as xM_1, xM_2 all are temporary variables.
13. the image level device for zooming of software-hardware synergism as claimed in claim 8, it is characterized in that, described horizontal scaling module comprises control section and interpolation filter, described control section is according to described horizontal scaling ratio, the coefficient that computing provides correspondence through hardware algorithm is to described interpolation filter, and described interpolation filter is output image horizontal scaling data after treatment.
14. the image level device for zooming of software-hardware synergism as claimed in claim 11 is characterized in that, described programmable storage is Flash or EEPROM.
15. the image level device for zooming of software-hardware synergism as claimed in claim 13 is characterized in that, described hardware algorithm is the bilinearity algorithm.
16. the image level device for zooming of software-hardware synergism as claimed in claim 13 is characterized in that, described hardware algorithm is bicubic side's algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910198842 CN102065253B (en) | 2009-11-17 | 2009-11-17 | Software and hardware coordinated image horizontal zooming method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910198842 CN102065253B (en) | 2009-11-17 | 2009-11-17 | Software and hardware coordinated image horizontal zooming method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102065253A true CN102065253A (en) | 2011-05-18 |
CN102065253B CN102065253B (en) | 2013-02-20 |
Family
ID=44000332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910198842 Active CN102065253B (en) | 2009-11-17 | 2009-11-17 | Software and hardware coordinated image horizontal zooming method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102065253B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222317A (en) * | 2011-06-22 | 2011-10-19 | 王洪剑 | Image scaling method and system |
CN102891998A (en) * | 2011-07-22 | 2013-01-23 | 安凯(广州)微电子技术有限公司 | Image zooming and encoding method and system |
CN111128093A (en) * | 2019-12-20 | 2020-05-08 | 广东高云半导体科技股份有限公司 | Image zooming circuit, image zooming controller and display device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101276573B (en) * | 2007-03-30 | 2010-08-25 | 上海奇码数字信息有限公司 | Apparatus and method for zooming all-purpose image |
CN101197957A (en) * | 2007-12-25 | 2008-06-11 | 上海广电集成电路有限公司 | Non-linear image zooming method and system |
CN101477678B (en) * | 2008-12-04 | 2011-11-23 | 上海大学 | Blind detection method for digital image scaling factor |
-
2009
- 2009-11-17 CN CN 200910198842 patent/CN102065253B/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222317A (en) * | 2011-06-22 | 2011-10-19 | 王洪剑 | Image scaling method and system |
CN102891998A (en) * | 2011-07-22 | 2013-01-23 | 安凯(广州)微电子技术有限公司 | Image zooming and encoding method and system |
CN102891998B (en) * | 2011-07-22 | 2015-08-05 | 安凯(广州)微电子技术有限公司 | A kind of image scaling, coding method and system |
CN111128093A (en) * | 2019-12-20 | 2020-05-08 | 广东高云半导体科技股份有限公司 | Image zooming circuit, image zooming controller and display device |
Also Published As
Publication number | Publication date |
---|---|
CN102065253B (en) | 2013-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8570334B2 (en) | Image processing device capable of efficiently correcting image data and imaging apparatus capable of performing the same | |
US6411333B1 (en) | Format conversion using patch-based filtering | |
US20050248590A1 (en) | Method and system for scaling, filtering, scan conversion, panoramic scaling, YC adjustment, and color conversion in a display controller | |
US20090268086A1 (en) | Method and system for scaling, filtering, scan conversion, panoramic scaling, yc adjustment, and color conversion in a display controller | |
CN103379344B (en) | Semiconductor equipment, electronic installation and image processing method | |
CN103248797A (en) | Video resolution enhancing method and module based on FPGA (field programmable gate array) | |
JP2004064334A (en) | Image pick-up apparatus | |
CN104836974A (en) | Video player, display device, video playing system and video playing method | |
CN102065253B (en) | Software and hardware coordinated image horizontal zooming method and device | |
CN100473143C (en) | Apparatus for implementing video frequency sequential to interlaced conversion and converting method | |
EP2346240B1 (en) | Image processing method and device, and imaging apparatus using the image processing device | |
CN103793879A (en) | Digital image anti-distortion processing method | |
CN102447887B (en) | Method and device for changing image length-width ratio in video signals of security system | |
CN101257588B (en) | Image processing system and method for processing television divided pictures | |
CN106161987A (en) | A kind of many images Display on the same screen method and many images Display on the same screen system | |
WO2011121563A1 (en) | Detecting saliency in an image | |
JP2009177652A (en) | Data processing apparatus | |
JP4697094B2 (en) | Image signal output apparatus and control method thereof | |
JP2004354593A5 (en) | ||
US20030016389A1 (en) | Image processing device | |
CN101567963B (en) | Interpolated frame generating method | |
JP4487804B2 (en) | Image signal conversion method and image signal conversion apparatus | |
WO2012060271A1 (en) | Image processing method, image processing device, and imaging device | |
TWI351873B (en) | A picture scaling device and a picture scaling met | |
JP4424097B2 (en) | Electronic zoom device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 214135 -6, Linghu Avenue, Wuxi Taihu international science and Technology Park, Wuxi, Jiangsu, China, 180 Patentee after: China Resources micro integrated circuit (Wuxi) Co., Ltd Address before: 301 room 214000, information industry zone, Wuxi New District, Jiangsu Patentee before: WUXI CHINA RESOURCES SEMICO Co.,Ltd. |