CN106303583B - Image data transmission bandwidth distribution method and device based on image dynamic scaling - Google Patents

Image data transmission bandwidth distribution method and device based on image dynamic scaling Download PDF

Info

Publication number
CN106303583B
CN106303583B CN201610694912.2A CN201610694912A CN106303583B CN 106303583 B CN106303583 B CN 106303583B CN 201610694912 A CN201610694912 A CN 201610694912A CN 106303583 B CN106303583 B CN 106303583B
Authority
CN
China
Prior art keywords
window
display window
data
display
amount
Prior art date
Application number
CN201610694912.2A
Other languages
Chinese (zh)
Other versions
CN106303583A (en
Inventor
陈贤斌
Original Assignee
浙江宇视科技有限公司
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 浙江宇视科技有限公司 filed Critical 浙江宇视科技有限公司
Priority to CN201610694912.2A priority Critical patent/CN106303583B/en
Publication of CN106303583A publication Critical patent/CN106303583A/en
Application granted granted Critical
Publication of CN106303583B publication Critical patent/CN106303583B/en

Links

Abstract

The embodiment of the present invention provides a kind of image data transmission bandwidth distribution method and device based on image dynamic scaling.The described method includes: judge decoding data amount whether be more than data/address bus transmission bandwidth;When the decoding data amount is more than the transmission bandwidth of data/address bus, the quantity of display window and window effective quantity on painting canvas are obtained;Obtain the covering relation on the painting canvas between each display window;According to the covering relation between display window each on the painting canvas, the zoom factor of each display window is calculated;It is that each window creates corresponding data channel, and transmits data bandwidth according to the zoom factor of each display window and window effective quantity for the corresponding data channel distribution of each display window from the transmission bandwidth of the data/address bus according to the quantity of the display window.The above method and device can guarantee that the content in the transmission bandwidth deficiency of data/address bus, in all video channels can be shown.

Description

Image data transmission bandwidth distribution method and device based on image dynamic scaling

Technical field

The present invention relates to field of data transmission, pass in particular to a kind of image data based on image dynamic scaling Defeated bandwidth allocation methods and device.

Background technique

In the design of aobvious control class product, the transmission bandwidth of the data/address bus of decoding chip and the decoding capability of decoding chip Size can not sometimes accomplish identical.When the transmission bandwidth for encountering data/address bus is less than decoding capability, for example, one Support the decoding chip of PCI-Express2.02X standard, the transmission bandwidth of data/address bus is 8Gbit, and decoding chip Decoding capability reaches 16Gbit.Can thus exist when decoded image data turns to data transmission will appear data/address bus The problem of transmission bandwidth deficiency.

Summary of the invention

In view of this, the embodiment of the present invention be designed to provide it is a kind of can the transmission bandwidth of data/address bus be less than decoding When ability, guarantee the image data transmission bandwidth based on image dynamic scaling that the content in all video channels can be shown Distribution method and device.

A preferred embodiment of the present invention provides a kind of image data transmission bandwidth distribution side based on image dynamic scaling Method, which comprises

Judge decoding data amount whether be more than data/address bus transmission bandwidth;

The decoding data amount be more than data/address bus transmission bandwidth when, obtain on painting canvas the quantity of display window and Window effective quantity;

Obtain the covering relation on the painting canvas between each display window;

According to the covering relation between display window each on the painting canvas, the zoom factor of each display window is calculated;

It is that each window creation is corresponding from the transmission bandwidth of the data/address bus according to the quantity of the display window Data channel, and be the corresponding data of each display window according to the zoom factor of each display window and window effective quantity Channel distribution transmission data bandwidth.

Another preferred embodiment of the present invention provides a kind of image data transmission bandwidth distribution based on image dynamic scaling Device, described device include:

Judgment module, for judge decoding data amount whether be more than data/address bus transmission bandwidth;

First obtains module, for obtaining in painting canvas when the decoding data amount is more than the transmission bandwidth of data/address bus The quantity and window effective quantity of upper display window;

Second obtains module, for obtaining the covering relation on the painting canvas between each display window;

Zoom factor determining module, for calculating each according to the covering relation between display window each on the painting canvas The zoom factor of display window;And

Data bandwidth allocation module, for the quantity according to the display window from the transmission bandwidth of the data/address bus Corresponding data channel is created for each window, and is every according to the zoom factor and window effective quantity of each display window The corresponding data channel distribution transmission data bandwidth of a display window.

Compared with prior art, the image data transmission bandwidth point provided in an embodiment of the present invention based on image dynamic scaling Method of completing the square and device.When the decoding data amount of decoding chip output is greater than the transmission bandwidth of data/address bus, obtain on painting canvas The quantity and window effective quantity of display window;And it obtains the covering relation on the painting canvas between each display window and is covered according to this The zoom factor for each display window that lid relationship obtains;Finally had according to the zoom factor of each display window and window Effect amount is the corresponding data channel distribution transmission data bandwidth of each display window.It can guarantee the transmission bandwidth in data/address bus When insufficient, the content in all video channels can be shown.

To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.

Detailed description of the invention

In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.

Fig. 1 is the block diagram for a kind of electronic equipment that present pre-ferred embodiments provide.

Fig. 2 is a kind of functional block diagram of image data transmission bandwidth distributor shown in Fig. 1.

Fig. 3 is another functional block diagram of image data transmission bandwidth distributor shown in Fig. 1.

Overlapped one of schematic diagram between two windows that Fig. 4 provides for present pre-ferred embodiments.

The two of overlapped schematic diagram between two windows that Fig. 5 provides for present pre-ferred embodiments.

The three of overlapped schematic diagram between two windows that Fig. 6 provides for present pre-ferred embodiments.

The schematic diagram of covering relation between multiple windows that Fig. 7 provides for present pre-ferred embodiments.

Fig. 8 is that the positional relationship of the characteristic point and covering window in the capped window that present pre-ferred embodiments provide is shown It is intended to.

Fig. 9 is the method flow diagram for the image data transmission bandwidth distribution that present pre-ferred embodiments provide.

Figure 10 is a kind of flow diagram of sub-step of step S220 in Fig. 9.

Figure 11 is a kind of flow diagram of sub-step of step S230 in Fig. 9.

Figure 12 is a kind of flow diagram of sub-step of step S250 in Fig. 9.

Main element symbol description

Specific embodiment

Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.

It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.

Fig. 1 is please referred to, Fig. 1 is the block diagram for the electronic equipment 100 that present pre-ferred embodiments provide.The present invention is real Applying electronic equipment 100 described in example can be aobvious control class product, for example, the electronic equipment may be, but not limited to, intelligent hand Machine, PC (personal computer, PC), tablet computer, personal digital assistant (personal digital Assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..As shown in Figure 1, the electronics Equipment 100 includes: memory 110, processor 120, network module 130 and decoding chip 140.

The memory 110, processor 120, network module 130 and decoding chip 140 are direct or indirect between each other Ground is electrically connected, to realize the transmission or interaction of data.For example, these elements between each other can be total by one or more communication Line or signal wire, which are realized, to be electrically connected.Image data transmission bandwidth distributor 200, described image are stored in memory 110 Data transfer bandwidth distributor 200 includes that at least one can be stored in described deposit in the form of software or firmware (firmware) Software function module in reservoir 110, the processor 120 by the software program that is stored in memory 110 of operation and Module, such as the image data transmission bandwidth distributor 200 in the embodiment of the present invention, thereby executing various function application and number According to processing, i.e. image processing method in the realization embodiment of the present invention.

Wherein, the memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 110 is for storing program, the processor 120 after receiving and executing instruction, Execute described program.Further, the software program in above-mentioned memory 110 and module may also include operating system 111, May include the various component softwares for management system task (such as memory management, storage equipment control, power management etc.) with/ Or driving, and can mutually be communicated with various hardware or component software, to provide the running environment of other software component.

The processor 120 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 120 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..Can also be digital signal processor (DSP)), it is specific integrated circuit (ASIC), ready-made Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is that microprocessor or the processor are also possible to any conventional processor etc..

Network module 130 is used to establish the communication connection between electronic equipment 100 and external communications terminals by network, real The transmitting-receiving operation of existing network signal and data.Above-mentioned network signal may include wireless signal or wire signal.

Decoding chip 140 is used to be decoded processing to needing to carry out the video resource that window is shown.

It is appreciated that structure shown in FIG. 1 is only to illustrate, electronic equipment 100 may also include it is more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its Combination is realized.

Referring to Fig. 2, being the image data transmission bandwidth distributor shown in FIG. 1 that present pre-ferred embodiments provide 200 functional block diagram.Described image data transfer bandwidth distributor 200 includes that judgment module 220, first obtains module 230, second module 240, zoom factor determining module 250 and data bandwidth allocation module 260 are obtained.

The judgment module 220 be used for judge decoding data amount whether be more than data/address bus transmission bandwidth.

Specifically, the judgment module 220 by the decoding data amount of 140 unit time of decoding chip (for example, 1 second) and solves The transmission bandwidth of code 140 data/address bus of chip is compared.

Referring to figure 3., in the present embodiment, described image data transfer bandwidth distributor 200 can also include: decoding Data volume obtains module 210, and the decoding data amount obtains the decoding data that module 210 is used to obtain the output of decoding chip 140 Amount.

Wherein, the decoding data amount that the decoding chip 140 exports refers to the decoding chip 140 in practical decoding business Needed for bandwidth value, the decoding data amount described in different decoding business can be different.

Described first, which obtains module 230, is used to obtain when the decoding data amount is more than the transmission bandwidth of data/address bus The quantity of display window and window effective quantity on painting canvas.

The first acquisition module 230 can be informed in the picture by the behavior operation that detection window turns on or off The quantity of display window on cloth.Wherein, the painting canvas refers to the display equipment (ratio for showing one or more display window Such as, video wall, projection screen etc.).

In the present embodiment, the window that the first acquisition module 230 can also obtain each display window on painting canvas is effective Amount, wherein window effective quantity refers to the actual pixel value that image is shown on window.Specifically, described referring again to Fig. 3 First acquisition module 230 may include: Comparative sub-module 231 and window effective quantity acquisition submodule 232.

The Comparative sub-module 231 for the display window on the painting canvas amount of pixels in shared region with it is defeated Enter the amount of pixels of video image frame.

The window effective quantity acquisition submodule 232, for working as the display window shared region on the painting canvas When amount of pixels is greater than the amount of pixels of the inputted video image frame, obtain described in the amount of pixels conduct of the inputted video image frame Window effective quantity.The window effective quantity acquisition submodule 232 is also used to when display window institute occupied area on the painting canvas When the amount of pixels in domain is less than the amount of pixels of the inputted video image frame, display window institute occupied area on the painting canvas is obtained The amount of pixels in domain is as the window effective quantity.

The second acquisition module 240 is used to obtain the covering relation on the painting canvas between each display window.

Referring again to Fig. 3, the second acquisition module 240 may include that overlapping relation determines submodule 241 and covering relation Determine submodule 242.

The overlapping relation determines submodule 241 for being shown by each for each display window on the painting canvas Show the positional relationship between the vertex of window and the vertex of other display windows, determines the display window and other display windows Between overlapping relation.

Referring to figure 4., Fig. 5 and Fig. 6, by taking the overlapping relation judgement between two display windows (window A and window B) as an example, The overlapping relation determines that submodule 241 determines that the concrete mode of overlapping relation is as follows.

The overlapping relation determines that submodule 241 obtains the coordinate on four vertex of window A, window B, and according to the window The apex coordinate of mouth A and window B judges the overlapping relation between window A and window B.

Specifically, please also refer to Fig. 4, judge whether four apex coordinates of window A fall in the condition in the region of window B such as Under:

Assuming that the window A and window B are located at the fourth quadrant of coordinate system.

One: Bx0 < Ax0 of condition < Bx1, while By0 < Ay0 < By1 can determine that (Ax0, Ay0) point is fallen in the region of B (such as Fig. 5, A1)。

Two: Bx0 < Ax0 of condition < Bx1, while By0 < Ay1 < By1 can determine that (Ax0, Ay0) point is fallen in the region of B (such as Fig. 5, A2)。

Three: Bx0 < Ax1 of condition < Bx1, while By0 < Ay1 < By1 can determine that (Ax0, Ay0) point is fallen in the region of B (such as Fig. 5, A3)。

Four: Bx0 < Ax1 of condition < Bx1, while By0 < Ay0 < By1 can determine that (Ax0, Ay0) point is fallen in the region of B (such as Fig. 5, A4)。

Wherein, A1、A2、A3And A4Indicate different lap positions of the window A relative to window B.

Referring again to Fig. 5 and Fig. 6, judge the apex coordinate of window B whether fall in the region of window A condition it is as follows:

Five: Ax0 < Bx0 of condition < Ax1, while Ay0 < By0 < Ay1 can determine that (Bx0, By0) point falls in the region of window A It is interior.

Six: Ax0 < Bx0 of condition < Ax1, while Ay0 < By1 < Ay1 can determine that (Bx0, By0) point falls in the region of window A It is interior.

Seven: Ax0 < Bx1 of condition < Ax1, while Ay0 < By1 < Ay1 can determine that (Bx0, By0) point falls in the region of window A It is interior.

Eight: Ax0 < Bx1 of condition < Ax1, while Ay0 < By0 < Ay1 can determine that (Bx0, By0) point falls in the region of window A It is interior.

As long as meeting any one condition in one~condition of above-mentioned condition eight can determine that the window A and window B is deposited In overlapping relation.

Although above-mentioned judgment method is same it should be understood that above-mentioned be only illustrated two windows overlay relationships Sample is suitable for the judgement of overlapping relation between more than two windows.Meanwhile aforesaid way is intended merely to two windows overlays of description and closes A kind of embodiment of system can also carry out two windows overlays using other way in the other embodiment of the present embodiment The judgement of relationship.For example, can individually show (i.e. window according to display area of two windows on the painting canvas and two windows Mouthful display completely) when the sum of display area be compared.Specifically, if, two windows (window A and window B) are described Display area on painting canvas is m, and display area when window A is individually shown is l, and display area when window B is individually shown is K, as m < l+k, there are overlapping relations on the painting canvas with window B by window A, and as m=l+k, window A and window B are in institute It states and overlapping relation is not present on painting canvas.

The covering relation determines submodule 242 for there are Chong Die between the display window and other display windows When relationship, by the opening sequencing of each display window and other display windows, determine that the display window is shown with other Show the covering relation between window.

Specifically, the covering relation determines that submodule 242 carries out the window according to the sequencing that window is opened The number of number from small to large, wherein the digital scope of serial number can be 1~108.

When, there are when overlapping relation, the covering relation determines that submodule 242 adjusts the serial number of window between window It is whole.

In the present embodiment, the covering relation determines that mode that submodule 242 is adjusted the serial number of window can be with It is, in two windows overlays, using the low window policy of the high window covering serial number of serial number.Specific strategy is as follows: from selected Window begin stepping through, judge whether there is serial number higher than this window serial number window and this windows overlay, if it is present this Window is lower windows.If it does not exist, then this window is parent window.Wherein, the window of maximum serial number (is finally opened Window or selected window) it must be parent window.In the present embodiment, one of them window is selected from the window having already turned on The movement of mouth may be considered and will reopen window after the close.

It is illustrated below, be elected in after some window, set current highest window serial number for its serial number, be greater than the window The window serial number of the window of the former serial number of mouth successively drops 1, and the window serial number less than the window of the window original serial number is constant.Please refer to figure 7, for example, as window C in choosing, corresponding window serial number variation such as table 1:

Window A Window B Window C Window D Window E Former serial number 1 2 3 4 5 New serial number 1 2 5 3 4

Table 1

Using the order traversal of serial number from big to small, window and this window of the serial number higher than this window serial number are judged whether there is It is salty folded, finally obtain the covering relation of all windows.

Zoom factor determining module 250 is used to be calculated each according to the covering relation between display window each on the painting canvas The zoom factor of a display window.

In the present embodiment, the zoom factor determining module 250 is by setting specific feature in capped window Point, and according to the quantity of characteristic point in overlay area, determine the zoom factor of the capped window.Wherein, described capped Window refers to the display window that display area is blocked, and the overlay area is the region being blocked in the capped window.

Specifically, the zoom factor determining module 250 can calculate the scaling of each display window in the following ways Coefficient.

First set the zoom factor (such as R=1) of parent window.

The zoom factor of lower windows is reset, specifically, the zoom factor of lower windows can be divided into multistage (ratio Such as, 3 grades), for example, R=0.75, R=0.5, R=0.25 (classification is different, and R can set different range).Please refer to Fig. 8, will under Layer window edge Along ent and central point are defined as 9 axis points (stain), the central point definition in each region after the window quartering For 4 punctuates (white point).Zoom factor is determined according to the quantity that the axis of lower windows point and punctuate are fallen in parent window.

Specific rules can be such that

Zoom factor be 0.75 the case where include:

When lower windows have 1 axis point to fall in parent window;

When lower windows have 1 punctuate to fall in parent window;

When lower windows have 2 axis points to fall in parent window;

When lower windows have 1 axis point and 1 punctuate to fall in parent window.

Zoom factor be 0.5 the case where include:

When lower windows have 3 axis points to fall in parent window;

When lower windows have 2 punctuates to fall in parent window;

When lower windows have 2 axis points and 1 punctuate to fall in parent window;

When lower windows have 1 axis point and 2 punctuates to fall in parent window.

Zoom factor be 0.25 the case where include:

When lower windows have 4 or more points to fall in parent window;

When lower windows have 3 or more to fall in parent window.

Certainly, the setting of above-mentioned zoom factor is only to illustrate, and in the other embodiment of the present embodiment, can also be adopted The setting of coefficient is zoomed in and out with other modes.For example, the zoom factor determining module 250 accounted for according to overlay area it is coating The area of lid window determines the zoom factor of the capped window.

The above method is different according to attention rate of the user to upper and lower level window, by the band of the low lower windows of user's attention rate Wide resource is suitably reduced, and bandwidth resources are tilted to parent window, so that better video output can be presented in parent window Effect.

The data bandwidth allocation module 260 is used for the transmission according to the quantity of the display window from the data/address bus It is the corresponding data channel of each window creation in bandwidth, and effective according to the zoom factor and window of each display window Amount is the corresponding data channel distribution transmission data bandwidth of each display window.

Referring once again to Fig. 3, in the present embodiment, the data bandwidth allocation module 260 may include computational submodule 261, summation submodule 262 and bandwidth calculation submodule 263.

The computational submodule 261 is used to calculate single window contracting according to the zoom factor and window effective quantity of single window Window effective quantity after putting.

Summation submodule 262 is used to sum the window effective quantity after single window scaling to obtain window a effective amount of Summation.Specific formula is as follows:

Vs=Va*Ra+Vb*Rb+Vc*Rc+......

Wherein, VsFor a effective amount of summation of window, VaFor the window effective quantity of display window A, RaFor the contracting of display window A Put coefficient, VbFor the window effective quantity of display window B, RbFor the zoom factor of display window B, VcWindow for display window C has Effect amount, RcFor the zoom factor of display window C.

Bandwidth calculation submodule 263 is used for according to the window effective quantity after a effective amount of summation of window, single window scaling And the transmission bandwidth of data/address bus calculates the transmission data bandwidth of the corresponding data channel distribution of single display window.

The bandwidth calculation submodule 263 obtains the transmission data bandwidth of the corresponding data channel distribution of single display window Calculation formula it is as follows:

Wa=Va*Ra/Vs*S

Wherein, WaFor the transmission data bandwidth of the corresponding data channel distribution of display window A, VaFor the window of display window A Effective quantity, RaFor the zoom factor of display window A, VsFor a effective amount of summation of window, S is the transmission bandwidth of data/address bus.

Fig. 9 is please referred to, the embodiment of the present invention also provides a kind of image data transmission bandwidth point based on image dynamic scaling The detailed process of method of completing the square, the method is as follows.

Step S209 obtains the decoding data amount of decoding chip output.

Step S210, judge decoding data amount whether be more than data/address bus transmission bandwidth.

Step S220 obtains the display window on painting canvas when the decoding data amount is more than the transmission bandwidth of data/address bus The quantity and window effective quantity of mouth.

Figure 10 is please referred to, in the present embodiment, step S220 may include sub-step S221, sub-step S222 and sub-step S223。

Sub-step S221, judges whether the amount of pixels in the display window shared region on the painting canvas is greater than input view The amount of pixels of frequency picture frame.

Specifically, when the amount of pixels in the display window shared region on the painting canvas is greater than the inputted video image Enter sub-step S222 when the amount of pixels of frame.Described in being less than when the amount of pixels in the display window shared region on the painting canvas Enter sub-step S223 when the amount of pixels of inputted video image frame.

Sub-step S222 obtains the amount of pixels of the inputted video image frame as the window effective quantity.

Sub-step S223, the amount of pixels for obtaining the display window shared region on the painting canvas have as the window Effect amount.

Step S230 obtains the covering relation on the painting canvas between each display window.

Figure 11 is please referred to, in the present embodiment, step S230 may include sub-step S231 and sub-step S232.

Sub-step S231, for each display window on the painting canvas, by the vertex of each display window with it is other Positional relationship between the vertex of display window determines the overlapping relation between the display window and other display windows.

Sub-step S232 is shown there are when overlapping relation between the display window and other display windows by described The opening sequencing for showing window Yu other display windows determines that the covering between the display window and other display windows is closed System.

Step S240 calculates the contracting of each display window according to the covering relation between display window each on the painting canvas Put coefficient.

Specifically, the mode that step S240 calculates the zoom factor of each display window can be, in capped window Specific characteristic point is set, and according to the quantity of characteristic point in overlay area, determines the zoom factor of the capped window.? It can be, the area of capped window is accounted for according to overlay area, determine the zoom factor of the capped window.

Step S250 is each window wound from the transmission bandwidth of the data/address bus according to the quantity of the display window Corresponding data channel is built, and is each display window pair according to the zoom factor of each display window and window effective quantity The data channel distribution transmission data bandwidth answered.

Figure 12 is please referred to, in the present embodiment, step S250 may include sub-step S251, sub-step S252 and sub-step S253。

Sub-step S251, the window after single window scaling is calculated according to the zoom factor of single window and window effective quantity Effective quantity.

Sub-step S252 sums the window effective quantity after single window scaling to obtain a effective amount of summation of window.

Sub-step S253, according to the window effective quantity and data/address bus after a effective amount of summation of window, single window scaling Transmission bandwidth calculate the transmission data bandwidth of single display window corresponding data channel distribution.

Specifically, the calculation formula of the transmission data bandwidth of the corresponding data channel distribution of single display window is as follows.

Wa=Va*Ra/Vs*S

Wherein, WaFor the transmission data bandwidth of the corresponding data channel distribution of display window A, VaFor the window of display window A Effective quantity, RaFor the zoom factor of display window A, VsFor a effective amount of summation of window, S is the transmission bandwidth of data/address bus.

In conclusion the image data transmission bandwidth distribution method provided in an embodiment of the present invention based on image dynamic scaling And device.When the decoding data amount of decoding chip output is greater than the transmission bandwidth of data/address bus, the display window on painting canvas is obtained The quantity and window effective quantity of mouth;And obtain the covering relation on the painting canvas between each display window and according to the covering relation The zoom factor of obtained each display window;Finally it is according to the zoom factor of each display window and window effective quantity The corresponding data channel distribution transmission data bandwidth of each display window.It can guarantee insufficient in the transmission bandwidth of data/address bus When, the content in all video channels can be shown.

It is understood that when the decoding data amount of decoding chip output is not more than the transmission bandwidth of data/address bus, it can To zoom in and out display to each display window on the painting canvas according to the above method provided in this embodiment, it is of course also possible to It is directly shown without scaling processing.

In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed system and method, it can also To realize by another way.System and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the systems of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.

In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.

It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, electronic equipment 100 or the network equipment etc.) execute all or part of each embodiment the method for the present invention Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include so that include a series of elements process, method, article or equipment not only include those elements, but also Including other elements that are not explicitly listed, or further include for this process, method, article or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method, article or equipment of element.

The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of image data transmission bandwidth distribution method based on image dynamic scaling, which is characterized in that the described method includes:
Judge decoding data amount whether be more than data/address bus transmission bandwidth;
When the decoding data amount is more than the transmission bandwidth of data/address bus, the quantity and window of the display window on painting canvas are obtained Effective quantity;
Obtain the covering relation on the painting canvas between each display window;
According to the covering relation between display window each on the painting canvas, the zoom factor of each display window is calculated;
It is that each window creates corresponding data from the transmission bandwidth of the data/address bus according to the quantity of the display window Channel, and be the corresponding data channel of each display window according to the zoom factor of each display window and window effective quantity Distribution transmission data bandwidth.
2. the method as described in claim 1, which is characterized in that a effective amount of step of the acquisition window includes:
Compare the amount of pixels of display window amount of pixels in shared region and inputted video image frame on the painting canvas;
When the amount of pixels in the display window shared region on the painting canvas is greater than the amount of pixels of the inputted video image frame When, the amount of pixels of the inputted video image frame is obtained as the window effective quantity;And
When the amount of pixels in the display window shared region on the painting canvas is less than the amount of pixels of the inputted video image frame When, the amount of pixels in the display window shared region on the painting canvas is obtained as the window effective quantity.
3. the method as described in claim 1, which is characterized in that the covering obtained on the painting canvas between each display window The step of relationship includes:
For each display window on the painting canvas, by the vertex of the display window and the vertex of other display windows it Between positional relationship, determine the overlapping relation between the display window and other display windows;And
There are when overlapping relation between the display window and other display windows, pass through the display window and other displays The opening sequencing of window, determines the covering relation between the display window and other display windows.
4. the method as described in claim 1 or 3, which is characterized in that described by between each display window on the painting canvas Covering relation, the step of calculating the zoom factor of each display window includes:
Specific characteristic point is set in capped window, according to the quantity of characteristic point in overlay area, is determined described capped The zoom factor of window;Or
The area that capped window is accounted for according to overlay area determines the zoom factor of the capped window.
5. the method as described in claim 1, which is characterized in that the quantity according to the display window is total from the data In the transmission bandwidth of line be that each window creates corresponding data channel, and according to the zoom factor of each display window and Window effective quantity is that the step of data bandwidth is transmitted in the corresponding data channel distribution of each display window includes:
Window effective quantity after calculating single window scaling according to the zoom factor of single window and window effective quantity;
It sums the window effective quantity after single window scaling to obtain a effective amount of summation of window;
It is calculated according to the transmission bandwidth of window effective quantity and data/address bus after a effective amount of summation of window, single window scaling single The transmission data bandwidth of the corresponding data channel distribution of a display window, wherein it is logical to calculate the corresponding data of single display window The formula of the transmission data bandwidth of road distribution are as follows:
Wa=Va*Ra/Vs*S
Wherein, WaFor the transmission data bandwidth of the corresponding data channel distribution of display window A, VaWindow for display window A is effective Amount, RaFor the zoom factor of display window A, VsFor a effective amount of summation of window, S is the transmission bandwidth of data/address bus.
6. a kind of image data transmission bandwidth distributor based on image dynamic scaling, which is characterized in that described device includes:
Judgment module, for judge decoding data amount whether be more than data/address bus transmission bandwidth;
First obtains module, for obtaining and showing on painting canvas when the decoding data amount is more than the transmission bandwidth of data/address bus Show the quantity and window effective quantity of window;
Second obtains module, for obtaining the covering relation on the painting canvas between each display window;
Zoom factor determining module, for calculating each display according to the covering relation between display window each on the painting canvas The zoom factor of window;And
Data bandwidth allocation module is every from the transmission bandwidth of the data/address bus for the quantity according to the display window A window creates corresponding data channel, and is each aobvious according to the zoom factor of each display window and window effective quantity Show the corresponding data channel distribution transmission data bandwidth of window.
7. device as claimed in claim 6, feature is as the first acquisition module includes:
Comparative sub-module, amount of pixels and inputted video image for the display window shared region on the painting canvas The amount of pixels of frame;
Window effective quantity acquisition submodule is greater than institute for the amount of pixels when the display window shared region on the painting canvas When stating the amount of pixels of inputted video image frame, the amount of pixels of the inputted video image frame is obtained as the window effective quantity; And
The window effective quantity acquisition submodule is also used to the amount of pixels when the display window shared region on the painting canvas Less than the inputted video image frame amount of pixels when, obtain the amount of pixels in the display window shared region on the painting canvas As the window effective quantity.
8. device as claimed in claim 6, which is characterized in that described second, which obtains module, includes:
Overlapping relation determines submodule, for passing through the top of the display window for each display window on the painting canvas Positional relationship between point and the vertex of other display windows, determines overlapping between the display window and other display windows Relationship;And
Covering relation determines submodule, for, there are when overlapping relation, leading between the display window and other display windows The opening sequencing for crossing the display window Yu other display windows, determines between the display window and other display windows Covering relation.
9. the device as described in claim 6 or 8, it is characterised in that:
The zoom factor determining module is by setting specific characteristic point in capped window, and according to overlay area Nei Te The quantity for levying point, determines the zoom factor of the capped window;Or the area of capped window is accounted for according to overlay area, it determines The zoom factor of the capped window.
10. device as claimed in claim 6, which is characterized in that the data bandwidth allocation module includes:
Computational submodule, for calculating the window after single window scales according to the zoom factor and window effective quantity of single window Effective quantity;
Summation submodule, for summing the window effective quantity after single window scaling to obtain a effective amount of summation of window;
Bandwidth calculation submodule, for according to the window effective quantity and data after a effective amount of summation of window, single window scaling The transmission bandwidth of bus calculates the transmission data bandwidth of the corresponding data channel distribution of single display window, the bandwidth meter operator The calculation formula that module obtains the transmission data bandwidth of the corresponding data channel distribution of single display window is as follows:
Wa=Va*Ra/Vs*S
Wherein, WaFor the transmission data bandwidth of the corresponding data channel distribution of display window A, VaWindow for display window A is effective Amount, RaFor the zoom factor of display window A, VsFor a effective amount of summation of window, S is the transmission bandwidth of data/address bus.
CN201610694912.2A 2016-08-19 2016-08-19 Image data transmission bandwidth distribution method and device based on image dynamic scaling CN106303583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610694912.2A CN106303583B (en) 2016-08-19 2016-08-19 Image data transmission bandwidth distribution method and device based on image dynamic scaling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610694912.2A CN106303583B (en) 2016-08-19 2016-08-19 Image data transmission bandwidth distribution method and device based on image dynamic scaling

Publications (2)

Publication Number Publication Date
CN106303583A CN106303583A (en) 2017-01-04
CN106303583B true CN106303583B (en) 2019-02-15

Family

ID=57661811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610694912.2A CN106303583B (en) 2016-08-19 2016-08-19 Image data transmission bandwidth distribution method and device based on image dynamic scaling

Country Status (1)

Country Link
CN (1) CN106303583B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783883B (en) * 2017-10-10 2018-11-16 叶雅敏 A kind of method whether detection window is blocked
CN108600728A (en) * 2018-05-10 2018-09-28 Oppo广东移动通信有限公司 A kind of data transmission method and terminal, computer storage media

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191949A (en) * 2003-12-25 2005-07-14 Fujitsu Ltd Video image distribution apparatus and video image browsing apparatus
WO2007145643A2 (en) * 2005-08-01 2007-12-21 Covi Technologies, Inc. Systems and methods for video stream selection
CN103024342A (en) * 2012-12-25 2013-04-03 广东威创视讯科技股份有限公司 Bandwidth control method and system for video conference system
CN103581505A (en) * 2012-07-30 2014-02-12 浙江大华技术股份有限公司 Digital video signal processing device and method
CN104704814A (en) * 2012-07-30 2015-06-10 摩托罗拉移动技术公司 Video bandwidth allocation in a video conference
CN105681869A (en) * 2015-06-01 2016-06-15 深圳Tcl新技术有限公司 Video browsing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191949A (en) * 2003-12-25 2005-07-14 Fujitsu Ltd Video image distribution apparatus and video image browsing apparatus
WO2007145643A2 (en) * 2005-08-01 2007-12-21 Covi Technologies, Inc. Systems and methods for video stream selection
CN103581505A (en) * 2012-07-30 2014-02-12 浙江大华技术股份有限公司 Digital video signal processing device and method
CN104704814A (en) * 2012-07-30 2015-06-10 摩托罗拉移动技术公司 Video bandwidth allocation in a video conference
CN103024342A (en) * 2012-12-25 2013-04-03 广东威创视讯科技股份有限公司 Bandwidth control method and system for video conference system
CN105681869A (en) * 2015-06-01 2016-06-15 深圳Tcl新技术有限公司 Video browsing method and device

Also Published As

Publication number Publication date
CN106303583A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US6826311B2 (en) Hough transform supporting methods and arrangements
US8872855B2 (en) Adjusting orientation of content regions in a page layout
US7613363B2 (en) Image superresolution through edge extraction and contrast enhancement
EP1787260B1 (en) Cache efficient rasterization of graphics data
Goshtasby Fusion of multi-exposure images
US20110182507A1 (en) Image Preprocessing
KR100763239B1 (en) Image processing apparatus and method for enhancing visibility of image on display
Vicente et al. Joint optimization of segmentation and appearance models.
US8553976B2 (en) Differential image enhancement
US8218895B1 (en) Systems and methods for generating and displaying a warped image using fish eye warping
US20060280364A1 (en) Automatic image cropping system and method for use with portable devices equipped with digital cameras
US8472746B2 (en) Fast depth map generation for 2D to 3D conversion
US9235759B2 (en) Detecting text using stroke width based text detection
WO1999019834A1 (en) Adaptive diagonal interpolation for image resolution enhancement
US20080101697A1 (en) Image processing method, medium, and system
US6798422B2 (en) Method and filtering system for filtering edge directions
US7986834B2 (en) Method and apparatus for color image correction
US8744208B2 (en) Image binarization based on grey membership parameter of pixels
CN104216976B (en) A kind of mobile terminal picture grouping inspection method and system
JP5461416B2 (en) Adaptive filtering for image transformation processing.
US8619083B2 (en) Multi-layer image composition with intermediate blending resolutions
US20050068338A1 (en) Method and system for scaling images
US9928418B2 (en) System and method for detecting objects in an image
US20140247979A1 (en) Method and device for generating high dynamic range images
Barakat et al. Minimal-bracketing sets for high-dynamic-range image capture

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01