CN103037213B - The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system - Google Patents

The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system Download PDF

Info

Publication number
CN103037213B
CN103037213B CN201110307770.7A CN201110307770A CN103037213B CN 103037213 B CN103037213 B CN 103037213B CN 201110307770 A CN201110307770 A CN 201110307770A CN 103037213 B CN103037213 B CN 103037213B
Authority
CN
China
Prior art keywords
value
cloth woods
bit
buffer
cloth
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.)
Expired - Fee Related
Application number
CN201110307770.7A
Other languages
Chinese (zh)
Other versions
CN103037213A (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.)
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
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 MStar Software R&D Shenzhen Ltd, MStar Semiconductor Inc Taiwan filed Critical MStar Software R&D Shenzhen Ltd
Priority to CN201110307770.7A priority Critical patent/CN103037213B/en
Publication of CN103037213A publication Critical patent/CN103037213A/en
Application granted granted Critical
Publication of CN103037213B publication Critical patent/CN103037213B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Abstract

The invention provides the cloth woods entropy decoding method of a kind of cloth woods entropy decoder and image playing system.Wherein cloth woods entropy decoder comprises decoder module, buffer and update module.Decoder module sequentially produces the first cloth woods value, the second cloth woods value and the 3rd cloth woods value according to a bit element flow.First and second cloth woods value produces in the same work period.Decoder module needs the first bit amount when producing the numerical value corresponding to the first cloth woods value, in time producing the numerical value corresponding to the second cloth woods value, need second bit amount.Buffer in order to the bit segment in this bit element flow temporary, for this decoder module.Update module upgrades buffer according to the first bit amount and second bit amount after bit element flow acquisition one new bit segment.Decoder module optionally adjusts the numerical value corresponding to the 3rd cloth woods value after buffer is updated.

Description

The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system
Technical field
The present invention is relevant to image processing technique, and especially relevant with the technology promoting image processing efficiency to shortening decode time.
Background technology
One of the development trend of multimedia play system is the size continuing to increase video display now.Accordingly, the arithmetic speed of image processor also must promote thereupon.To adopt the display of hd-tv system (high-definitiontelevision, HDTV) standard, the arithmetic speed of its decoding device must reach at least be enough to process 60 resolutions per second be the picture of 1920*1080.Accordingly, the work period how shortening decoding device is the subject under discussion more and more come into one's own to increase decoding efficiency.
Cloth woods entropy decoder (booleanentropydecoder) is a kind of decoder be widely used in image processing system, and its function is the cloth woods value be converted to by bit element flow (bitstream) corresponding to image data.Fig. 1 is typical cloth woods entropy decoder block diagram.In this framework, decoder 100 sequentially produces two cloth woods values in each work period T.At generation cloth woods value B 0time, first must calculate according to following equation and correspond to cloth woods value B 0a separation number (split) S 0:
S 0 = 1 + ( R 0 - 1 ) * P 0 256 , (formula one)
Wherein, corresponding to cloth woods value B 0a scope R 0and a numerical value V 0relevant to previous cloth woods value, can learn in advance; Probability P 0can by generation of tabling look-up.Electrical combination 12A is responsible for the computing in execution formula one, to produce separation number S 0.In practice, scope R 0, separation number S 0with numerical value V 0be all integer, available binary bit eight bit represents.The numerical value V of first cloth woods value of whole picture 0usually eight bits foremost into bit element flow are preset in.
Comparator 12B is in order to compare separation number S 0with numerical value V 0, to determine cloth woods value B 0be 1 or 0.If separation number S 0be less than or equal to numerical value V 0, cloth woods value B 0equal 1.Relatively, if separation number S 0be greater than numerical value V 0, cloth woods value B 0equal 0.
Corresponding to next cloth woods value B 1scope R 1with numerical value V 1with cloth woods value B 0relevant, and can at decision cloth woods value B 0produce through (renormalization) program of reforming afterwards.Ruo Bulin value B 0be 1, R 1initial value R 1 (0)to be R 0deduct S 0, V 1initial value V 1 (0)to be V 0deduct S 0.Ruo Bulin value B 0be 0, R 1initial value R 1 (0)s will be equaled 0, V 1initial value V 1 (0)equal V 0.As shown in Figure 1, subtracter 12C is responsible for generation scope R 0and separation number S 0difference.Bu Lin value B 0be provided to multiplexer 12D, in order to control the initial value R of reformer unit 12E will be provided to 1 (0)separation number S 0or scope R 0and separation number S 0difference.Similarly, cloth woods value B 0also multiplexer 12F is provided to, in order to control the initial value V of reformer unit 12E will be provided to 1 (0)numerical value V 0or numerical value V 0with separation number S 0difference.
Subsequently, reformer unit 12E is responsible for selectivity and adjusts and determine scope R 1with numerical value V 1, its adjustment mode can be expressed as follows:
while(R 1<128){
R 1=R 1*2;
V 1=[(V 1*2)+nbit(1)]}。(formula two)
That is, if current R 1be less than 128, R 1can 2 be multiplied by, until R 1be more than or equal to 128.Improving R at every turn 1process in, V 1also can be multiplied by 2 accordingly, be added in bit element flow not yet by first bit of part used.With R 1be example being multiplied by the situation being just greater than 128 after 2 three times, reformer unit 12E to capture in bit element flow not yet by first three bit of using for producing numerical value V 1use.As shown in Figure 1, numerical value of N 1represent reformer unit 12E at generation numerical value V 1process in need from not yet by the bit amount captured in the bit element flow that uses.Numerical value of N 2then represent reformer unit 14E at generation numerical value V 2process in need from not yet by the bit amount captured in the bit element flow that uses.Buffer 18 in Fig. 1 namely in order in temporary bit element flow not yet by the partial sector used, produce numerical value V for reformer unit 12E/14E 1in time, uses.That is, numerical value V is produced respectively in reformer unit 12E and reformer unit 14E 1and numerical value V 2time, required specific bit must being had in buffer 18, being operated in order to do making reformer unit 12E and reformer unit 14E.
Confirming scope R 1with numerical value V 1afterwards, combinational circuit 14A can according to scope R 1, probability P 1(can by generation of tabling look-up) and formula one calculate separation number S 1.By comparing separation number S 1with the numerical value V produced by reformer unit 12E 1, comparator 14B can determine cloth woods value B 1be 1 or 0.
Similarly, corresponding to next cloth woods value B 2scope R 2with numerical value V 2with cloth woods value B 1relevant, and can at decision cloth woods value B 1produce through reorganization procedure afterwards.As shown in Figure 1, subtracter 14C is responsible for generation scope R 1and separation number S 1difference.Bu Lin value B 1be provided to multiplexer 14D, in order to control the R that reformer unit 14E will be provided to 2initial value R 2 (0)separation number S 1or scope R 1and separation number S 1difference.Bu Lin value B 1also multiplexer 14F is provided to, in order to control the V that reformer unit 14E will be provided to 2initial value V 2 (0)numerical value V 1or numerical value V 1with separation number S 1difference.Subsequently, reformer unit 14E is responsible for determining next cloth woods value B 2scope R 2with numerical value V 2.
In practice, circuit 12A ~ 12E can be utilized to produce cloth woods value B again 2, and circuit 14A ~ 14E can in order to produce follow-up cloth woods value B 3, circulate according to this, progressively produce a series of cloth woods value.
As shown in Figure 1, updating block 16 receives the numerical value of N that reformer unit 12E provides respectively 1with the numerical value of N that reformer unit 14E provides 2.Numerical value of N 1represent reformer unit 12E at generation numerical value V 1process in need from not yet by the bit amount captured in the bit element flow that uses.Numerical value of N 2then represent reformer unit 14E at generation numerical value V 2process in need from not yet by the bit amount captured in the bit element flow that uses.According to numerical value of N 1and numerical value of N 2, updating block 16 calculates the several bits altogether employed in this work period T in bit element flow, and upgrades the content of buffer 18 accordingly.
Fig. 2 is the content example of buffer 18.Suppose the capacity of buffer 18 be 16 bits and have in first cycle T 1 bit [20:35] in bit element flow (label be 20 bit start to label be the bit of 35).If numerical value of N 1and numerical value of N 2summation be 8, front 8 bits [20:27] representing in bit [20:35] have been reformed unit 12E/14E and have used in work period T1.Therefore, updating block 16 captures 8 bits [36:43] follow-up in this bit element flow by memory (not being illustrated in the figure) request storing this bit element flow, and make the content of buffer 18 be updated to bit [28:43] before the second work period T2 starts, that is leave out front end by eight bits used, its content is updated to and has the state that 16 do not use bit, in the second work period T2, produce numerical value V for reformer unit 12E/14E 3, V 4in time, uses.In like manner, updating block 16 is next time according to generation numerical value V 3, V 4time use number of cells (numerical value of N 3and numerical value of N 4summation) before the work period, T3 started, upgrade buffer 18.
In each reforming process, when producing a numerical value V, 7 bits can be taken at the most in bit element flow.The capacity of buffer 18 is usually designed in enough single cycles for producing the numerical value V corresponding to two cloth woods values.As shown in Figure 2, cloth woods entropy decoder 100 can produce two cloth woods values in each work period, and the content of buffer 18 can change along with the number of cells difference consumed in each cycle or remain unchanged.
With regard to the framework of Fig. 1, numerical value of N 1generation inevitable early than numerical value of N 2, but updating block 16 must wait for that reformer unit 14E produces numerical value of N 2after could determine should capture how many bit amount to upgrade the content of buffer 18.For Fig. 2, reformer unit 14E is at time point t a1produce numerical value of N 2, from time point t a1time before work period T1 terminates is then for updating block 16 bit required when bit element flow captures follow-up renewal buffer 18.Wait until that the content update of buffer 18 is complete, next work period T2 could start.Can find out thus, the time of acquisition data and renewal buffer can make each work period T of cloth woods entropy decoder 100 increase, thus cause its operating frequency to reduce, cloth woods entropy decoder 100 even may be caused cannot to reach the result of the requirement of some high-resolution image system.
Summary of the invention
For the problems referred to above, the present invention proposes a kind of new cloth woods entropy decoder framework, and the time point by change acquisition data shortens the work period each time.In addition, utilize many group circuit to calculate multiple possible outcome, the time required for decoding can be shortened further simultaneously.
A specific embodiment according to the present invention is a cloth woods entropy decoder, in order to a bit element flow to be converted to multiple cloth woods value.This decoder comprises a decoder module, a buffer and a update module.This decoder module sequentially produces one first cloth woods value, one second cloth woods value and one the 3rd cloth woods value according to this bit element flow.This first cloth woods value and this second cloth woods value produce in the same work period.This decoder module needs one first bit amount when producing the numerical value corresponding to this first cloth woods value, and needs a second bit amount in time producing the numerical value corresponding to this second cloth woods value.This buffer in order to the bit segment in this bit element flow temporary, for this decoder module.This bit segment at least contains this first bit amount and this second bit amount.This update module upgrades this buffer according to this first bit amount and this second bit amount after this bit element flow acquisition one new bit segment.This decoder module optionally adjusts the numerical value corresponding to the 3rd cloth woods value after this buffer is updated.
Another specific embodiment according to the present invention is a kind of cloth woods entropy decoding method being applied to image playing system, in order to a bit element flow to be converted to the multiple cloth woods values corresponding to image data.This image playing system comprises a buffer, in order to the bit segment in this bit element flow temporary.First, utilize in this bit segment one first section with one first bit amount, the numerical value corresponding to one first cloth woods value is produced.Then, in one first work period, the first cloth woods value is produced.Subsequently, utilize in this bit segment one second section with a second bit amount, the numerical value corresponding to one second cloth woods value is produced.Captured from this bit element flow according to this first bit amount and the new bit segment of this second bit amount one, and this buffer is updated according to this new bit segment.Same in this first work period, this second cloth woods value and the numerical value corresponding to one the 3rd cloth woods value are produced.After this buffer is updated, this numerical value corresponding to the 3rd cloth woods value is optionally adjusted.Then, in one second work period, the 3rd cloth woods value is produced.
Can be further understood by following detailed Description Of The Invention and institute's accompanying drawing about the advantages and spirit of the present invention.
Accompanying drawing explanation
Fig. 1 is typical cloth woods entropy decoder block diagram.
Fig. 2 is the buffer content example in traditional cloth woods entropy decoder.
Fig. 3 is the circuit block diagram according to cloth woods entropy decoder in a specific embodiment of the present invention.
Fig. 4 and Fig. 5 is according to the buffer content example in cloth woods entropy decoder of the present invention.
Fig. 6, Fig. 7, Fig. 8, Fig. 9 are respectively the local circuit calcspar example according to decoder module of the present invention.
Figure 10 is the flow chart according to cloth woods entropy decoding method in a specific embodiment of the present invention.
Main element symbol description
100: cloth woods entropy decoder 12A, 14A: electrical combination
12B, 14B: comparator 12C, 14C: subtracter
12D, 14D: multiplexer 12E, 14E: reformer unit
12F, 14F: multiplexer 16: updating block
18: buffer 18200: cloth woods entropy decoder
20: decoder module 26: update module
28: buffer 60: electrical combination
61A: multiplier 61B: divider
62: judging unit 63: the first adjustment unit
64: the second adjustment unit 65A ~ 65H: electrical combination
66: multiplexer 67A ~ 67C, 68A ~ 68B: multiplexer
69: reformer unit 70: the three adjustment unit
S11 ~ S18: process step
Embodiment
A specific embodiment according to the present invention is a cloth woods entropy decoder, in order to a bit element flow to be converted to multiple cloth woods value; Fig. 3 is its circuit block diagram.Cloth woods entropy decoder 200 comprises decoder module 20, update module 26 and buffer 28.In practical application, cloth woods entropy decoder 200 can be incorporated in the multimedia system of various employing cloth woods entropy code, the such as image processing system of VP8 specification.
In practice, decoder module 20 is designed to comprise the circuit 12A ~ 12E in figure mono-and circuit 14A ~ 14E, but not as limit.According to the bit element flow inputing to cloth woods entropy decoder 200, decoder module 20 sequentially produces one first cloth woods value B 1, one second cloth woods value B 2and one the 3rd cloth woods value B 3.Should be noted that, in this embodiment, the first cloth woods value B 1with the second cloth woods value B 2produce in the same work period, and the 3rd cloth woods value B 3produce in a rear work period.With the cloth woods value B shown in Fig. 4 1~ B 3for example, the first cloth woods value B 1can be produced by circuit 12A ~ 12E at the leading portion of period 1 T1, the second cloth woods value B 2can be produced by circuit 14A ~ 14E at the back segment of period 1 T1, and the 3rd cloth woods value B 3can be second round T2 leading portion produced by circuit 12A ~ 12E, the rest may be inferred.
Decoder module 20 produces and corresponds to the first cloth woods value B 1numerical value V 1time need one first bit amount N 1, produce and correspond to the second cloth woods value B 2numerical value V 2time need a second bit amount N 2.First bit amount N 1represent and produce numerical value V in reformation (renormalization) program 1time, altogether need to capture in bit element flow, not yet by the bit amount used, second bit amount N 2representative produces numerical value V in reorganization procedure 2time, altogether need to capture in bit element flow, not yet by the bit amount used.Buffer 28, in order to the bit segment in temporary bit element flow, is taken when producing these numerical value V for decoder module 20.With the cloth woods value B shown in Fig. 4 1~ B 3for example, the first bit amount N 1in work period T0, produce cloth woods value B 0after reorganization procedure determine, namely decoder module 20 takes required specific N in time point t1 in buffer 28 1individual bit; And second bit amount N 2in work period T1, produce cloth woods value B 1after reorganization procedure determine, namely decoder module 20 takes required specific N in time point t2 in buffer 28 2individual bit.
In work period T1, second bit amount N is determined at decoder module 20 2after, the update module 26 in this embodiment is according to second bit amount N 2and the first bit amount N produced in previous work period T0 1from bit element flow acquisition one new bit segment.Be different from prior art, update module 26 is not pursuant to two bit amounts (the bit amount N determined in the work period T1 that such as coexists determined in the same work period 2, N 3) calculating subsequently will from the bit amount of bit element flow acquisition, and adopt across two work periods, the bit amount that the bit amount of the back segment decision of last work period and the leading portion of a rear work period determine, calculating subsequently will from the bit amount of bit element flow acquisition.For the situation that Fig. 4 illustrates, the first bit amount N 1the time point produced is t1, second bit amount N 2the time point produced is t2.Bit amount N is confirmed at time point t2 2after, the update module 26 in this embodiment is namely according to N 1and N 2summation determine next how to upgrade the content of buffer 28.
On the other hand, as shown in Figure 4, the time that the buffer 28 in this embodiment is updated remains at the end of each work period (such as at the 3rd bit amount N 3the time point t3 produced).By making update module 26 by required for acquisition bit and the step timesharing execution upgrading buffer, and the bit captured between time point t2 and t3 needed for follow-up renewal buffer 28 ahead of time, update module 26 only needs the content upgrading buffer 28 after time point t3, and saves the time of the required bit of acquisition; Accordingly, the work period of cloth woods entropy decoder 200 can be shortened, and is equal to and improves its operating frequency.
For Fig. 4, hypothesis decoding module 20 judges the first bit amount N at time point t1 1equal 5, judge second bit amount N at time point t2 2equal 0.Update module 26 can according to N 1and N 2summation learn, in the middle of the bit [28:43] that current buffer 28 stores, the first five bit (namely bit [28:32]) decoded module 20 uses.Therefore, update module 26 in time point t2 start to bit of storage flow filament memory (not being illustrated in figure) request acquisition bit element flow in follow-up five not yet by the bit (bit [44:48]) used.In practice, the time of this section of acquisition data can be shorter than the interval of time point t2 and t3, and therefore update module 26 can complete the program of data acquisition before time point t3.At time point t3, new bit segment is loaded into buffer 28 by update module 26, makes the content of buffer 28 be updated to bit [33:48].In another embodiment, update module 26 also can upgrade the content of buffer 28 immediately after completing acquisition data program, not necessarily will wait until that time point t3 just starts to upgrade buffer 28.
Fig. 5 is another example of buffer 28 content.First see work period T0, suppose at time point t a1twice reorganization procedure before employs [20:27] eight bits in buffer 28 altogether, and update module 26 is at time point t a1can ask, from follow-up eight bits [36:43] of bit element flow acquisition, by this when next update buffer 28, to make its stored contents be updated to bit [28:43].As figure 55 shows, update module 26 is at cloth woods value B 0when reorganization procedure after generation completes, (namely at the end of work period T0) upgrades the content of buffer 28.As discussed previously, the reorganization procedure carried out at work period T0 back segment can determine to correspond to the first cloth woods value B 1numerical value V 1.In this example, produce numerical value V 1time need use the data (bit [28:34]) of seven bits in bit element flow, therefore the first bit amount N 1equal 7.
At time point t a2, decoder module 20 completes at cloth woods value B 1reorganization procedure after generation.In this example, produce numerical value V 2time also need the data (bit [35:41]) using seven bits in bit element flow, therefore second bit amount N 2equal 7.Update module 26 is learnt immediately and is produced numerical value V 1, V 2altogether need [28:41] 14 bits, therefore can at time point t a2rear now requests from follow-up 14 bits (bit [44:57]) being not yet written into buffer 28 of bit element flow acquisition, and upgrades buffer 28 at the end of work period T1, makes its stored contents can be updated to bit [42:57].
As shown in Figure 5, numerical value V is produced 3time also need the data (bit [42:48]) using seven bits in bit element flow.Should be noted that, although the work period T1 content that interior buffer 28 stores during this period of time is not enough to supply produce numerical value V 3reorganization procedure needed for, but decoder module 20 can to wait until that the content of buffer 28 is updated to bit [42:57] (can be even) just upgrade numerical value V according to the content (bit [42:57]) of now buffer 28 afterwards after the work period, T2 started 3.More particularly, decoder module 20 first can calculate R at the reorganization procedure of work period T1 back segment 3 (0)be just be greater than 128 after being multiplied by 2 seven times, learn the 3rd bit amount N accordingly 3equal 7.Accordingly, in above-mentioned reorganization procedure, V 3 (0)also 2 seven times can be multiplied by, to draw V to be updated 3.After the content of buffer 28 is updated to bit [42:57], decoder module 20 obtains bit [42:48] immediately in buffer 28, and by bit [42:48] and V previously to be updated 3be added, make numerical value V 3be updated to correct result, for generation cloth woods value B 3use.
Should be noted that, if the work period T1 content that interior buffer 28 stores during this period of time has been enough to supply produce numerical value V 3needed for, namely decoder module 20 need not adjust numerical value V after buffer 28 upgrades 3.In sum, decoder module 20 optionally adjusts and corresponds to the 3rd cloth woods value B after buffer 28 is updated 3numerical value V 3.Can be found out by above example, the work period T1 content that interior buffer 28 stores during this period of time is actually for cloth woods value B 0, B 1reorganization procedure after generation uses.In like manner, the work period T2 content that interior buffer 28 stores during this period of time is for cloth woods value B 2, B 3reorganization procedure after generation uses.Therefore, as long as the bit segment during work period T1 stored by buffer 28 at least contains the first bit amount N 1and second bit amount N 2.For example, if the first bit amount N 1and second bit amount N 2be at most 7 bits separately, the first bit amount N 1and second bit amount N 2addition is at most 14 bits, then a buffer 28 with 16 bit capacity is sufficient.
Below will to produce cloth woods value B in same work period T 0, B 1situation be example, another execution mode of decoder module 20 is described.As discussed previously, cloth woods value B 0may be 1 or 0, and produce cloth woods value B 0the issuable result of reorganization procedure is afterwards eight kinds at the most and (corresponds respectively to N 1=0 ~ 7).Therefore, cloth woods value B 0the result ([R of the reorganization procedure after generation 1, V 1]) have 16 kinds of possibilities.To give a definition as cloth woods value B 0probability P when being 0 1for P l, as cloth woods value B 0probability P when being 1 1for P m.
First cloth woods value B is discussed 0be 0 and N 1the situation of=0.Such situation represents, R 1initial value R 1 (0)equal S 0and be more than or equal to 128, therefore:
S 0 = 1 + ( R 0 - 1 ) * P 0 256 ≥ 128 . (formula one A)
Can be drawn by formula one A: ( R 0 - 1 ) * P 0 256 > 126 . (formula one B)
If with numerical value S 0_ m1 represents separation number after an adjustment then formula one B can be rewritten as:
S 0_m1>126。(formula one C)
That is, Ruo Bulin value B 0be 0 and N 1=0, then formula one C sets up.In other words, Yu Bulin value B 0when, formula one C is with S 0the magnitude range of _ m1 judges N 1the judgement formula of value.
In addition, V 1initial value V 1 (0)equal V 0, and reorganization procedure need not adjust R 1 (0)and V 1 (0).Easy speech it, R 1equal R 1 (0)equal S 0, V 1equal V 1 (0)equal V 0.Therefore, then at relatively V 1and S 1to determine cloth woods value B 1when being 1 or 0, compare V 0whether be more than or equal to be equal to and compare V 0whether be greater than in sum, cloth woods value B is determined 1comparison expression when being 1 or 0 can be expressed as follows:
V 0 > ? ( S 0 - 1 ) * P 1 256 = ( R 0 - 1 ) * P 0 256 * P L 256 . (formula one D)
If with numerical value S 0_ m1 represents then formula one D can be rewritten as:
V 0 > ? S 0 _ m 1 * P L 256 . (formula one E)
From above-mentioned formula one C and formula one E, by this numerical value of definition S 0_ m1, the present embodiment can simplify judgement N simultaneously 1value and decision cloth woods value B 1judgement formula, make the hardware that the present embodiment can be less produce cloth woods value B 1and the judgement of relevant parameter.Following situation is also spiritual according to this simplifies judgement N 1value and decision cloth woods value B 1judgement formula, hereby details are as follows.Cloth woods value B is then discussed 0be 0 and N 1the situation of=1.Such situation represents, R 1initial value R 1 (0)equal S 0and be less than 128 and be more than or equal to 64, therefore:
128 > S 0 = 1 + ( R 0 - 1 ) * P 0 256 ≥ 64 . (formula two A)
Can be drawn by formula two A: 126>=S 0_ m1 > 62.(formula two B)
That is, Ruo Bulin value B 0be 0 and N 1=1, then formula two B sets up.
In addition, V 1initial value V 1 (0)equal V 0, and reorganization procedure must adjustment R 1 (0)and V 1 (0).Easy speech it, R 1equal R 1 (0)be multiplied by 2, also equal S 0be multiplied by 2; V 1equal V 1 (0)be multiplied by and add in bit element flow not yet by 1 bit used after 2, also equal V 0be multiplied by after 2 and add in bit element flow not yet by 1 bit used.Therefore, then at relatively V 1and S 1to determine cloth woods value B 1when being 1 or 0, judge whether following relationship is set up:
{ V 0 , nbit ( 1 ) } ≥ 1 + ( R 1 - 1 ) * P L 256 , (formula two C)
Wherein { V 0, nbit (1) } represent V 0carry out once such as formula the adjustment (adding an original bit after being multiplied by 2) described in two.
Formula two C is equal to:
{ V 0 , nbit ( 1 ) } > ( 2 S 0 - 1 ) * P L 256 . (formula two D)
In sum, cloth woods value B is determined 1be 1 or 0 comparison expression can be expressed as follows:
{ V 0 , nbit ( 1 ) } > ? [ ( R 0 - 1 ) * P 0 256 * 2 + 1 ] * P L 256 . (formula two E)
Formula two E can be rewritten as again:
{ V 0 , nbit ( 1 ) } > ? [ S 0 _ m 1 * 2 + 1 ] * P L 256 . (formula two F)
The rest may be inferred, Ruo Bulin value B 0be 0 and N 1=2, following equation is set up:
62>=S 0_ m1 > 30, (formula three A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 2 ) } > ? [ S 0 _ m 1 * 4 + 3 ] * P L 256 , (formula three B).
Wherein { V 0, nbit (2) } represent V 0carry out twice such as formula the adjustment described in two.
Ruo Bulin value B 0be 0 and N 1=3, following equation is set up:
30>=S 0_ m1 > 14, (formula four A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 3 ) } > ? [ S 0 _ m 1 * 8 + 7 ] * P L 256 . (formula four B).
Ruo Bulin value B 0be 0 and N 1=4, following equation is set up:
14>=S 0_ m1 > 6, (formula five A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 4 ) } > ? [ S 0 _ m 1 * 16 + 15 ] * P L 256 . (formula five B).
Ruo Bulin value B 0be 0 and N 1=5, following equation is set up:
6>=S 0_ m1 > 2, (formula six A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 5 ) } > ? [ S 0 _ m 1 * 32 + 31 ] * P L 256 . (formula six B).
Ruo Bulin value B 0be 0 and N 1=6, following equation is set up:
2>=S 0_ m1 > 0, (formula seven A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 6 ) } > ? [ S 0 _ m 1 * 64 + 63 ] * P L 256 . (formula seven B).
Ruo Bulin value B 0be 0 and N 1=7, following equation is set up:
S 0_ m1=0, (formula eight A)
And determine cloth woods value B 1comparison expression when being 1 or 0 can be expressed as:
{ V 0 , nbit ( 7 ) } > ? [ S 0 _ m 1 * 128 + 127 ] * P L 256 . (formula eight B).
In sum, according to numerical value S 0_ m1 drops within which scope that the seven number strokes such as 0,2,6,14,30,62,126 divide, can judge N 1be which numerical value in 0 ~ 7.Fig. 6 illustrates the circuit example realizing above-mentioned each group of judgement formula.First, multiplier 61A and divider 61B is responsible for preliminary computing, produces S 0_ m1.Judging unit 62 is responsible for according to numerical value S 0_ m1 judges N 1be which numerical value in 0 ~ 7.
On the other hand, by the first adjustment unit 63, second adjustment unit 64 and electrical combination 65A ~ 65H according to above-mentioned decision cloth woods value B 1each group of judgement formula, respectively produce eight correspond to different N 1the cloth woods value B of value 1, and by the responsible N exported according to judging unit 62 of multiplexer 66 1, in the output by electrical combination 65A ~ 65H, select correct cloth woods value B 1.The S of the first adjustment unit 63 in order to export according to divider 61B 0_ m1 calculates S 0_ m1*2+1, S 0_ m1*4+3, S 0_ m1*8+7, S 0_ m1*16+15, S 0_ m1*32+31, S 0_ m1*64+63, S 0seven terms of reference such as _ m1*128+127 are how many respectively.Second adjustment unit 64 is responsible for according to V 0calculate { V 0, nbit (1) }, { V 0, nbit (2) }, { V 0, nbit (3) }, { V 0, nbit (4) }, { V 0, nbit (5) }, { V 0, nbit (6) }, { V 0, nbit (7) } etc. seven referential datas be how many respectively.In practice, the first adjustment unit 63 only needs S 0_ m1 moves to left and fills 1 at most low order bit and can produce above-mentioned seven terms of reference, need not the extra hardware such as adder and multiplier.
Electrical combination 65A receives V 0and the S that divider 61B exports 0_ m1, and perform the computing represented by formula one E, to produce cloth woods value B 0be 0 and N 1cloth woods value B corresponding when=0 1.Electrical combination 65B receives the S that the first adjustment unit 63 exports 0{ the V that _ m1*2+1 and the second adjustment unit 64 export 0, nbit (1) }, and perform the computing represented by formula two F, produce cloth woods value B 0be 0 and N 1cloth woods value B corresponding when=1 1.As shown in Figure 6, electrical combination 65C ~ 65H produces the cloth woods value B corresponding to other six kinds of situations respectively 1.Finally, the responsible N exported according to judging unit 62 of multiplexer 66 1, in the output by electrical combination 65A ~ 65H, select correct cloth woods value B 1.
As shown in Figure 6, the input signal that multiplier 61A receives is (R 0-1) but not R 0.In practice, (R 0-1) computing can be incorporated in and previously produce R 0reorganization procedure in, save a subtracter by this.
Refer to Fig. 7.Except the electrical combination 60 shown in Fig. 6, multiplexer 67A ~ 67C, 68A ~ 68B and reformer unit 69 as shown in Figure 7 can also be comprised according to the decoder module 20 in one embodiment of the invention.Multiplexer 67A is responsible for the N produced according to electrical combination 60 1s as shown in Figure 6 1_00~ S 1_07in select corresponding to this N 1s 1.Multiplexer 67B is responsible for according to N 1by V 0and { V 0, nbit (1) } ... { V 0, nbit (7) } etc. select corresponding to this N in eight numerical value 1v 1.Multiplexer 67C is responsible for according to N 1by S 0_ m1*2+1 ~ S 0select corresponding to this N in eight numerical value such as _ m1*128+127 1r 1.
Subsequently, multiplexer 68A can according to the B of electrical combination 60 generation 1select to correspond to cloth woods value B 2r 2initial value R 2 (0)should be S 1or R 1with S 1difference.Multiplexer 68B can according to B 1select to correspond to cloth woods value B 2v 2initial value V 2 (0)should be V 1or V 1with S 1difference.Above-mentioned initial value R 2 (0)and V 2 (0)be provided to reformer unit 69, determine to correspond to cloth woods value B for reformer unit 69 2r 2, V 2and N 2.According to the N that reformer unit 69 exports 2and the N that previous circuit combination 60 produces 1, update module 26 can determine the content by how upgrading buffer 28, and its update mode with reference to previous explanation, can repeat no more.
In like manner, cloth woods value B 0be 1 eight kinds of situations also can be summarized as other eight groups of different relational expressions, and be implemented as electrical combination similar to Figure 6, circuit integrated with Fig. 7.That is, equally through the numerical value S that this defines 0_ m1, the present embodiment can simplify cloth woods value B simultaneously 0n is judged when being 1 1value and decision cloth woods value B 1judgement formula, make the hardware that the present embodiment can be less produce cloth woods value B 1and the judgement of relevant parameter.Fig. 8 integrates the circuit example containing 16 kinds of possibilities.As shown in Figure 8, numerical value (R 0-1) S is deducted 0the difference of _ m1 is further defined as S 0_ m2, judges N in order to simplify 1value and decision cloth woods value B 1judgement formula.Judging unit 62 in this example can according to numerical value S 0_ m1 and S 0_ m2 0judge cloth woods value B 0be 1 or 0, and N 1be which numerical value in 0 ~ 7.For example, Ruo Bulin value B 0be 1 and N 1=0, represent R 1initial value R 1 (0)equal (R 0-S 0) and be more than or equal to 128.Therefore:
R 0-S 0=R 0-(1+S 0_m1)=(R 0-1)-S 0_m1≥128。(formula nine A)
Formula nine A can be rewritten as:
S 0_m2>127。(formula nine B)
If numerical value S 0_ m1 and R 0box-like nine B of relation character described in person, judging unit 62 can judge cloth woods value B 0be 1 and N 1=0.
In addition, V 1initial value V 1 (0)equal (V 0-S 0), and reorganization procedure need not adjust R 1 (0)and V 1 (0).Then at relatively V 1and S 1to determine cloth woods value B 1when being 1 or 0, judge whether following relationship is set up:
V 0 - S 0 ≥ ? 1 + ( R 1 - 1 ) * P M 256 = 1 + ( R 0 - S 0 - 1 ) * P M 256 . (formula nine C)
Formula nine C can be rewritten as:
V 0 - S 0 > ? S 0 _ m 2 * P M 256 . (formula nine D)
Other seven groups of cloth woods value B 0be 1 and N 1=1 ~ 7 relational expression can the rest may be inferred.
The 3rd adjustment unit 70 in Fig. 8 is in order to according to numerical value S 0_ m2 calculates S 0_ m1*2+1, S 0_ m1*4+3, S 0_ m1*8+7, S 0_ m1*16+15, S 0_ m1*32+31, S 0_ m1*64+63, S 0seven numerical value such as _ m1*128+127 are how many respectively.The cloth woods value B provided according to judging unit 62 is responsible for by multiplexer 66 in this example 0and numerical value of N 1select corresponding cloth woods value B 1.In like manner, corresponding to this cloth woods value B 0and numerical value of N 1s 1, V 1, R 1the cloth woods value B that also can provide according to judging unit 62 0and numerical value of N 1be selected, produce cloth woods value B for subsequent conditioning circuit 2in time, uses.
Circuit example one of after Fig. 9 illustrates and to be simplified by Fig. 8.In this example, cloth woods value B 0be 1 or 0 to be first judged, determine numerical value of N by judging unit 62 more subsequently 1.Thereafter each adjustment unit, multiplier, divider, comparator are all for cloth woods value B 0be 1 or 0 two kind of situation share.Therefore, cloth woods value B 0be used to control multiple multiplexer, select by the numerical value of input judging unit 62, each multiplier, each comparator why.The Detailed Operation mode of the circuit in Fig. 9 with reference to previous cases, can repeat no more.
From above example, according to result issuable in decode procedure, decoder module 20 can be disassembled as organizing circuit more, calculates the Output rusults corresponding to various possibility simultaneously.For the circuit shown in Fig. 8, need not wait for that the reformer unit 12E as Fig. 1 determines V 1, R 1why continue to produce cloth woods value B 1.By this, the work period T of cloth woods entropy decoder 200 can be shortened further, promotes its operating frequency.It should be noted that as shown in Figure 8, the element that the above-mentioned mode disassembling circuit computing only adopts is multiplier, divider, comparator mostly, and such circuit framework is simple compared to the circuit additionally containing many adder-subtractors, can saving chip area when realizing.
Be a kind of cloth woods entropy decoding method being applied to image playing system according to another embodiment of the present invention, Figure 10 is its flow chart.This image playing system comprises a buffer, in order to the bit segment in this bit element flow temporary.First, step S11 has the first bit amount N for utilizing in this bit segment 1one first section, produce correspond to the first cloth woods value B 1numerical value V 1.For the situation that Fig. 4 illustrates, the first bit amount N 1produce in the reorganization procedure of work period T0 back segment.Then, step S12 for produce the first cloth woods value B in the first work period 1.Step S13 utilizes in this bit segment to have second bit amount N 2one second section, produce correspond to the second cloth woods value B 2numerical value V 2.For Fig. 4, second bit amount N 2produce in the reorganization procedure of work period T1 leading portion.Subsequently, step S14 is according to the first bit amount N 1and second bit amount N 2from this bit element flow acquisition one new bit segment.The step S15 that simultaneously can carry out with step S14 continues in the first work period, produce the second cloth woods value B 2.
Then, step S16 corresponds to the 3rd cloth woods value B for producing 3numerical value V 3.Step S17 optionally adjusts numerical value V after buffer is updated according to this new bit segment 3.For Fig. 4, numerical value V 3produce in the reorganization procedure of work period T1 back segment, and the time upgrading buffer can be arranged at work period T2 start front or start time; After buffer is updated, can according to numerical value V 3required bit amount optionally adjusts numerical value V 3.Step S18 is subsequently exactly the numerical value V utilized in work period T2 after by selective updating 3produce the 3rd cloth woods value B 3.
Flow process shown in Figure 10 can be implemented in various cloth woods entropy decoder, is not limited with circuit frameworks such as Fig. 1 or Fig. 6.
By the above detailed description of preferred embodiments, it is desirable to clearly to describe feature of the present invention and spirit, and not with above-mentioned disclosed preferred embodiment, category of the present invention is limited.On the contrary, its objective is wish to contain various change and tool equality be arranged in the present invention institute in the category of the scope of the claims applied for.

Claims (9)

1. a cloth woods entropy decoder, has the bit element flow about image data in order to decoding, comprises:
One decoder module, produce one according to this bit element flow and open beginning cloth woods value, one first cloth woods value and one second cloth woods value, this decoder module needs one first bit amount when producing first numerical value corresponding to this first cloth woods value, and a second bit amount is needed in time producing the second value corresponding to this second cloth woods value, wherein this first cloth woods value, this second value, this second cloth woods value and are fixed tentatively third value corresponding to one of one the 3rd cloth woods value and are produced in the same work period;
One buffer, in order to the bit segment in this bit element flow temporary, for this decoder module, this bit segment contains this first bit amount and this second bit amount; And
One update module, captures a new bit segment according to this first bit amount and this second bit amount from this bit element flow, and produce the third value step corresponding to the 3rd cloth woods value at this decoder module before, upgrades this buffer according to this new bit segment;
Wherein this decoder module optionally adjusts this tentative third value corresponding to the 3rd cloth woods value after this buffer is updated.
2. cloth woods entropy decoder as claimed in claim 1, it is characterized in that, this first bit amount and this second bit amount are at most 7 bits separately, and the capacity of this buffer is 16 bits.
3. cloth woods entropy decoder as claimed in claim 1, it is characterized in that, this first bit amount has N kind possibility, and N is a positive integer, and this decoder module comprises:
One preliminary arithmetic element, corresponds to this scope opening beginning cloth woods value in order to basis and a probability produces the rear separation number of an adjustment;
One judging unit, in order to determine this first bit amount according to separation number after this adjustment;
One first adjustment unit, in order to produce (N-1) individual term of reference according to separation number after this adjustment;
One second adjustment unit, in order to according to correspond to this open one of beginning cloth woods value open the beginning numerical value produce (N-1) individual referential data;
N group counting circuit, in order to according to separation number after this adjustment, to open beginning cloth woods value corresponding to this this open beginning numerical value, should (N-1) individual term of reference and N number of candidate Bu Lin value should be produced by (N-1) individual referential data; And
One first multiplexer, in order to select this second cloth woods value according to this first bit amount in this N number of candidate Bu Lin value.
4. cloth woods entropy decoder as claimed in claim 3, is characterized in that, this N group counting circuit produces one separately with reference to separation number, and this decoder module comprises further:
One second multiplexer, in order to select the separation number corresponding to this first cloth woods value in this N number of reference separation number according to this first bit amount;
One the 3rd multiplexer, in order to this first numerical value opening beginning numerical value according to this first bit amount from this corresponding to that this opens beginning cloth woods value and should select in (N-1) individual referential data corresponding to this first cloth woods value; And
One the 4th multiplexer, in order to according to this first bit amount separation number and the scope that should select in (N-1) individual term of reference corresponding to this first cloth woods value after this adjustment.
5. cloth woods entropy decoder as claimed in claim 3, it is characterized in that, N equals eight.
6. cloth woods entropy decoder as claimed in claim 3, it is characterized in that, this first adjustment unit utilizes one or more shift unit to produce these terms of reference.
7. be applied to a cloth woods entropy decoding method for an image playing system, in order to a bit element flow of decoding, this image playing system comprises a buffer, and in order to a bit segment in this bit element flow temporary, this coding/decoding method comprises:
Utilize in this bit segment one first section with one first bit amount, produce one first numerical value corresponding to one first cloth woods value;
One first cloth woods value is produced in one first work period;
Utilize in this bit segment one second section with a second bit amount, produce the second value corresponding to one second cloth woods value;
A new bit segment is captured from this bit element flow according to this first bit amount and this second bit amount;
This second cloth woods value is produced in this first work period;
Produce the tentative third value corresponding to one the 3rd cloth woods value; And
In one second work period, utilize one to be produced the 3rd cloth woods value by the tentative third value optionally adjusted;
Wherein, correspond between the third value step of the 3rd cloth woods value in stream this new bit segment step of acquisition and generation, also comprise and upgrade this buffer according to this new bit segment, then optionally adjust this tentative third value.
8. cloth woods entropy decoding method as claimed in claim 7, it is characterized in that, this first bit amount and this second bit amount are at most 7 bits separately, and the capacity of this buffer is 16 bits.
9. cloth woods entropy decoding method as claimed in claim 7, it is characterized in that, the time upgrading this buffer can be arranged at when this bit element flow has captured this new bit segment or when this second work period starts.
CN201110307770.7A 2011-09-28 2011-09-28 The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system Expired - Fee Related CN103037213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110307770.7A CN103037213B (en) 2011-09-28 2011-09-28 The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110307770.7A CN103037213B (en) 2011-09-28 2011-09-28 The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system

Publications (2)

Publication Number Publication Date
CN103037213A CN103037213A (en) 2013-04-10
CN103037213B true CN103037213B (en) 2016-02-17

Family

ID=48023638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110307770.7A Expired - Fee Related CN103037213B (en) 2011-09-28 2011-09-28 The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system

Country Status (1)

Country Link
CN (1) CN103037213B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306937B (en) * 2015-11-17 2018-03-27 福州瑞芯微电子股份有限公司 A kind of VP9 entropy decodings computational methods and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072353A (en) * 2006-06-08 2007-11-14 威盛电子股份有限公司 Decoding system and graphics processing unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5784631A (en) * 1992-06-30 1998-07-21 Discovision Associates Huffman decoder
WO2007067956A2 (en) * 2005-12-07 2007-06-14 The Trustees Of Columbia University In The City Of New York System and method for multiple-factor selection

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072353A (en) * 2006-06-08 2007-11-14 威盛电子股份有限公司 Decoding system and graphics processing unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Xi Chen,et al.A Modified Entropy Approach for Construction of Probabilistic Boolean Networks.《The Fourth International Conference on Computational Systems Biology (ISB2010)》.2010,第243-250页. *

Also Published As

Publication number Publication date
CN103037213A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
US20050198471A1 (en) Micro-controller for reading out compressed instruction code and program memory for compressing instruction code and storing therein
CN103037213B (en) The cloth woods entropy decoding method of cloth woods entropy decoder and image playing system
US20070233772A1 (en) Modular multiplication acceleration circuit and method for data encryption/decryption
US8688947B1 (en) Aligned data access
CN114637711B (en) Chip control method, control data transmission method, device and computer equipment
US6789097B2 (en) Real-time method for bit-reversal of large size arrays
JP2001243018A (en) Data converting device
US20190286418A1 (en) Architecture and instruction set to support integer division
JPH11313328A (en) Image processing unit
JP2002533804A (en) Method and arrangement for generating and executing a compressed program for a VLIW processor
EP2913750B1 (en) Information processing device, broadcast reception device, and software-data update method
JP3260630B2 (en) Constant divider and constant division method
EP1783602A2 (en) Apparatus and method to find the maximum or minimum of a set of numbers
US6393452B1 (en) Method and apparatus for performing load bypasses in a floating-point unit
TWI455595B (en) Boolean entropy decoder and boolean entropy decoding method in video display system
CN101901130B (en) Instruction distributing and instruction decode preprocessing device
JP2005025752A (en) Device and method for processing digital image data
JP2002279792A (en) Semiconductor integrated circuit device
JP3844465B2 (en) Overriding the event vector table
CN116127894A (en) Circuit, method, device and medium for data sorting
CN102681796B (en) RAM (Random Access Memory) distribution structure in data multistage pipelining algorithm module
US7725688B1 (en) System and method for storing states used to configure a processing pipeline in a graphics processing unit
JP2010086321A (en) Memory control system
US5815098A (en) Circuit and method for efficiently expanding compressed data stored in memory
CN116600234A (en) Audio stream processing method and device, electronic equipment, storage medium and vehicle

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160217

Termination date: 20190928