CN101009829A - Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation - Google Patents

Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation Download PDF

Info

Publication number
CN101009829A
CN101009829A CN 200610004506 CN200610004506A CN101009829A CN 101009829 A CN101009829 A CN 101009829A CN 200610004506 CN200610004506 CN 200610004506 CN 200610004506 A CN200610004506 A CN 200610004506A CN 101009829 A CN101009829 A CN 101009829A
Authority
CN
China
Prior art keywords
quantization step
value
unit
threshold value
bit
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.)
Pending
Application number
CN 200610004506
Other languages
Chinese (zh)
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to CN 200610004506 priority Critical patent/CN101009829A/en
Priority to PCT/JP2007/051533 priority patent/WO2007086590A2/en
Publication of CN101009829A publication Critical patent/CN101009829A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/152Data rate or code amount at the encoder output by measuring the fullness of the transmission buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/48Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The related transition coding device comprises: a decoding unit to decode the first bit flow, a bit configuring unit to estimate available bit number during coding, a calculating unit for quantized span, a regulator for quantized span to decide a second quantized span and compute the ratio between the second and first spans, and a shift unit to shift decoded data according to former ratio, wherein the regulator sets a first threshold not less than 2 times of the first quantized span, sets the second span same as the first threshold when the candidate span not less than the threshold, or same as the first span.

Description

Can and the bit rate transformation coding method of accumulated error, transcriber, and integrated circuit
Technical field
The invention relates to a kind of transform coding device and method, be meant a kind of transform coding device and method that can reduce quantization error especially.
Background technology
When image must be stored to different device, or need on different device, to transmit, when playing, must convert image compression data to different-format (format) by a kind of transform coding device (transcoder), with specification or the frequency range that meets different device, for example: will change into the form of MPEG 4 with the data that MPEG 2 forms are encoded into.
Referring to Fig. 1 and Fig. 2, known a kind of transform coding device 10 is described in U.S. Patent number US6590936 B1, and the transform coding device 10 in this patent comprises decoding unit (decodingunit) Da1 and coding unit (encoding unit) Ea1.
This decoding unit Da1 comprises variable-length decoding unit (variable length decodingunit) 100, inverse quantization unit (inverse quantization unit) 101a, anti-discrete cosine converting unit (inverse discrete cosine transform unit) 102, adder (adder) 103 and frame memory (frame memory) 104.
This coding unit Ea1 comprises subtracter 105, discrete cosine transform unit (discrete cosinetransform unit) 106, quantifying unit (quantization unit) 152, inverse quantization unit 108, anti-discrete cosine converting unit 109, adder 110, frame memory 111, variable length code unit (variablelength encoding unit) 112 and speed control unit (rate control unit) 113.
And the quantifying unit 152 of this coding unit Ea1 comprises candidate's quantization step inference unit (candidate quantization step derivation unit) 250, quantization step inference unit (quantization step derivation unit) 252 and quantizer (quantizer) 201.
Coded data Eg1 inputs to the variable-length decoding unit 100 of this decoding unit Da1, and this coded data Eg1 encoded according to the first quantization step Qs1 originally in when coding.
And this variable-length decoding unit 100 is with the data Eg1 decoding that receives, to produce the data Vg after deciphering, and data Vg is again through after the computing of inverse quantization unit 101a execution inverse quantization, the data I Qg that handles is delivered to anti-discrete cosine converting unit 102, and this inverse quantization unit 101a also delivers to quantifying unit 152 with the first quantization step Qs1.
Anti-discrete cosine converting unit 102 will receive the data I Qg that is frequency domain (frequency domain) and convert a kind of data I Tg that is spatial domain (space domain) to.And adder 103 is data I Tg and its prediction data (prediction data) Mg1 addition, and the data that the Rg1 as a result after the addition is used as after deciphering are delivered to coding unit Ea1, and the Rg1 as a result after the addition is also delivered to frame memory 104.And the data Rg1 that frame memory 104 storages are exported from adder 103 is used as prediction data Mg1.
The subtracter 105 calculated data Rg1 of coding unit Ea1 and the difference Dg of its prediction data Mg2, and will being the difference Dg of spatial domain, discrete cosine transform unit 106 converts frequency domain information Tg to, quantifying unit 152 then quantizes this frequency domain information Tg according to a quantization control signal Cq and this first quantization step Qs1 with the second quantization step Qs2, and the data Qg after having been quantized.
Data Qg after having quantized carries out inverse quantization via this inverse quantization unit 108 with this second quantization step Qs2, and the data I Qg2 behind the inverse quantization is delivered to anti-discrete cosine converting unit 109 handle, to obtain data I Tg2, and after data I Tg2 followed its predict data Mg2 via adder 110 additions, the data Rg2 after the addition delivered to frame memory 111 and stores.
And the data Qg after quantifying unit 152 quantifications is again via behind variable length coder 112 codings, they promptly be the coded data Eg2 that finishes at last, and the form of this coded data Eg2 is different with the form of the coded data Eg1 that inputs to this transform coding device 10 at first.Speed control unit 113 then is the coding situation according to coded data Eg2, calculates target bit (target numberof bits) to produce corresponding quantization control signal Cq.
It should be noted that this quantifying unit 152 is to carry out quantification through a series of action, the start situation is as follows in detail: candidate's quantization step Qsb is judged according to this quantization control signal Cq in candidate's quantization step inference unit of quantifying unit 152 250.This quantization step inference unit 252 then determines this second quantization step Qs2 according to this candidate's quantization step Qsb and the first quantization step Qs1.This quantizer 201 quantizes data Tg with this second quantization step Qs2 that this quantization step inference unit 252 is reasoned out again.
With reference to figure 2~3, and the mode that this quantization step inference unit 252 determines this second quantization step Qs2 according to this candidate's quantization step Qsb and the first quantization step Qs1 is with this candidate's quantization step Qsb and thresholding quantization step Qth (=1.5 * Qs1) and fixedly multiple (constant multiple) quantization step Qmu (=2 * Qs1) comparisons.And at this candidate's quantization step Qsb (Qsb<Qth), the value of setting this second quantization step Qs2 is identical with this first quantization step Qs1 during less than this thresholding quantization step Qth; And when Qth≤Qsb≤Qmu, the value of setting this second quantization step Qs2 is Qmu (=2 * Qs1); And at this candidate's quantization step Qsb fixedly (Qsb>Qmu), the value of setting this second quantization step Qs2 is the value of this candidate's quantization step Qsb during multiple quantization step Qmu greater than this.
And this known quantization step inference unit 252 according to the reason of this second quantization step of mode inference Qs2 of Fig. 3 is because bit rate (bit rate) and the inverse (1/quantization error) of quantization error have the relation of Fig. 4.The representative of solid line among Fig. 4 is to view data during with quantization step QPi direct coding (direct coding), the quantization error inverse that produces under different bit rates; And after on behalf of data of having encoded with quantization step QPi, the dotted line among Fig. 4 pass through quantization step QPi inverse quantization again, when carrying out transform coding flow process (transcoding process) with quantization step QPr, the quantization error inverse that under different bits, produces.
Shown in the solid line of Fig. 4, in general, the function of bit and quantization error inverse is being that direct coding under the parameter (direct coding) almost is linear with the quantization step.But shown in the dotted line of Fig. 4, the function of bit and quantization error inverse with the quantization step be under the parameter again transform coding (transcoding) be not to be linear.And it should be noted that when QPi<QPr<2 * Qpi the error maximum of solid line and dotted line; And when QPi 〉=QPr or QPr 〉=2 * QPi, the difference of solid line and dotted line is very little, almost overlap, and when especially it should be noted that QPr=2 * Qpi, the difference of solid line and dotted line is very little.
Therefore.Known transform coding device 10 is according to the statistical property of Fig. 4, and (2 * Qs1) time, the value of setting the second quantization step Qs2 is Qs1 or 2 * Qs1 less than 2 times of first quantization step at candidate's quantization step Qsb; And when candidate's quantization step Qsb is not less than 2 * Qs1, do not adjust, the value of promptly setting the second quantization step Qs2 equals the value of candidate's quantization step Qsb.And can obtain as shown in Figure 3 result.
But known this transform coding device 10 also reckons without bits proportion (bit ratio) and the relation of quantization step.Consult another U.S. Pat 6208688 B1, this patent description is under general situation, and the statistical property relation of bits proportion and quantization step has the relation of Fig. 5.Fig. 5 is to be 8 times at the first quantization step Qs1, when candidate's quantization step Qsb changes, and the situation that bits proportion changes.And can find that by Fig. 5 under different candidate's quantization step Qsb, bits proportion roughly is divided into two grades, and between these two different brackets, the fast-changing slope of a bits proportion section is arranged, and be positioned at candidate's quantization step Qsb of each grade, bits proportion to each other is approximate.
Relation at this key diagram 5 of giving an example, for convenience of explanation, earlier Fig. 5 is simplified to schematic diagram shown in Figure 6, as previously mentioned, during greater than 2 * Qs1, directly the value of the second quantization step Qs2 is set to identical with the value of candidate's quantization step Qsb known transform coding device 10 at candidate's quantization step Qsb.But in general, because 2 * Qs1 (as the circle on Fig. 6) with all be the bits proportion that is positioned at same grade in fact greater than candidate's quantization step Qsb (as the triangle on Fig. 6) of 2 * Qs1, so in order to satisfy the situation of Fig. 4 simultaneously, the value of candidate's quantization step Qsb should be chosen to be 2 * Qs1, the comparable thus known transform coding device 10 selected second quantization step Qs2 are little, and obtain less quantization error.
And the statistical relationship between bits proportion and the quantization step may in Fig. 7, mainly be by two the fast-changing slope of bits proportion sections as shown in Figure 7 also, and fall into three classes bits proportion (level).For convenience of explanation, will be positioned at the lowermost point of these two slope sections orders respectively and is Qc1 and Qc2.And by statistical relationship as can be known, in general, 2 * Qs1 is between Qc1 and Qc2.If when Qc1≤Qsb<Qc2, because Qsb and Qc1 have approximate bits proportion, and satisfy simultaneously under the situation of Fig. 4, so should select the value of the second quantization step Qs2 is 2 * Qs1, but not equal Qsb as the known Qs2 of selection, to reach under the not serious prerequisite that influences bits proportion, quantization step is reduced.In addition, when Qsb>Qc2, because Qsb and Qc2 have approximate bits proportion and because the bits proportion of Qc2 little than 2 * Qs1, so should not select the second quantization step Qs2 to equal Qsb, and should select Qs2 to equal Qc2 as known.
Therefore, known transform coding device 10 is because only consider the relation of quantization step and quantization error, and do not consider the relation of quantization step and bits proportion, so quantization error is further reduced.
Summary of the invention
Therefore, the purpose of this invention is to provide a kind of transformation coding method that can judge the second suitable quantization step.
Another object of the present invention provides a kind of transform coding device that can lower quantization error.
A further object of the present invention is to provide a kind of during at transform coding, can lower the integrated circuit (IC) of quantization error.
Therefore, transform coding device of the present invention is applicable to and converts first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding.And this transform coding device comprises quantization step adjuster, decoding unit, coding unit, quantization step computing unit, shift unit and bit configuration unit.And the quantization step adjuster comprises analytic unit and quantization step decision unit.
And the employed transformation coding method of this transform coding device comprises following steps:
Step (A), decoding unit is with this first bit stream decoding.
Step (B), next input unit of bit configuration unit estimation is spendable bit number when coding.
Step (C), the quantization step computing unit calculates candidate's quantization step according to the bit number that estimates.
Step (D), quantization step adjuster are judged one second quantization step according to the value of this candidate's quantization step, and obtain the ratio of this second quantization step and this first quantization step, and judge that the method for this second quantization step comprises following substep:
Substep (D-1), analytic unit is set first critical value that a size equals 2 times of first quantization step, and dynamically determines one first threshold value according to this first critical value and the actual situation of using.
Whether substep (D-2), quantization step determine this candidate's quantization step of unit judges more than or equal to this first threshold value, if, then jump to substep (D-4), if not, then jump to substep (D-3).
Substep (D-3), quantization step decision unit is made as the value of this second quantization step identical with this first quantization step.
Substep (D-4), the value of this second quantization step of quantization step decision unit is set to identical with this first critical value.
Step (E), the ratio value that shift unit draws according to step (D) is done displacement with the data after step (A) decoding.
Step (F), the digital coding after coding unit will be shifted is to obtain this second bit stream.
And the step in the above-mentioned transformation coding method (D) also can comprise following substep:
Substep (D-1), analytic unit is set first critical value that a size equals 2 times of first quantization step, and dynamically determines one first threshold value according to this first critical value and the actual situation of using.
Whether substep (D-2), quantization step determine this candidate's quantization step of unit judges more than or equal to this first threshold value, if, then jump to substep (D-3), if not, then jump to substep (D-5).
Substep (D-3), analytic unit are analyzed the relation of bits proportion and quantization step, judging whether second critical value greater than this first critical value, if, then jump to substep (D-4), if not, then jump to substep (D-6); And in substep (D-3), the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists.
Substep (D-4), it is identical with 4 times of first quantization step that the size of this second critical value of analytic unit is set to, and dynamically determine one second threshold value according to this second critical value and the actual situation of using, and by the value of this candidate's quantization step of quantization step decision unit judges whether more than or equal to this second threshold value, if, then jump to substep (D-7), if not, then jump to substep (D-6).
Substep (D-5), quantization step decision unit is made as the value of this second quantization step identical with this first quantization step.
Substep (D-6), the value of this second quantization step of quantization step decision unit is set to identical with this first critical value.
Substep (D-7), the value of this second quantization step of quantization step decision unit is set to identical with this second critical value.
Integrated circuit of the present invention comprises above-mentioned said decoding unit, bit configuration unit, quantization step computing unit, quantization step adjuster, shift unit and coding unit.And this integrated circuit receives this first bit stream, and converts this first bit stream to this second bit stream output.
Another kind of integrated circuit of the present invention comprises above-mentioned said bit configuration unit, quantization step computing unit and quantization step adjuster.And be applicable to the data that receive after this first bit stream is deciphered.
In addition, transform coding device of the present invention also can comprise quantization step adjuster, decoding unit, coding unit, quantization step computing unit, inverse quantization unit, quantifying unit and bit configuration unit.And the same, this quantization step adjuster is to comprise analytic unit and quantization step decision unit.
And the employed transformation coding method of this transform coding device comprises following steps:
Step (a), decoding unit is with this first bit stream decoding.
Step (b), the data after inverse quantization unit will be deciphered are carried out inverse quantization and are handled.
Step (c), next input unit of bit configuration unit estimation is spendable bit number when coding.
Step (d), the quantization step computing unit calculates candidate's quantization step according to the bit number that estimates.
Step (e), quantization step adjuster are judged one second quantization step according to the value of this candidate's quantization step, and the method for judging comprises following substep:
Substep (e-1), analytic unit is analyzed the relation of bits proportion and quantization step, to determine one first critical value, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step.
Whether substep (e-2), quantization step determine this candidate's quantization step of unit judges more than or equal to this first threshold value, if, then jump to substep (e-4), if not, then jump to substep (e-3).
Substep (e-3), the value of this second quantization step of quantization step decision unit is set to identical with this first quantization step.
Substep (e-4), the value of this second quantization step of quantization step decision unit is set to identical with this first critical value.
Step (f), quantifying unit is carried out quantification treatment with the data of this second quantization step after to inverse quantization.
Step (g), the digital coding after coding unit will quantize is to obtain this second bit stream.
And the step in the above-mentioned transformation coding method (e) also can comprise following substep:
Substep (e-1), analytic unit is analyzed the relation of bits proportion and quantization step, to determine one first critical value, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, be made as identical and the mode that determines this first critical value is a numerical value with this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step.
Whether substep (e-2), quantization step determine this candidate's quantization step of unit judges more than or equal to this first threshold value, if, then jump to substep (e-3), if not, then jump to substep (e-5).
Substep (e-3), analytic unit are analyzed the relation of bits proportion and quantization step, judging whether second critical value greater than this first critical value, if, then jump to substep (e-4), if not, then jump to substep (e-6); And in substep (e-3), the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists, establish this second critical value for identical with the quantization step that in the bits proportion scope of this lower grade, has minimum value.
Substep (e-4), whether the value of this candidate's quantization step of quantization step decision unit judges is more than or equal to one second threshold value, if, then jump to substep (e-7), if not, then jump to substep (e-6), and this second threshold value to be analytic unit dynamically determine according to this second critical value and the actual situation of using.
Substep (e-5), the value of this second quantization step of quantization step decision unit is set to identical with this first quantization step.
Substep (e-6), the value of this second quantization step of quantization step decision unit is set to identical with this first critical value.
Substep (e-7), the value of this second quantization step of quantization step decision unit is set to identical with this second critical value.
Another kind of integrated circuit of the present invention comprises above-mentioned said quantization step adjuster, decoding unit, coding unit, quantization step computing unit, inverse quantization unit, quantifying unit and bit configuration unit.And this integrated circuit receives this first bit stream, and converts this first bit stream to this second bit stream output.
Another kind of integrated circuit of the present invention comprises above-mentioned said bit configuration unit, quantization step computing unit and quantization step adjuster.And be applicable to the data that receive after this first bit stream is deciphered.
Description of drawings
Fig. 1 is the circuit block diagram of known transform coding device;
Fig. 2 is the circuit block diagram of known quantifying unit;
Fig. 3 is the schematic diagram of the relation of the known candidate's quantization step of explanation and second quantization step;
Fig. 4 is the schematic diagram of the relation of explanation bit and quantization error inverse;
Fig. 5 is the schematic diagram of the relation of explanation bits proportion and candidate's quantization step;
Fig. 6 is the schematic diagram of the relation of explanation bits proportion and candidate's quantization step;
Fig. 7 is the schematic diagram of the relation of explanation bits proportion and candidate's quantization step;
Fig. 8 is the circuit block diagram of first preferred embodiment of transform coding device of the present invention;
Fig. 9 is the flow chart of first preferred embodiment of transformation coding method of the present invention;
Figure 10 is the circuit diagram of quantization step adjuster of first preferred embodiment of this transform coding device;
Figure 11 is the detail flowchart of step 24 of first preferred embodiment of this transformation coding method;
Figure 12 is the schematic diagram of the relation of explanation bits proportion and candidate's quantization step;
Figure 13 illustrates when whether second critical value exists, the schematic diagram of the relation of the candidate's quantization step and second quantization step;
Figure 14 is the result who illustrates the method for carrying out first embodiment;
Figure 15 is the result who illustrates the method for carrying out first embodiment;
Figure 16 is the circuit block diagram of second preferred embodiment of transform coding device of the present invention;
Figure 17 is the flow chart of second preferred embodiment of transformation coding method of the present invention; And
Figure 18 is the detail flowchart of step 34 of second preferred embodiment of this transformation coding method.
Embodiment
About aforementioned and other technology contents, characteristics and effect of the present invention, with reference in two graphic DETAILED DESCRIPTION OF THE PREFERRED, can clearly present in following cooperation.
Before the present invention is described in detail, it should be noted that in the following description content similarly assembly is to represent with identical numbering.
Referring to Fig. 8, first preferred embodiment of transform coding device of the present invention comprises quantization step adjuster (quantization step adjuster) 11, decoding unit (decoding unit) 12, coding unit (encoding unit) 13, quantization step computing unit (quantization step calculating unit) 14, inverse quantization unit (inverse quantization unit) 15, quantifying unit (quantization unit) 16 and bit configuration unit (bit allocation unit) 17.
And the start situation of these a plurality of unit 11~17 will illustrate one by one in conjunction with the method flow of Fig. 9.
Referring to Fig. 8 and Fig. 9, the employed transformation coding method of transform coding device of this first preferred embodiment comprises following steps:
In step 21, this decoding unit 12 receives first bit stream that has been encoded (this first bit stream is according to the result behind the first quantization step Qs1 coding), and with this first bit stream decoding, and in the present embodiment, this decoding unit 12 is the modes that adopt variable-length decoding (variable lengthdecode), as: Huffman code (Huffman code).Data after this decoding unit 12 also will be deciphered are sent to this inverse quantization unit 15.
In step 22, this inverse quantization unit 15 is carried out the operation of inverse quantization according to this first quantization step Qs1 to the data that receive, and the data behind the inverse quantization are delivered to this quantifying unit 16.
In step 22, this bit configuration unit 17 is also according to the preposition information that receives, as: the set goal bit rate (target bitrate), unit-sized to be processed (as: size of next input macro zone block (macro-block) or the size of next frame), and the original bit, the frame per second information such as (frame rate) that are comprised in first bit stream, estimate next input unit, as: macro zone block, at spendable bit number of when coding, and results estimated delivered to quantization step computing unit 14.And because bit configuration unit 17 employed evaluation methods are prior art, so do not repeat them here.
In step 23, the target bit that quantization step computing unit 14 estimates according to bit configuration unit 17, calculated candidate quantization step Qsb.And because quantization step computing unit 14 employed evaluation methods are prior art, so do not repeat them here.
In step 24, quantization step adjuster 11 obtains second a suitable quantization step Qs2 according to the candidate's quantization step Qsb and the first quantization step Qs1 that step 23 draws.And the detailed step of adjusting will be in narration in detail more after a while.
In step 25, the data that the second quantization step Qs2 that quantifying unit 16 is obtained with step 24 handles inverse quantization unit 15 are carried out quantification treatment.
In step 26, the data after 13 pairs of quantifying unit of coding unit 16 quantize are encoded to obtain second bit stream.In the present embodiment, encode in the mode of variable length code.
Referring to Figure 10, and this quantization step adjuster 11 comprises analytic unit (analyzing unit) 111 and quantization step decision unit (quantization step deciding unit) 112.And the operational scenario of this Unit two 111,112 will illustrate together in conjunction with the method flow of Figure 11.
Referring to Figure 10 and Figure 11, determine the method for the second quantization step Qs2 to comprise following substep in step 24:
At substep 240, analytic unit 111 receives the value of the first quantization step Qs1, and analyzes the relation of bits proportion and quantization step, determining one first critical value Qc1, and determines one first threshold value Qth1 simultaneously.
Analytic unit 111 determines that the mode of the first critical value Qc1 is as follows: according to the statistical relationship of bits proportion and quantization step, under different candidate's quantization step Qsb, bits proportion has two different brackets (level) at least, and it is approximate to be positioned at candidate's quantization step Qsb bits proportion value to each other of same grade.The numerical value of this first critical value Qc1 then be set to identical with the quantization step that in the bits proportion scope of second largest grade, has minimum value.
But it should be noted that if according to this setting this first critical value Qc1 can be less than 2 times of first quantization step, in order to meet the situation of Fig. 4, the first critical value Qc1 directly changed be made as that (2 * Qs1) value is identical with 2 times of first quantization step.In fact, the possible case of the first critical value Qc1 can be more than or equal to 2 times of first quantization step.
After determining this first critical value Qc1, this analytic unit 111 further dynamically determines one first threshold value Qth1 according to this first critical value Qc1 and the actual situation (as the bit compression situation) of using.As: when the bit compression situation does not reach expection, the numerical value of this first threshold value Qth1 can be turned down.But it should be noted that this first threshold value Qth1 can not and need greater than this first quantization step Qs1 greater than this first critical value Qc1.
At substep 241, quantization step decision unit 112 receives candidate's quantization step Qsb that this quantization step computing unit 14 transmits, and judges that whether candidate's quantization step Qsb is more than or equal to this first threshold value Qth1.If, then jump to substep 242, if not, then jump to substep 244.
At substep 242, analytic unit 111 is analyzed the relation of bits proportion and quantization step, to judge whether second a critical value Qc2 greater than this first critical value Qc1.If, then jump to substep 243, if not, then jump to substep 245.
With reference to Figure 10~12, this analytic unit 111 judges whether that the method for this second critical value Qc2 is to judge in the relation of this bits proportion and quantization step, under different candidate's quantization step Qsb, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value Qc1 place.If have, represent that then the second critical value Qc2 exists, and the numerical value of this second critical value Qc2 is set to identical with the quantization step that has minimum value in the bits proportion scope of this lower grade.
At substep 243, whether the value that candidate's quantization step Qsb is judged in quantization step decision unit 112 more than or equal to one second threshold value Qth2, if, then jump to substep 246, if not, then jump to substep 245.And this second threshold value Qth2 dynamically determines according to this second critical value Qc2 and the actual situation (as: compression scenario) of using.It should be noted that this second threshold value Qth2 can not be greater than this second critical value Qc2, can not be less than this first critical value Qc1.
At substep 244, the value of quantization step decision unit 112 second quantization step Qs2 is set to identical with the value of this first quantization step Qs1.
At substep 245, the value of quantization step decision unit 112 second quantization step Qs2 is set to identical with the first critical value Qc1.
At substep 246, the value of quantization step decision unit 112 second quantization step Qs2 is set to identical with the second critical value Qc2.
It should be noted that in substep 242, also can set up the relation table or the graph of a relation (as Figure 12) of a quantization step and bits proportion earlier, and in this step 243, judgement is directly finished in the mode of tabling look-up or look into figure in this quantization step decision unit 112.
In above-mentioned flow process, set up the purpose of this first threshold value Qth1 to be used for promptly judging that the second quantization step Qs2 should be set to equate with the first critical value Qc1 or the value of the first quantization step Qs1; And the purpose of the second threshold value Qth2 is used for promptly judging that the second quantization step Qs2 should be set to equate with the first critical value Qc1 or the second critical value Qc2.
It should be noted that, the mode of dynamically adjusting this first threshold value Qth1 size be as: when the bit compression situation does not reach when expection, the numerical value of this first threshold value Qth1 can be turned down, so, this second quantization step Qs2 is set to the chance identical with the first critical value Qc1 can be increased than being set to the chance identical with the first quantization step Qs1, and make this second quantization step Qs2 bigger than this first quantization step Qs1, to reach higher bit compression rate, in like manner, also can adjust this second threshold value Qth2 according to identical reason.
In sum, will be under different candidate's quantization step Qsb, the value of the second quantization step Qs2 is put in order as shown in figure 13.The left side of Figure 13 is the situation that exists as the second critical value Qc2.In this case, when Qsb<Qth1, Qs2=Qs1 then; And as Qth1≤Qsb<Qth2, then Qs2=Qc1; And when Qsb 〉=Qth2, Qs2=Qc2 then.The right-hand part of Figure 13 then is the situation that does not have the second critical value Qc2 to exist.In this case, when Qsb<Qth1, Qs2=Qs1 then; And as Qth1≤Qsb, then Qs2=Qc1.
In addition, in the above-mentioned flow process of the several simple case aid illustration of this measure, with reference to Figure 14, suppose to have candidate's quantization step Qsb (being the triangle on Figure 14) greater than the first threshold value Qth1, and not having the second critical value Qc2 this moment exists, then carrying out the result of above-mentioned steps 240,241,242,245 in regular turn, is the first critical value Qc1 (being the filled circles on Figure 14) with the value of setting the second quantization step Qs2, just the triangle on Figure 14 is sorted out the filled circles to Figure 14.In example as shown in figure 15, suppose to have the existence of the second critical value Qc2, and suppose that candidate's quantization step Qsb is the rhombus on Figure 15, then carry out the result of above-mentioned steps 240~243,245 in regular turn, the value of the second quantization step Qs2 should be Qc1.That is to say that rhombus should be sorted out to filled circles; If but candidate's quantization step Qsb is the triangle on Figure 15, then carry out the result of above-mentioned steps 240~243,246 in regular turn, the value of the second quantization step Qs2 should be Qc2.That is to say that triangle should be sorted out to open circles.
The analytic unit 111 of Fig. 8 and Figure 10, quantization step decision unit 112, decoding unit 12, coding unit 13, quantization step computing unit 14, inverse quantization unit 15, quantifying unit 16 and bit configuration unit 17 all are be that unit is in the execution computing with a macro zone block (macroblock), but the present invention is not limited thereto, can be unit with a frame (frame) or a fragment (slice) also.It should be noted that, after the macro zone block of first input is carried out the step of Figure 11 in regular turn, determined the numerical values recited of the first critical value Qc1, the second critical value Qc2, the first threshold value Qth1 and the second threshold value Qth2, each macro zone block of input then, when repeating the flow process of Figure 11, not necessarily to recalculate the corresponding first critical value Qc1, the second critical value Qc2, the first threshold value Qth1 and the second threshold value Qth2.And can continue to continue to use the numerical value that calculates for the first time, to accelerate arithmetic speed.In like manner, when transform coding device of the present invention or transformation coding method have calculated suitable first, second critical value Qc1, Qc2 and first, second threshold value Qth1, Qth2 to the bit stream of input for the first time, then after the numerical value that calculated before also can continuing to use of the bit stream of input again.
In addition, it is pointed out that because first embodiment is a kind of device of transform coding fast, thus unlike the transform coding device more than 10 of prior art some anti-discrete cosine converting units 102,109, discrete cosine transform unit 106 etc.But should be noted that, also can add these members commonly used in the transform coding device of first embodiment, as: anti-discrete cosine converting unit 102,109, discrete cosine transform unit 106, or even the present motion compensation unit (motion compensating unit) used always of on the market transform coding device etc., with the effect of further enhancement transform coding device of the present invention.But because these members commonly used are not the emphasis of the present invention's improvement, so do not repeat them here.
Integrated circuit of the present invention is applicable to and receives this first bit stream, and convert this first bit stream the output of to this second bit stream, and this integrated circuit comprises the decoding unit 12 described in first embodiment, inverse quantization unit 15, bit configuration unit 17, quantization step computing unit 14, quantization step adjuster 11, quantifying unit 16 and coding unit 13.
In addition, integrated circuit of the present invention also can only comprise the bit configuration unit 17 described in first embodiment, quantization step computing unit 14 and quantization step adjuster 11, and receives the data after this first bit stream decoding.
Should be noted that, for the speed of the transform coding device that further promotes first embodiment and help the making of product, also the first critical value Qc1 among first embodiment directly can be set at 2 * Qs1, and when the second critical value Qc2 is arranged, the second critical value Qc2 directly is set at 4 * Qs1.In this case, the transform coding device of first embodiment then can be simplified, and obtains the described result of following second embodiment.
Referring to Figure 16, second preferred embodiment of transform coding device of the present invention comprises quantization step adjuster 11, decoding unit 12, coding unit 13, quantization step computing unit 14, bit configuration unit 17 and shift unit 18 (bit shifting unit).
Because this decoding unit 12, coding unit 13, quantization step computing unit 14, bit configuration unit 17 and first embodiment are similar, so do not repeat them here.Consult Figure 10 and Figure 16, the quantization step adjuster 11 of second embodiment is also similar with first embodiment, but different is, the quantization step decision unit 112 of second embodiment also draws the ratio value (ratio) of the second quantization step Qs2 and the first quantization step Qs1 except the value that determines the second quantization step Qs2.
Referring to Figure 16 and Figure 17, the employed transformation coding method of second preferred embodiment of transform coding device is to comprise following steps:
In step 31, this decoding unit 12 receives first bit stream that has been encoded (this first bit stream is according to the result behind the first quantization step Qs1 coding), and with this first bit stream decoding, and the data after will deciphering (being the discrete cosine transform coefficient) are sent to shift unit 18.
In step 32, next input unit spendable bit number when coding is estimated according to the information that is comprised in the preposition information that receives and first bit stream in this bit configuration unit 17, and results estimated is delivered to quantization step computing unit 14.
In step 33, the bit number that quantization step computing unit 14 estimates according to bit configuration unit 17, calculated candidate quantization step Qsb.
In step 34, quantization step adjuster 11 analyzes the second suitable quantization step Qs2, and learns the ratio of the second quantization step Qs2 and this first quantization step Qs1, and with ratio (1 or 2 or 4), delivers to shift unit 18.The detailed process of step 34 will be in narration in detail more after a while.
In step 35, the ratio value that shift unit 18 transmits according to quantization step adjuster 11 is done displacement with step 31 decoding back and the discrete cosine transform coefficient that is binary form.If that is: ratio value is 2 (promptly the second quantization step Qs2 is 2 times of the first quantization step Qs1), the discrete cosine transform coefficient that then will be binary form moves right 1; And if ratio value is 4 (promptly the second quantization step Qs2 is 4 times of the first quantization step Qs1), the discrete cosine transform coefficient that then will be binary form moves right 2; If but ratio value is 1 (promptly the second quantization step Qs2 equals the first quantization step Qs1), then shift unit 18 is not handled, and the discrete cosine transform coefficient that originally receives is directly delivered to coding unit 13.
In step 36, the data that this coding unit 13 is sent shift unit 18 here are encoded, to obtain second bit stream.
With reference to Figure 10 and 18, determine the method for the ratio of the second quantization step Qs2 and the first quantization step Qs1 to comprise following substep in step 34:
At substep 340, the size that analytic unit 111 is set one first critical value Qc1 equals 2 times of first quantization step, and dynamically determines one first threshold value Qth1 according to this first critical value Qc1 and the actual situation of using.
At substep 341, quantization step decision unit 112 judges that according to candidate's quantization step Qsb that this quantization step computing unit 14 transmits whether candidate's quantization step Qsb is more than or equal to this first threshold value Qth1.If, then jump to substep 342, if not, then jump to substep 344.
At substep 342, analytic unit 111 is analyzed the relation of bits proportion and quantization step, exists to judge whether the second critical value Qc2 that a step 242 that meets first embodiment is carried.If have, then jump to substep 343, if do not have, then jump to substep 345.
At substep 343, analytic unit 111 second critical value Qc2 are set to 4 times of first quantization step, and unlike the first embodiment group.In this substep 343, analytic unit 111 also dynamically determines one second threshold value Qth2 according to this second critical value Qc2 and the actual situation of using.And judge that by this quantization step decision unit 112 whether the value of candidate's quantization step Qsb is more than or equal to the second threshold value Qth2.If, then jump to substep 346, if not, then jump to substep 345.Should be noted that, can not be at this second threshold value Qth2 greater than this second critical value Qc2, can not be less than this first critical value Qc1.
At substep 344, the value of quantization step decision unit 112 second quantization step Qs2 is set to identical with the first quantization step Qs1, and learns the ratio of the second quantization step Qs2 and the first quantization step Qs1, is 1.
At substep 345, the value of quantization step decision unit 112 second quantization step Qs2 is set to that (=2 * Qs1) is identical with the first critical value Qc1.And learn and the ratio of the second quantization step Qs2 and the first quantization step Qs1 be 2.
At substep 346, the value of quantization step decision unit 112 second quantization step Qs2 is set to that (=4 * Qs1) is identical with the second critical value Qc2.And learn and the ratio of the second quantization step Qs2 and the first quantization step Qs1 be 4.
Should be noted that, similar with first embodiment, after the macro zone block of first input is carried out the step of Figure 18 in regular turn, determined the numerical values recited of the first threshold value Qth1 and the second threshold value Qth2, each macro zone block of input then, when repeating the flow process of Figure 18, not necessarily to recalculate the corresponding first threshold value Qth1 and the second threshold value Qth2.And can continue to continue to use the numerical value that calculates for the first time, to accelerate arithmetic speed.In like manner, when transform coding device of the present invention or transformation coding method had calculated suitable first, second threshold value Qth1, Qth2 to the bit stream of input for the first time, the bit stream of input also can be continued to use the numerical value that has calculated before this more afterwards.
Integrated circuit of the present invention also can comprise the decoding unit 12 described in second embodiment, bit configuration unit 17, quantization step computing unit 14, quantization step adjuster 11, shift unit 18 and coding unit 13.
In addition, integrated circuit of the present invention also can only comprise the bit configuration unit 17 described in second embodiment, quantization step computing unit 14 and quantization step adjuster 11, and receives the data after this first bit stream decoding.
In addition, should be noted that quantization step adjuster 11 of the present invention not necessarily will be used for the transform coding device,, can be suitable for so long as the place that needs to carry out quantification treatment is arranged.In like manner, quantization step method of adjustment of the present invention also not necessarily will be used for the flow process of transform coding.
In sum, the present invention has first and second preferred embodiment of the transform coding device of this quantization step adjuster 11, except considering the relation between bit and quantization error, also the bits proportion key element is added consideration together, therefore have less quantization error than prior art.And in a second embodiment, because set the first threshold value Qc1 and the second threshold value Qc2 is respectively 2 * Qs1 and 4 * Qs1, so the ratio of the second quantization step Qs2 and the first quantization step Qs1 all is 2 multiple, so only need replace inverse quantization unit 15 and the quantifying unit 16 of first embodiment with a shift unit 18, and quantize again behind the data inverse quantization that does not need to have deciphered.
The above person of thought, only for the present invention's preferred embodiment, when the scope that can not limit the invention process with this, promptly the simple equivalent of being done according to the present patent application claim and invention description content generally changes and modifies, and all still belongs in the scope that patent of the present invention contains.

Claims (78)

1. a transformation coding method is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, and this transformation coding method comprises following steps:
Step (A) is with this first bit stream decoding;
Step (B) is estimated next input unit spendable bit number when coding;
Step (C) according to the bit number that estimates, calculates candidate's quantization step;
Step (D) according to the value of this candidate's quantization step, is judged second quantization step, and obtains the ratio value of this second quantization step and this first quantization step, and judges that the method for this second quantization step comprises following substep:
Substep (D-1) is set first critical value that a size equals 2 times of first quantization step, and dynamically determines one first threshold value according to this first critical value and the actual situation of using;
Whether substep (D-2) judges this candidate's quantization step more than or equal to this first threshold value, if, then jump to substep (D-4), if not, then jump to substep (D-3);
Substep (D-3), the value of this second quantization step are set to identical with this first quantization step; And
Substep (D-4) is made as the value of this second quantization step identical with this first critical value;
Step (E) according to the ratio value that step (D) draws, is done displacement with the data after step (A) decoding; And
Step (F), the digital coding after step (E) handled is to obtain this second bit stream.
2. transformation coding method according to claim 1, wherein, this first threshold value in the substep (D-1) can not be greater than this first critical value, but needs greater than this first quantization step.
3. transformation coding method according to claim 2, wherein, this first threshold value in the substep (D-1) dynamically determines according to the bit compression situation, and when the bit compression situation does not reach expection, then the numerical value of this first threshold value is turned down.
4. transformation coding method according to claim 1, wherein, in step (E), if ratio value is 2, the data after then will deciphering move right 1, and if ratio value be 1, then be not shifted.
5. transformation coding method according to claim 1, wherein, step (B) is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
6. a transform coding device is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, and this transform coding device comprises:
Decoding unit is used for this first bit stream decoding;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is used for being electrically connected with this bit configuration unit, and the figure place calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit is used to receive the value of this first quantization step, and sets first critical value that a size equals 2 times of first quantization step, and dynamically determines first threshold value according to this first critical value and the actual situation of using;
Quantization step decision unit is used for being electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this first threshold value, is made as the value of this second quantization step identical with this first critical value; And, be made as the value of this second quantization step identical with this first quantization step when this candidate's quantization step during less than this first threshold value; And obtain the ratio value of this second quantization step and this first quantization step;
Shift unit is used for being electrically connected with this quantization step decision unit and this decoding unit, and the data after according to the ratio value that this quantization step decision unit is obtained this decoding unit being deciphered are done displacement; And
Coding unit is used for being electrically connected with this shift unit, and the data after this shift unit processing are encoded to obtain this second bit stream.
7. transform coding device according to claim 6, wherein, this analytic unit is in decision during this first threshold value, and can limit this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
8. transform coding device according to claim 7, wherein, this analytic unit is dynamically to determine this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, then this analytic unit was turned down the numerical value of this first threshold value.
9. transform coding device according to claim 6, wherein, if ratio value is 2, the data after this shift unit then will be deciphered move right 1, and if ratio value be 1, then be not shifted.
10. according to the 6th described transform coding device of claim, wherein, this bit configuration unit is according to the set goal bit, input unit-sized to be processed, and the original bit, the frame per second that are comprised in this first bit stream, estimate next input unit spendable bit number when coding.
11. a transformation coding method is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transformation coding method comprises following steps:
Step (A) is with this first bit stream decoding;
Step (B) is estimated next input unit spendable bit number when coding;
Step (C) according to the bit number that estimates, calculates candidate's quantization step;
Step (D) according to the value of this candidate's quantization step, is judged second quantization step, and obtains the ratio of this second quantization step and this first quantization step, and judges that the method for this second quantization step comprises following substep:
Substep (D-1) is set first critical value that size equals 2 times of first quantization step, and dynamically determines first threshold value according to this first critical value and the actual situation of using;
Whether substep (D-2) judges this candidate's quantization step more than or equal to this first threshold value, if, then jump to substep (D-3), if not, then jump to substep (D-5);
Substep (D-3) is analyzed the relation of bits proportion and quantization step, judging whether second critical value greater than this first critical value, if, then jump to substep (D-4), if not, then jump to substep (D-6); And in substep (D-3), the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists;
Substep (D-4), be made as the size of this second critical value identical with 4 times of first quantization step, and dynamically determine second threshold value according to this second critical value and the actual situation of using, and whether the value of judging this candidate's quantization step is more than or equal to this second threshold value, if, then jump to substep (D-7), if not, then jump to substep (D-6);
Substep (D-5) is made as the value of this second quantization step identical with this first quantization step; And
Substep (D-6) is made as the value of this second quantization step identical with this first critical value;
Substep (D-7) is made as the value of this second quantization step identical with this second critical value;
Step (E) according to the ratio value that step (D) draws, is done displacement with the data after step (A) decoding; And
Step (F), with the displacement after digital coding to obtain this second bit stream.
12. transformation coding method according to claim 11, wherein, this first threshold value in the substep (D-1) can not be greater than this first critical value, but needs greater than this first quantization step.
13. transformation coding method according to claim 12, wherein, this first threshold value in the substep (D-1) dynamically determines according to the bit compression situation, and when the bit compression situation does not reach expection, then the numerical value of this first threshold value is turned down.
14. transformation coding method according to claim 13, wherein, this second threshold value in the substep (D-4) can not be greater than this second critical value, and can not be less than this first critical value.
15. transformation coding method according to claim 11, wherein, in step (E), if ratio value is 4, the data after then will deciphering move right 2, if ratio value is 2, data after then will deciphering move right 1, and if ratio value be 1, then be not shifted.
16. transformation coding method according to claim 11, wherein, step (B) is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
17. a transform coding device is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transform coding device comprises:
Decoding unit is used for this first bit stream decoding;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit be electrically connected with this bit configuration unit, and the bit number that goes out according to this bit configuration unit estimation comes the calculated candidate quantization step;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and set first critical value that a size equals 2 times of first quantization step, and dynamically determine first threshold value according to this first critical value and the actual situation of using, and set second critical value that a size equals 4 times of first quantization step, and dynamically determine one second threshold value according to this second critical value and the actual situation of using;
Quantization step decision unit is used for being electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this second threshold value, is made as the value of this second quantization step identical with this second critical value; When this candidate's quantization step during, be made as the value of this second quantization step identical with this first critical value more than or equal to this first threshold value and less than this second threshold value; And, be made as the value of this second quantization step identical with this first quantization step when this candidate's quantization step during less than this first threshold value; And obtain the ratio value of this second quantization step and this first quantization step;
Shift unit is used for being electrically connected with this quantization step decision unit and this decoding unit, and the data after according to the ratio value that this quantization step decision unit is obtained this decoding unit being deciphered are done displacement; And
Coding unit is used for being electrically connected with this shift unit, and the data after this shift unit processing are encoded to obtain this second bit stream.
18. transform coding device according to claim 17, wherein, this analytic unit is in decision during this first threshold value, and limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
19. transform coding device according to claim 18, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, then this analytic unit was turned down the numerical value of this first threshold value.
20. transform coding device according to claim 19, wherein, this analytic unit is in decision during this second threshold value, and limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
21. transform coding device according to claim 17, wherein, if ratio value is 4, data after this shift unit then will be deciphered move right 2, if ratio value is 2, the data after this shift unit then will be deciphered move right 1, if and ratio value is 1, this shift unit is not shifted.
22. transform coding device according to claim 17, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimate next input unit spendable bit number when coding.
23. a transformation coding method is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transformation coding method comprises following steps:
Step (A) is with this first bit stream decoding;
Step (B) is carried out inverse quantization with the data after the decoding and is handled;
Step (C) is estimated next input unit spendable bit number when coding;
Step (D) according to the bit number that estimates, calculates candidate's quantization step;
Step (E) according to the value of this candidate's quantization step, is judged one second quantization step, and the method for judging comprises following substep:
Substep (E-1), analyze the relation of bits proportion and quantization step, to determine one first critical value, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, be made as identical and the mode that determines this first critical value is a numerical value with this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step;
Whether substep (E-2) judges this candidate's quantization step more than or equal to this first threshold value, if, then jump to substep (E-4), if not, then jump to substep (E-3);
Substep (E-3), the value of this second quantization step are set to identical with this first quantization step; And
Substep (E-4), the value of this second quantization step are set to identical with this first critical value;
Step (F) is carried out quantification treatment with the data of this second quantization step after to inverse quantization; And
Step (G), with the digital coding after quantizing to obtain this second bit stream.
24. transformation coding method according to claim 23, wherein, this first threshold value in the substep (E-1) can not be greater than this first critical value, but needs greater than this first quantization step.
25. transformation coding method according to claim 24, wherein, this first threshold value in the substep (E-1) dynamically determines according to the bit compression situation, and when the bit compression situation does not reach expection, then the numerical value of this first threshold value is turned down.
26. transformation coding method according to claim 23, wherein, step (C) is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
27. a transform coding device is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transform coding device comprises:
Decoding unit is used for this first bit stream decoding;
Inverse quantization unit is used for being electrically connected with this decoding unit, and the data after this decoding unit decoding are carried out inverse quantization with this first quantization step;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is used for being electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value, and use situation and this first critical value to determine one first threshold value according to reality, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step; And
Quantization step decision unit is used for being electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value, is made as the value of this second quantization step identical with this first critical value; And, be made as the value of this second quantization step identical with this first quantization step when this candidate's quantization step during less than this first threshold value;
Quantifying unit is used for being electrically connected with this quantization step decision unit and this inverse quantization unit, and determines second quantization step that unit determines according to this quantization step, to being quantized by the data behind this inverse quantization unit inverse quantization; And
Coding unit is used for being electrically connected with this quantifying unit, and the data after this quantifying unit quantification are encoded to obtain this second bit stream.
28. transform coding device according to claim 27, wherein, this analytic unit is in decision during this first threshold value, and limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
29. transform coding device according to claim 28, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was then turned down the numerical value of this first threshold value.
30. transform coding device according to claim 27, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimate next input unit spendable bit number when coding.
31. a transformation coding method is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transformation coding method comprises following steps:
Step (A) is with this first bit stream decoding;
Step (B) is carried out inverse quantization with the data after the decoding and is handled;
Step (C) is estimated next input unit spendable bit number when coding;
Step (D) according to the bit number that estimates, calculates candidate's quantization step;
Step (E) according to the value of this candidate's quantization step, is judged one second quantization step, and the method for judging comprises following substep:
Substep (E-1), analyze the relation of bits proportion and quantization step, to determine one first critical value, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, be made as identical and the mode that determines this first critical value is a numerical value with this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step;
Whether substep (E-2) judges this candidate's quantization step more than or equal to this first threshold value, if, then jump to substep (E-3), if not, then jump to substep (E-5);
Substep (E-3) is analyzed the relation of bits proportion and quantization step, judging whether second critical value greater than this first critical value, if, then jump to substep (E-4), if not, then jump to substep (E-6); And in substep (E-3), the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists, this second critical value then is set for identical with the quantization step that in the bits proportion scope of this lower grade, has minimum value;
Whether substep (E-4), the value of judging this candidate's quantization step more than or equal to one second threshold value, if, then jump to substep (E-7), if not, then jump to substep (E-6), and this second threshold value determines dynamically according to this second critical value and the actual situation of using;
Substep (E-5), the value of this second quantization step are set to identical with this first quantization step;
Substep (E-6), the value of this second quantization step are set to identical with this first critical value; And
Substep (E-7), the value of this second quantization step are set to identical with this second critical value;
Step (F) is carried out quantification treatment with the data of this second quantization step after to inverse quantization; And
Step (G), to the digital coding after quantizing to obtain this second bit stream.
32. transformation coding method according to claim 31, wherein, this first threshold value in the substep (E-1) can not be greater than this first critical value, but needs greater than this first quantization step.
33. transformation coding method according to claim 32, wherein, this first threshold value in the substep (E-1) dynamically determines according to the bit compression situation, and when the bit compression situation does not reach expection, the numerical value of this first threshold value is turned down.
34. transformation coding method according to claim 33, wherein, this second threshold value in the substep (E-4) can not be greater than this second critical value, and can not be less than this first critical value.
35. transformation coding method according to claim 31, wherein, step (C) is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
36. a transform coding device is applicable to convert first bit stream to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this transform coding device comprises:
Decoding unit is used for this first bit stream decoding;
Inverse quantization unit is used for being electrically connected with this decoding unit, and the data after this decoding unit decoding are carried out inverse quantization with this first quantization step;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is used for being electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value and one second critical value, and use situation and determine one first threshold value and one second threshold value according to this first critical value and this second critical value respectively according to reality, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step; And the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists, this second critical value then is set for identical with the quantization step that in the bits proportion scope of this lower grade, has minimum value; And
Quantization step decision unit, be used for being electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value and less than this second threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during greater than this second threshold value, the value of this second quantization step is set to identical with this second critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step;
Quantifying unit is used for being electrically connected with this quantization step decision unit and this inverse quantization unit, and determines second quantization step that unit determines according to this quantization step, to being quantized by the data behind this inverse quantization unit inverse quantization; And
Coding unit is used for being electrically connected with this quantifying unit, and the data after this quantifying unit quantification are encoded to obtain this second bit stream.
37. transform coding device according to claim 36, wherein, this analytic unit is in decision during this first threshold value, and limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
38. according to the described transform coding device of claim 37, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
39. according to the described transform coding device of claim 38, wherein, this analytic unit is in decision during this second threshold value, limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
40. transform coding device according to claim 36, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimate next input unit spendable bit number when coding.
41. an integrated circuit is applicable to receive first bit stream, and converts this first bit stream the output of to second bit stream, and this first bit stream is the result after having encoded according to first quantization step that this integrated circuit comprises:
Decoding unit is used for this first bit stream decoding;
The bit configuration unit is used to estimate the spendable figure place of next input unit;
The quantization step computing unit is used for being electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit is used to receive the value of this first quantization step, and sets first critical value that a size equals 2 times of first quantization step, and dynamically determines one first threshold value according to this first critical value and the actual situation of using;
Quantization step decision unit is electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this first threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step; And obtain the ratio value of this second quantization step and this first quantization step;
Shift unit is electrically connected with this quantization step decision unit and this decoding unit, and the data after according to the ratio value that this quantization step decision unit is obtained this decoding unit being deciphered are done displacement; And
Coding unit is electrically connected with this shift unit, and the data after this shift unit processing are encoded to obtain this second bit stream.
42. according to the described integrated circuit of claim 41, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
43. according to the described integrated circuit of claim 42, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
44. according to the described integrated circuit of claim 41, wherein, if ratio value is 2, the data after this shift unit then will be deciphered move right 1, and if ratio value be 1, then be not shifted.
45. according to the described integrated circuit of claim 41, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
46. an integrated circuit is applicable to the data that receive after the decoding of first bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit is used to receive the value of this first quantization step, and sets first critical value that a size equals 2 times of first quantization step, and dynamically determines one first threshold value according to this first critical value and the actual situation of using;
Quantization step decision unit is electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this first threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step; And obtain the ratio value of this second quantization step and this first quantization step.
47. according to the described integrated circuit of claim 46, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
48. according to the described integrated circuit of claim 47, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
49. according to the described integrated circuit of claim 46, wherein, this integrated circuit also comprises shift unit, and this shift unit is electrically connected with this quantization step decision unit, and determines ratio value that unit obtains that received these data after having deciphered are done displacement according to this quantization step.
50. according to the described integrated circuit of claim 49, wherein, if ratio value is 2, the data after this shift unit has then been deciphered this move right 1, and if ratio value be 1, then be not shifted.
51. an integrated circuit is applicable to receive first bit stream, and converts this first bit stream the output of to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
Decoding unit is used for this first bit stream decoding;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, receive the value of this first quantization step, and set first critical value that a size equals 2 times of first quantization step, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, and set second critical value that a size equals 4 times of first quantization step, and dynamically determine one second threshold value according to this second critical value and the actual situation of using;
Quantization step decision unit is electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this second threshold value, is made as the value of this second quantization step identical with this second critical value; When this candidate's quantization step during, be made as the value of this second quantization step identical with this first critical value more than or equal to this first threshold value and less than this second threshold value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step; And obtain the ratio value of this second quantization step and this first quantization step;
Shift unit is electrically connected with this quantization step decision unit and this decoding unit, and the data after according to the ratio value that this quantization step decision unit is obtained this decoding unit being deciphered are done displacement; And
Coding unit is electrically connected with this shift unit, and the data after this shift unit processing are encoded to obtain this second bit stream.
52. according to the described integrated circuit of claim 51, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
53. according to the described integrated circuit of claim 52, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
54. according to the described integrated circuit of claim 53, wherein, this analytic unit is in decision during this second threshold value, limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
55. according to the described integrated circuit of claim 51, wherein, if ratio value is 4, data after this shift unit then will be deciphered move right 2, if ratio value is 2, the data after this shift unit then will be deciphered move right 1, if and ratio value is 1, then this shift unit is not shifted.
56. according to the described integrated circuit of claim 51, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimate next input unit spendable bit number when coding.
57. an integrated circuit is applicable to the data that receive after the decoding of one first bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
The bit configuration unit is used to estimate the spendable figure place of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the figure place calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and set first critical value that a size equals 2 times of first quantization step, and dynamically determine one first threshold value according to this first critical value and the actual situation of using, and set second critical value that a size equals 4 times of first quantization step, and dynamically determine one second threshold value according to this second critical value and the actual situation of using;
Quantization step decision unit is electrically connected with this quantization step computing unit and this analytic unit, and when this candidate's quantization step during more than or equal to this second threshold value, the value of this second quantization step is set to identical with this second critical value; When this candidate's quantization step during more than or equal to this first threshold value and less than this second threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step; And obtain the ratio value of this second quantization step and this first quantization step.
58. according to the described integrated circuit of claim 57, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
59. according to the described integrated circuit of claim 58, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, then this analytic unit was turned down the numerical value of this first threshold value.
60. according to the described integrated circuit of claim 59, wherein, this analytic unit is in decision during this second threshold value, limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
61. according to the described integrated circuit of claim 57, wherein, this integrated circuit also comprises shift unit, and this shift unit is electrically connected with this quantization step decision unit, and determines ratio value that unit obtains that received these data after having deciphered are done displacement according to this quantization step.
62. according to the described integrated circuit of claim 61, wherein, if ratio value is 4, data after this shift unit has then been deciphered this move right 2, if ratio value is 2, data after this shift unit has then been deciphered this move right 1, and if ratio value be 1, this shift unit is not shifted.
63. an integrated circuit is applicable to receive first bit stream, and converts this first bit stream the output of to second bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
Decoding unit is used for this first bit stream decoding;
Inverse quantization unit is electrically connected with this decoding unit, and the data after this decoding unit decoding are carried out inverse quantization with this first quantization step;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value, and use situation and this first critical value to determine one first threshold value according to reality, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical that this first critical value is directly changed the value that is made as with 2 times of first quantization step; And
Quantization step decision unit is electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step;
Quantifying unit is electrically connected with this quantization step decision unit and this inverse quantization unit, and determines second quantization step that unit determines according to this quantization step, to being quantized by the data behind this inverse quantization unit inverse quantization; And
Coding unit is electrically connected with this quantifying unit, and the data after this quantifying unit quantification are encoded to obtain this second bit stream.
64. according to the described integrated circuit of claim 63, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
65. according to the described integrated circuit of claim 64, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
66. according to the described integrated circuit of claim 63, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the primary rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
67. an integrated circuit is applicable to the data that receive after the decoding of first bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value, and use situation and this first critical value to determine one first threshold value according to reality, be made as identical and the mode that determines this first critical value is a numerical value with this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical that this first critical value is directly changed the value that is made as with 2 times of first quantization step; And
Quantization step decision unit is electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step.
68. according to the described integrated circuit of claim 67, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
69. according to the described integrated circuit of claim 68, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
70. an integrated circuit is applicable to receive first bit stream, and converts this first bit stream the output of to second bit stream, and this first bit stream is according to the result behind the one first quantization step coding, this integrated circuit comprises:
Decoding unit is used for this first bit stream decoding;
Inverse quantization unit is electrically connected with this decoding unit, and the data after this decoding unit decoding are carried out inverse quantization with this first quantization step;
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and the bit number calculated candidate quantization step that goes out according to this bit configuration unit estimation;
The quantization step adjuster comprises:
Analytic unit, receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value and one second critical value, and use situation and determine one first threshold value and one second threshold value according to this first critical value and this second critical value respectively according to reality, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step; And the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists, then establish this second critical value for identical with the quantization step that in the bits proportion scope of this lower grade, has minimum value; And
Quantization step decision unit, be electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value and less than this second threshold value, the value of this second quantization step is set to identical with this first critical value; And, be made as the value of this second quantization step identical with this second critical value when this candidate's quantization step during greater than this second threshold value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step;
Quantifying unit is electrically connected with this quantization step decision unit and this inverse quantization unit, and determines second quantization step that unit determines according to this quantization step, to being quantized by the data behind this inverse quantization unit inverse quantization; And
Coding unit is electrically connected with this quantifying unit, and the data after this quantifying unit quantification are encoded to obtain this second bit stream.
71. according to the described integrated circuit of claim 70, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
72. according to the described integrated circuit of claim 71, wherein, this analytic unit is dynamically to determine this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
73. according to the described integrated circuit of claim 72, wherein, this analytic unit is in decision during this second threshold value, limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
74. according to the described integrated circuit of claim 70, wherein, this bit configuration unit is according to the set goal bit rate, input unit-sized to be processed, and the original bit rate, the frame per second that are comprised in this first bit stream, estimates next input unit spendable bit number when coding.
75. an integrated circuit is applicable to the data that receive after the decoding of first bit stream, and this first bit stream is according to the result behind first quantization step coding, this integrated circuit comprises:
The bit configuration unit is used to estimate the spendable bit number of next input unit;
The quantization step computing unit is electrically connected with this bit configuration unit, and calculates candidate's quantization step according to the bit number that this bit configuration unit estimation goes out;
The quantization step adjuster comprises:
Analytic unit, be used to receive the value of this first quantization step, and the relation of analysis bits proportion and quantization step, to judge one first critical value and one second critical value, and use situation and determine one first threshold value and one second threshold value according to this first critical value and this second critical value respectively according to reality, be set to identical and the mode that determines this first critical value is the numerical value of this first critical value with the quantization step that in the bits proportion scope of second largest grade, has minimum value, if but this first critical value under this sets less than 2 times of first quantization step, it is identical then this first critical value directly to be changed the value that is made as with 2 times of first quantization step; And the mode that judges whether this second critical value is to judge in the relation of this bits proportion and quantization step, whether have the bits proportion of another grade, and the bits proportion of this another grade is less than the grade at this first critical value place, if have, represent that then this second critical value exists, then establish this second critical value for identical with the quantization step that in the bits proportion scope of this lower grade, has minimum value; And
Quantization step decision unit, be electrically connected with this analytic unit and this quantization step computing unit, and when this candidate's quantization step during more than or equal to this first threshold value and less than this second threshold value, the value of this second quantization step is set to identical with this first critical value; And when this candidate's quantization step during greater than this second threshold value, the value of this second quantization step is set to identical with this second critical value; And when this candidate's quantization step during less than this first threshold value, the value of this second quantization step is set to identical with this first quantization step.
76. according to the described integrated circuit of claim 75, wherein, this analytic unit is in decision during this first threshold value, limiting this first threshold value can not be greater than this first critical value, but needs greater than this first quantization step.
77. according to the described integrated circuit of claim 76, wherein, this analytic unit dynamically determines this first threshold value according to the bit compression situation, and when the bit compression situation did not reach expection, this analytic unit was turned down the numerical value of this first threshold value.
78. according to the described integrated circuit of claim 77, wherein, this analytic unit is in decision during this second threshold value, limiting this second threshold value can not be greater than this second critical value, and can not be less than this first critical value.
CN 200610004506 2006-01-25 2006-01-25 Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation Pending CN101009829A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200610004506 CN101009829A (en) 2006-01-25 2006-01-25 Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation
PCT/JP2007/051533 WO2007086590A2 (en) 2006-01-25 2007-01-24 Transcoding apparatus, transcoding method and integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610004506 CN101009829A (en) 2006-01-25 2006-01-25 Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation

Publications (1)

Publication Number Publication Date
CN101009829A true CN101009829A (en) 2007-08-01

Family

ID=38309611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610004506 Pending CN101009829A (en) 2006-01-25 2006-01-25 Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation

Country Status (2)

Country Link
CN (1) CN101009829A (en)
WO (1) WO2007086590A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660825B (en) * 2017-10-10 2021-02-09 腾讯科技(深圳)有限公司 Video transcoding method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3085024B2 (en) * 1993-06-01 2000-09-04 松下電器産業株式会社 Image recompressor and image recording device
KR100304103B1 (en) * 1998-05-29 2001-09-24 이계철 Method for finding re-quantization step sizes resulting in abrupt bit-rate reduction and rate control method using it
EP1045590A3 (en) * 1999-04-13 2005-03-09 Matsushita Electric Industrial Co., Ltd. Transcoder and transcoding method with bit rate regulation
US7190723B2 (en) * 2002-03-27 2007-03-13 Scientific-Atlanta, Inc. Digital stream transcoder with a hybrid-rate controller

Also Published As

Publication number Publication date
WO2007086590A2 (en) 2007-08-02
WO2007086590A3 (en) 2007-11-29

Similar Documents

Publication Publication Date Title
CN1114320C (en) Image encoding method and apparatus for controlling number of bits generated using quantization activities
CN1980393B (en) Image coding device, method and integrated circuit
US11297319B2 (en) Method for encoding images and corresponding terminals
CN101502123B (en) Coder
CN101542910B (en) Lossless encoding and decoding of digital data
CN100496125C (en) Encoding method and apparatus for insertion of watermarks in a compressed video bitstream
JP5599715B2 (en) Video encoding
RU2504026C2 (en) Method and apparatus for selective signal coding based on core encoder performance
JP2005348390A5 (en)
KR101103698B1 (en) Video encoding device and method, video encoding program, and recording medium containing the program
US20160249068A1 (en) Method for Producing Video Coding and Programme-Product
CN102833548B (en) Method and apparatus for transmitting multiple video streams over video channel
EP1723798A1 (en) Method,device and software product for binarization of video data
CN1631041A (en) Method and system for rate control during video transcoding
US20120093213A1 (en) Coding method, coding apparatus, coding program, and recording medium therefor
CN101106718A (en) Image coding device
RU2013145526A (en) METHOD AND DEVICE FOR CODING AND METHOD AND DEVICE FOR DECODING
US5034965A (en) Efficient coding method and its decoding method
CN103250206A (en) Apparatus and method for level estimation of coded audio frames in a bit stream domain
CN101335891A (en) Video rate control method and video rate controller
CN101009829A (en) Bit rate conversion coding method, conversion encoder, and integrated circuit for error accumulation
JP5263681B2 (en) Image encoding apparatus and program thereof
JPH0671333B2 (en) Image signal encoding method
JP3985465B2 (en) Image encoding apparatus, image decoding apparatus, image encoding / decoding apparatus, and methods thereof
KR100755388B1 (en) Method and apparatus for approximating distortion in video compression

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication