WO2012126340A1 - Method and device for determining weight factor, and method and device for intra-frame weighted prediction - Google Patents

Method and device for determining weight factor, and method and device for intra-frame weighted prediction Download PDF

Info

Publication number
WO2012126340A1
WO2012126340A1 PCT/CN2012/072518 CN2012072518W WO2012126340A1 WO 2012126340 A1 WO2012126340 A1 WO 2012126340A1 CN 2012072518 W CN2012072518 W CN 2012072518W WO 2012126340 A1 WO2012126340 A1 WO 2012126340A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
image block
component
weighting factor
weighting factors
Prior art date
Application number
PCT/CN2012/072518
Other languages
French (fr)
Chinese (zh)
Inventor
杨海涛
周建同
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012126340A1 publication Critical patent/WO2012126340A1/en

Links

Classifications

    • 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/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, apparatus, and system for weighted prediction in video image intra prediction encoding and decoding.
  • Intra prediction refers to the use of surrounding reconstructed pixel values to predict current processed image block pixel values, and is one of the important modules in a video image codec. To ensure that the encoder and decoder get the same reconstructed video image, the encoder is identical to the intra prediction module in the decoder. Specifically, the module inputs, the algorithm flow within the module, and the module output are identical. Intra prediction techniques usually include two types of techniques: Directional Prediction and DC Prediction.
  • the directional prediction technique along the direction can accurately predict the texture of the current processing block, and obtain a higher coding efficiency; when the video image content does not have a significant directional texture, Higher coding efficiency can be achieved using DC prediction techniques.
  • the following uses the intra prediction technique in the High-efficiency Video Coding (HEVC) architecture as an example.
  • HEVC High-efficiency Video Coding
  • HEVC reference software HM taking 4x4 image blocks as an example, there are 34 intra prediction modes, including one DC prediction mode and 33 directional prediction modes.
  • An example of the prediction direction corresponding to the prediction mode in 33 is given in Fig. 1.
  • the two prediction directions VER+8 and HOR+8 fall within the same line, but the directions are opposite. Specifically, the VER+8 direction prediction mode uses the reconstructed pixel value above the current processing block to extrapolate the predicted value in the lower left 45 degrees; and the HOR+8 direction prediction mode uses the reconstructed pixel value on the left side of the current processing block along the upper right side. Extrapolation in the 45 degree direction to obtain the predicted value.
  • the purpose of these two prediction modes is to handle texture content in the same direction. Therefore, current A pixel at any position in the processing block can find two reference pixels at the same time.
  • the pixel values of the two reference points can be weighted averaged to obtain a predicted value of the currently processed pixel.
  • the reference point pixel values found in the two prediction directions VER+8 and HOR+8 of the point P(x, y) in Fig. 1 are Ref 1 and Ref2, respectively, and the P(x, y) positions are to Refl and Ref2.
  • the distances of the reference points are d2 and d2, respectively, and the weighted average of Ref 1 and Ref2 can be calculated as the predicted value of P(x, y).
  • the principle of the above weighted average calculation is that the importance of the reference pixel is inversely proportional to its distance from the currently processed pixel.
  • This weighted prediction method combines the advantages of the prediction modes in the two directions of VER+8 and HOR+8, and the extrapolation operation in two independent prediction modes is changed to a linear interpolation operation, which can improve the prediction accuracy and thus improve the intra prediction. Coding efficiency.
  • a disadvantage of the above weighted prediction method is that the computational complexity is too high.
  • the above calculation formula includes a division operation, and the divisor ( dl + d2 ) may be any integer within a certain range. This division operation will bring a large hardware implementation cost in practical applications, and at the same time, it will reduce the codec processing speed and increase the power consumption of the codec device.
  • Embodiments of the present invention provide a weighted prediction method, apparatus, and system for intra-frame prediction encoding and decoding of video images, which improve processing speed of a codec and reduce processing power consumption.
  • An embodiment of the present invention provides a method for determining two weighting factors used in pairing, including: determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in a currently processed image block, where the horizontal coordinate component
  • the coordinate system referenced by the ordinate component is the pixel point of the upper left corner of the currently processed image block as the coordinate origin, the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; the current pixel is determined according to the first value and the second value.
  • the first value is determined or preset according to an image block size of the currently processed image block, where the image block size is a side length N of the NxN image block, and the NxN image block is a square including NxN pixel points. Image block.
  • An embodiment of the present invention provides an intra-frame weighted prediction method, including: And determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the horizontal coordinate component and the ordinate component is a coordinate point of the upper left corner of the currently processed image block.
  • the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; determining two weighting factors of the current pixel point according to the first value and the second value, wherein one weighting factor is the first value and the second value And another weighting factor is a difference between the first value and the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined according to the image block size of the currently processed image block or is Setting, the image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points;
  • a weighted prediction value of the current pixel point is calculated based on the two weighting factors and the two predicted values, the predicted values being predicted values obtained in two specified intra prediction modes, respectively.
  • An embodiment of the present invention provides an intra-frame weighted prediction method based on a table lookup, including:
  • a weighted prediction value of the current pixel point is calculated based on the two weighting factors and the two predicted values, the predicted values being predicted values obtained in two specified intra prediction modes, respectively.
  • An embodiment of the present invention provides a determining apparatus for two weighting factors used in pairing, including: a first determining module, configured to determine, according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel point in a currently processed image block, Numerical values, the coordinate system referenced by the abscissa component and the ordinate component is taken as the coordinate origin of the pixel in the upper left corner of the currently processed image block, the horizontal direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a second determining module configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN
  • the side length N of the image block, the NxN image block is a square containing NxN pixel points Image block.
  • An embodiment of the present invention provides an intra-frame weighting prediction apparatus, including:
  • a third determining module configured to determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate component referenced by the ordinate component are currently processed images
  • the pixel in the upper left corner of the block is taken as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a fourth determining module configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN An edge length N of the image block, the NxN image block being a square image block including NxN pixel points;
  • a first prediction module configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
  • An embodiment of the present invention provides an intra-frame weighting prediction apparatus based on a look-up table, including:
  • a fifth determining module configured to determine an index value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate component referenced by the ordinate component are currently processed image blocks
  • the pixel in the upper left corner is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a sixth determining module configured to obtain two weight factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table;
  • a second prediction module configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
  • the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, according to the first value and the second value. Determining two weighting factors of the current pixel point, wherein one weighting factor is a sum of the first value and the second value, and another weighting factor is a difference between the first value and the second value, and the sum of the two weighting factors is A technical technique that doubles the value, thereby increasing the processing speed of the codec and reducing the processing power consumption.
  • FIG. 1 is a schematic diagram of a prediction direction in the prior art
  • FIG. 2 is a flow chart of a method for determining two weighting factors used in pairing according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an intra-frame weighting prediction method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of two intra prediction modes according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of an intra-frame weighting prediction method based on table look-up according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for constructing a weighting factor table according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a determining apparatus for two weighting factors used in pairing according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an intra-frame weighting prediction apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an intra-frame weighting prediction apparatus based on table lookup according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for determining two weighting factors used in pairing, including: S101: Determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate coordinate referenced by the vertical coordinate component are the upper left pixel pixel of the currently processed image block.
  • S101 Determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate coordinate referenced by the vertical coordinate component are the upper left pixel pixel of the currently processed image block.
  • the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • S102 Determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value. Poor, the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, the image block size being the side length N of the NxN image block
  • the NxN image block is a square image block including NxN pixels.
  • the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, and the current pixel is determined according to the first value and the second value.
  • Two weighting factors one of which is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, and the sum of the two weighting factors is twice the first value Means, thereby improving the processing speed of the codec and reducing the processing power consumption.
  • S101 Determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate coordinate referenced by the ordinate component are the pixel points in the upper left corner of the currently processed image block.
  • the horizontal axis direction is horizontal to the right and the ordinate direction is vertically downward.
  • the second value in the embodiment of the present invention may be a position offset of the current pixel point position and the reference line.
  • the positional offset may be recorded as PosDev y], which may be determined by the abscissa component and the ordinate component of the current pixel point, and the determination method may be various.
  • the position offset can be determined according to the following method.
  • the method for determining the second value according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block may be to compare the abscissa component of the current pixel point with The difference of the ordinate component is used as the second value, or the difference is operated as the second value, and the operation of the difference may be scaling or taking an absolute value or the like.
  • PosDev ⁇ y] may be a negative integer, and the shift operation should be adjusted according to the representation method of the negative integer in the processor used to ensure that the shift operation and the corresponding multiplication or division can be obtained. the result of.
  • S102 Determine two weighting factors of the current pixel point according to the first value and the second value, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value.
  • the difference between the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, and the image block size is the edge of the NxN image block.
  • the NxN image block is a square image block containing NxN pixels.
  • the first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
  • the first value can also be preset.
  • a fixed value of FixedBlkSize can be used as the first value.
  • the two weighting factors of the current pixel point can be written as wl(x, y) and W2 (x, y).
  • the sum of the two weighting factors can be recorded as WeightSum, and the base-2 logarithm can be recorded as Log2WeightSum.
  • the two weights are The child can be calculated as follows.
  • the two weighting factors can be calculated as follows.
  • FixedBlkSize can always be expressed as 2 N , where N is a positive integer, so the sum of the two weighting factors can always be expressed as 2 ⁇ +1 , and the base 2 logarithm of the sum of the two weighting factors Log2WeightSum is N +l.
  • the embodiment of the present invention adopts a specific weighting factor acquisition method, so that the sum of the two weighting factors can always be expressed as 2 ⁇ +1 , so the shift operation can be used instead of using the two weighting factors for weighted prediction.
  • the division operation reduces the computational complexity, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices.
  • the embodiment of the invention can avoid storing the weighting factor lookup table in the encoding and decoding chips, saving the encoding and decoding.
  • the storage unit is solidified, thereby reducing the device cost.
  • the embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, save bandwidth in the codec processor, thereby increasing parallel processing capability and reducing access. The power required for operation.
  • S201 Determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is the pixel point in the upper left corner of the currently processed image block.
  • the horizontal axis direction is horizontal to the right and the ordinate direction is vertically downward.
  • the second value in the embodiment of the present invention may be a position offset of the current pixel point position and the reference line.
  • the position offset may be recorded as PosDev ⁇ y], which may be determined by the abscissa component and the ordinate component of the current pixel point, and the determination method may be various. For example, when the first value is determined as the image block size BlkSize of the current processing block, the position offset may be determined according to the following method.
  • the position offset can be determined by normalizing the following method.
  • BlkSize- 1 because log 2 FixedBlkSize can be pre-computed, no need The calculation is repeated for each processing block, and the log 2 BlkSize can be obtained by looking up the table.
  • PosDev ⁇ y] may be a negative integer, and the shift operation should be adjusted according to the representation method of the negative integer in the processor used to ensure that the shift operation and the corresponding multiplication or division can be obtained. the result of.
  • S202 Determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value. Poor, the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, and the image block size is the side length of the NxN image block N, the NxN image block is a square image block containing NxN pixels.
  • the first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
  • the first value can also be preset. For example, a fixed value of FixedBlkSize can be used as the first value.
  • the two weighting factors of the current pixel point can be written as wl(x, y) and w2(x, y).
  • the sum of the two weighting factors can be written as WeightSum, and its base 2 logarithm can be recorded as
  • the two weight factors can be calculated according to the following method.
  • the two weighting factors can be calculated as follows.
  • FixedBlkSize can always be expressed as 2N , where N is a positive integer, so the sum of the two weighting factors can always be expressed as 2 ⁇ +1 , and the base 2 logarithm of the sum of the two weighting factors Log2WeightSum is N+ l.
  • the two specified intra prediction modes may be any two different intra prediction modes.
  • the method adopted by the embodiment of the present invention is particularly applicable to the two intra prediction modes shown in FIG. 4, that is, FIG. 4(a)
  • the first mode shown is the second mode shown in Figure 4(b).
  • the first mode is an intra prediction mode along a lower left diagonal direction
  • the second mode is an intra prediction mode along an upper right diagonal direction.
  • the two predicted values are input of the method adopted by the embodiment of the present invention, and the method for obtaining the two predicted values is introduced below.
  • PredSample2[x, y] O..BlkSize-l.
  • BlkSize-l is the reconstructed pixel value around the current processing block, or the pixel value of the reconstructed pixel value around the current processing block after smoothing and so on.
  • the first weighting factor is specified to correspond to the first predicted value
  • the second weighting factor is corresponding to the second predicted value
  • the first weighting factor, the second weighting factor, the first predicted value, and the second predicted value may be as follows select.
  • One of the two weighting factors is designated as the first weighting factor
  • the other weighting factor is the second weighting factor.
  • the first weighting factor and the second weighting factor specifying method and the first and second predicted value determining methods, or the second numerical value determining method, or the current pixel point position, or any of the above three influencing factors
  • the combination of factors affects the impact.
  • the weighting factor wl(x, y) obtained in S202 may be used as the first weighting factor, and the weighting factor w2 ( x, y) as the second weighting factor.
  • the weighting factor wl(x, y) is correspondingly used as the second weight.
  • PredSamplel[x, y] the second predicted value is PredSampleZI ⁇ y].
  • PredSamplel represents the first predicted value, and the second predicted value is represented by the symbol PredSample2.
  • the calculating the weighted prediction value of the current pixel point according to the two weighting factors and the corresponding two prediction values includes calculating the weighted prediction value by using a division operation or calculating the weighted prediction value by using a shift operation.
  • PredSample ( wl ⁇ PredSamplel + w2 ⁇ PredSample2 + (1 « (Log2WeightSum-l))) » Log2WeightSum
  • the equivalent calculation method uses the shift operation instead of the division operation in the original calculation method to obtain the same calculation result.
  • the two calculation methods respectively introduce (wl+w2)/2 and Log2WeightSum»l to compensate for the truncation error introduced by integer division or integer division implemented by shift.
  • the embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices.
  • the weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost.
  • the embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, so Increase parallel processing power and reduce the power consumption required for access operations.
  • S301 Determine an index value according to a difference between a horizontal coordinate component and a ordinate component of a current pixel in the currently processed image block, where the coordinate system referenced by the horizontal coordinate component and the ordinate component is taken as a pixel point in the upper left corner of the currently processed image block.
  • the origin of the coordinates, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward.
  • the second value may be determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block according to the method in S101, and the index value Index is determined according to the second value PosDev y] according to the following formula [ x, y]
  • the method for determining the index value may first obtain the second value according to the method in S101, and then determine the index value according to the second value; or directly from the difference between the abscissa component and the ordinate component of the current pixel point in the currently processed image block.
  • the value is determined according to the following formula
  • Index[x, y] (FixedBlkSize-
  • )/BlkSize, where x, y O..BlkSize-l
  • the weighting factor table may be two one-dimensional lookup tables WeightLUT1 and WeightLUT2.
  • different weight structures may be used to represent the weighting factor table, and the corresponding modification effect may be obtained by performing corresponding modification in the searching operation, which belongs to the one-dimensional lookup table Wei ghtLUT 1 and WeightLUT2 of the embodiment of the present invention.
  • the merge is represented as an equivalent two-dimensional lookup table WeightLUT. Other similar situations are not here - enumerated.
  • Two weighting factors are obtained from the weighting factor table according to the cable I value. If PosDev ⁇ y] > 0 or PosDev ⁇ y] ⁇ 0 or equivalent x > y or x ⁇ y, use the cable 1 value Index[x, y] to find the first weighting factor table WeightLUT1 to obtain the first weighting factor wl (x,y), use the cable bow
  • the method for obtaining two weight factors from the weighting factor table according to the index value may perform corresponding change according to the data structure of the weighting factor table, and the change may obtain the same first for the pixel located at the (x, y) position.
  • the weighting factor and the second weighting factor. Therefore, the change is a table lookup in the embodiment of the present invention.
  • the weighted prediction value PredSample may be calculated according to the first weighting factor w1, the second weighting factor w2, the first predicted value PredSamplel, and the second predicted value PredSample2 of each pixel according to the method in S203.
  • the first weighting factor wl and the second weighting factor w2 can be determined by the method described in S302.
  • the method for constructing the weighting factor table can be implemented as follows:
  • S401 Determine an index value of the weighting factor table according to the first value, where the index value includes a positive integer smaller than the first value and 0; wherein, the first value is determined according to an image block size of the currently processed image block or is preset
  • the image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points.
  • the first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
  • the first value can also be preset.
  • a fixed value of FixedBlkSize can be used as the first value.
  • the index is all integers in the set [0, M-1], including 0 and M1.
  • S402. Determine, according to each index value, two weighting factors corresponding thereto, thereby generating a weighting factor table.
  • the method for determining two weighting factors corresponding to each of the indexing values includes: determining, according to the current index value a current second value, determining, according to the first value and the second value, two weighting factors corresponding to the index value, wherein one weighting factor is a sum of a first value and a second value, and another weighting factor is The difference between the first value and the second value, the sum of the two weight factors being twice the first value.
  • the method of determining the current second value based on the current index value includes directly using the value of the cable as the second value.
  • the embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices.
  • the weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost.
  • the embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, which increases parallel processing power and reduces the power required for access operations.
  • an embodiment of the present invention provides a determining device for two weighting factors used in pairing, including:
  • a first determining module 701 configured to determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is currently processed
  • the pixel in the upper left corner of the image block is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a second determining module 702 configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first a difference between the value and the second value, wherein the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, and the image block size is The side length N of the NxN image block, the NxN image block is positive including NxN pixel points Square image block.
  • the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, and the current pixel is determined according to the first value and the second value.
  • Two weighting factors one of which is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, and the sum of the two weighting factors is twice the first value Means, thereby improving the processing speed of the codec and reducing the processing power consumption.
  • the embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices.
  • the weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost.
  • the embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, which increases parallel processing power and reduces the power required for access operations.
  • an embodiment of the present invention provides an intra-frame weighting prediction apparatus, including:
  • a third determining module 801 configured to determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is currently processed
  • the pixel in the upper left corner of the image block is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a fourth determining module 802 configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first a difference between the value and the second value, wherein the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, and the image block size is An edge length N of the NxN image block, the NxN image block being a square image block including NxN pixel points;
  • the first prediction module 803 is configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
  • an embodiment of the present invention provides an intra-frame weighting prediction apparatus based on a look-up table, including: a fifth determining module 901, configured to determine an index value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate system referenced by the ordinate component are currently processed images
  • the pixel in the upper left corner of the block is taken as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
  • a sixth determining module 902 configured to acquire two weight factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table;
  • the second prediction module 903 is configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are prediction values respectively acquired in two specified intra prediction modes.
  • the apparatus further includes:
  • the weighting factor table construction module 904 is configured to determine, according to the first value, an index value of the weighting factor table, where the index value includes a positive integer smaller than the first value and 0; wherein the first value is based on the currently processed image block
  • the image block size is determined or preset, the image block size is the side length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points; corresponding to each index value is determined
  • Two weighting factors, thereby generating a weighting factor table; the method for determining two weighting factors corresponding to each index value includes: determining a current second value according to the current index value, according to the first value and the The second value determines two weighting factors corresponding to the index value, wherein one weighting factor is a sum of the first value and the second value, and the other weighting factor is a difference between the first value and the second value, the two The sum of the weighting factors is twice the first value.
  • the apparatus provided in this embodiment may be used to implement the method in the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • Video encoders, decoders are widely used in a variety of communication equipment or electronic devices, such as: digital TV, set-top box, media gateway, mobile phone, wireless device, personal data assistant (PDA), handheld or portable computer, GPS receiver / navigator, camera, video player, camcorder, video recorder, surveillance equipment, video conferencing and video telephony equipment, etc.
  • communication equipment or electronic devices such as: digital TV, set-top box, media gateway, mobile phone, wireless device, personal data assistant (PDA), handheld or portable computer, GPS receiver / navigator, camera, video player, camcorder, video recorder, surveillance equipment, video conferencing and video telephony equipment, etc.
  • PDA personal data assistant
  • Such equipment It includes the processor, memory, and interface for transferring data.
  • the video codec can be implemented directly by a digital circuit or chip such as a DSP (digital signal processor), or by software code that drives a processor to execute the flow in the software code.
  • DSP digital signal processor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are a method and device for determining a weight factor, and a method and device for intra-frame weighted prediction, comprising: determining, according to a difference between an abscissa component and an ordinate component of a current pixel in a currently processed image block, a second value; and determining, according to a first value and the second value, two weight factors of the current pixel, one weight factor being a sum of the first value and the second value, the other weight factor being a difference between the first value and the second value, and a sum of the two weight factors being double of the first value. The first value is determined according to an image block size of the currently processed image block or is preset. The processing speed of a codec is improved, and the processing power consumption thereof is reduced.

Description

一种权重因子的确定方法和装置,  Method and apparatus for determining a weighting factor,
以及一种帧内加权预测方法和装置 本申请要求了 2011年 3月 20日提交的, 申请号为 201110067323.9, 发明名 称为 "一种权重因子的确定方法和装置, 以及一种帧内加权预测方法和装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  And an intra-frame weighted prediction method and apparatus. The present application claims a method and apparatus for determining a weighting factor, and an intra-frame weighted prediction method, which is filed on March 20, 2011, with the application number of 201110067323.9. The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference.
技术领域  Technical field
本发明涉及通信技术领域, 特别涉及视频图像帧内预测编解码中加权预 测的方法、 装置和系统。  The present invention relates to the field of communications technologies, and in particular, to a method, apparatus, and system for weighted prediction in video image intra prediction encoding and decoding.
背景技术 帧内预测指使用周围重建像素值来预测当前处理图像块像素值, 是视频 图像编解码器中的重要模块之一。 为保证编码器与解码器得到相同的重建视 频图像, 编码器与解码器中的帧内预测模块完全相同。 具体地说, 模块输入, 模块内算法流程, 以及模块输出完全相同。 帧内预测技术通常包括方向性预 测( Directional Prediction )和直流预测( DC Prediction )两类技术。 当视频图 像内容存在方向性纹理时, 使用沿该方向的方向性预测技术可以对当前处理 块的纹理进行准确预测, 得到较高的编码效率; 当视频图像内容不存在明显 的方向性纹理时, 使用直流预测技术可得到较高的编码效率。 下面以高效视 频编码( High-efficiency Video Coding , HEVC )架构中的帧内预测技术为例进 行介绍。  BACKGROUND OF THE INVENTION Intra prediction refers to the use of surrounding reconstructed pixel values to predict current processed image block pixel values, and is one of the important modules in a video image codec. To ensure that the encoder and decoder get the same reconstructed video image, the encoder is identical to the intra prediction module in the decoder. Specifically, the module inputs, the algorithm flow within the module, and the module output are identical. Intra prediction techniques usually include two types of techniques: Directional Prediction and DC Prediction. When there is a directional texture in the video image content, the directional prediction technique along the direction can accurately predict the texture of the current processing block, and obtain a higher coding efficiency; when the video image content does not have a significant directional texture, Higher coding efficiency can be achieved using DC prediction techniques. The following uses the intra prediction technique in the High-efficiency Video Coding (HEVC) architecture as an example.
在 HEVC参考软件 HM中,以 4x4大小图像块为例,共有 34种帧内预测模式, 包括 1种直流预测模式与 33种方向性预测模式。 图 1中给出这 33中预测模式对 应的预测方向示例。  In the HEVC reference software HM, taking 4x4 image blocks as an example, there are 34 intra prediction modes, including one DC prediction mode and 33 directional prediction modes. An example of the prediction direction corresponding to the prediction mode in 33 is given in Fig. 1.
如图 1所示, VER+8与 HOR+8两个预测方向落在同一条线内, 但是指向相 反。 具体地说, VER+8方向预测模式使用当前处理块上方的重建像素值沿左 下 45度方向进行外插获取预测值; 而 HOR+8方向预测模式使用当前处理块左 侧的重建像素值沿右上 45度方向进行外插获取预测值。  As shown in Figure 1, the two prediction directions VER+8 and HOR+8 fall within the same line, but the directions are opposite. Specifically, the VER+8 direction prediction mode uses the reconstructed pixel value above the current processing block to extrapolate the predicted value in the lower left 45 degrees; and the HOR+8 direction prediction mode uses the reconstructed pixel value on the left side of the current processing block along the upper right side. Extrapolation in the 45 degree direction to obtain the predicted value.
显然, 这两种预测模式的目的是处理相同方向的纹理内容。 因此, 当前 处理块中任一位置像素都可以在同时找到两个参考像素点。 在这种情况下, 可以对这两个参考点的像素值进行加权平均, 获得当前处理像素点的预测值。 例如, 图 1中点 P(x,y)在 VER+8与 HOR+8两个预测方向上找到的参考点像素值 分别是 Ref 1与 Ref2 ,而 P(x,y)位置到 Refl与 Ref2参考点的距离分别是 dl与的 d2 , 则可以按照下式计算 Ref 1与 Ref2的加权平均值, 作为 P(x,y)的预测值。 Obviously, the purpose of these two prediction modes is to handle texture content in the same direction. Therefore, current A pixel at any position in the processing block can find two reference pixels at the same time. In this case, the pixel values of the two reference points can be weighted averaged to obtain a predicted value of the currently processed pixel. For example, the reference point pixel values found in the two prediction directions VER+8 and HOR+8 of the point P(x, y) in Fig. 1 are Ref 1 and Ref2, respectively, and the P(x, y) positions are to Refl and Ref2. The distances of the reference points are d2 and d2, respectively, and the weighted average of Ref 1 and Ref2 can be calculated as the predicted value of P(x, y).
P(x,y)=(Refl · d2+Ref2 · dl)/(dl+d2)  P(x,y)=(Refl · d2+Ref2 · dl)/(dl+d2)
上面加权平均计算式的原理在于, 参考像素点的重要性与其到当前处理 像素点的距离成反比。 这种加权预测方法结合沿 VER+8与 HOR+8两个方向预 测模式的优点, 将两个独立预测模式中的外插操作改为线性内插操作, 能够 提高预测精度, 进而提高帧内预测编码效率。  The principle of the above weighted average calculation is that the importance of the reference pixel is inversely proportional to its distance from the currently processed pixel. This weighted prediction method combines the advantages of the prediction modes in the two directions of VER+8 and HOR+8, and the extrapolation operation in two independent prediction modes is changed to a linear interpolation operation, which can improve the prediction accuracy and thus improve the intra prediction. Coding efficiency.
上述加权预测方法的缺点是计算复杂度过高。 上述计算式中包含除法操 作, 而除数 (dl+d2)可能为一定范围内的任意整数。 这种除法操作在实际应用 中会带来较大的硬件实现成本, 同时会降低编解码器处理速度, 增加编解码 器件功耗。 发明内容 本发明实施例提供一种用于视频图像帧内预测编、 解码的加权预测方法、 装置和系统, 提高编解码器的处理速度, 降低处理功耗。 A disadvantage of the above weighted prediction method is that the computational complexity is too high. The above calculation formula includes a division operation, and the divisor ( dl + d2 ) may be any integer within a certain range. This division operation will bring a large hardware implementation cost in practical applications, and at the same time, it will reduce the codec processing speed and increase the power consumption of the codec device. SUMMARY OF THE INVENTION Embodiments of the present invention provide a weighted prediction method, apparatus, and system for intra-frame prediction encoding and decoding of video images, which improve processing speed of a codec and reduce processing power consumption.
本发明实施例提供一种配对使用的两个权重因子的确定方法, 包括: 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一 个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值与第二 数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据 当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像 块的边长 N , 所述 NxN图像块为包含 NxN个像素点的正方形图像块。  An embodiment of the present invention provides a method for determining two weighting factors used in pairing, including: determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in a currently processed image block, where the horizontal coordinate component The coordinate system referenced by the ordinate component is the pixel point of the upper left corner of the currently processed image block as the coordinate origin, the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; the current pixel is determined according to the first value and the second value. Two weighting factors of the point, one of which is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, and the sum of the two weighting factors is twice the first value The first value is determined or preset according to an image block size of the currently processed image block, where the image block size is a side length N of the NxN image block, and the NxN image block is a square including NxN pixel points. Image block.
本发明实施例提供一种帧内加权预测方法, 包括: 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一 个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值与第二 数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据 当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像 块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块; An embodiment of the present invention provides an intra-frame weighted prediction method, including: And determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the horizontal coordinate component and the ordinate component is a coordinate point of the upper left corner of the currently processed image block. The origin, the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; determining two weighting factors of the current pixel point according to the first value and the second value, wherein one weighting factor is the first value and the second value And another weighting factor is a difference between the first value and the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined according to the image block size of the currently processed image block or is Setting, the image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points;
根据所述两个权重因子与两个预测值计算当前像素点的加权预测值, 所 述两个预测值为分别按两种指定帧内预测模式获取的预测值。  A weighted prediction value of the current pixel point is calculated based on the two weighting factors and the two predicted values, the predicted values being predicted values obtained in two specified intra prediction modes, respectively.
本发明实施例提供一种基于查表的帧内加权预测方法, 包括:  An embodiment of the present invention provides an intra-frame weighted prediction method based on a table lookup, including:
根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定索引数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据所述索弓 I数值从权重因子表中获取两个权重因子, 所述两个权重因 子为所述权重因子表中对应于所述索引数值的两个权重因子;  Determining an index value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, wherein the coordinate system referenced by the abscissa component and the ordinate component is a pixel origin of the upper left corner of the currently processed image block , the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; according to the cable I value, two weighting factors are obtained from the weighting factor table, where the two weighting factors are corresponding to the weighting factor table. Two weighting factors for the index value;
根据所述两个权重因子与两个预测值计算当前像素点的加权预测值, 所 述两个预测值为分别按两种指定帧内预测模式获取的预测值。  A weighted prediction value of the current pixel point is calculated based on the two weighting factors and the two predicted values, the predicted values being predicted values obtained in two specified intra prediction modes, respectively.
本发明实施例提供一种配对使用的两个权重因子的确定装置, 包括: 第一确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  An embodiment of the present invention provides a determining apparatus for two weighting factors used in pairing, including: a first determining module, configured to determine, according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel point in a currently processed image block, Numerical values, the coordinate system referenced by the abscissa component and the ordinate component is taken as the coordinate origin of the pixel in the upper left corner of the currently processed image block, the horizontal direction is horizontal to the right, and the ordinate direction is vertically downward;
第二确定模块, 用于根据第一数值与第二数值确定所述当前像素点的两 个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因 子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像 块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形 图像块。 a second determining module, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN The side length N of the image block, the NxN image block is a square containing NxN pixel points Image block.
本发明实施例提供一种帧内加权预测装置, 包括:  An embodiment of the present invention provides an intra-frame weighting prediction apparatus, including:
第三确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  a third determining module, configured to determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate component referenced by the ordinate component are currently processed images The pixel in the upper left corner of the block is taken as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第四确定模块, 用于根据第一数值与第二数值确定所述当前像素点的两 个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因 子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像 块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形 图像块;  a fourth determining module, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN An edge length N of the image block, the NxN image block being a square image block including NxN pixel points;
第一预测模块, 用于根据所述两个权重因子与两个预测值计算当前像素 点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的预 测值。  And a first prediction module, configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
本发明实施例提供一种基于查表的帧内加权预测装置, 包括:  An embodiment of the present invention provides an intra-frame weighting prediction apparatus based on a look-up table, including:
第五确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定索引数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  a fifth determining module, configured to determine an index value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate component referenced by the ordinate component are currently processed image blocks The pixel in the upper left corner is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第六确定模块, 用于根据所述索引数值从权重因子表中获取两个权重因 子, 所述两个权重因子为所述权重因子表中对应于所述索引数值的两个权重 因子;  a sixth determining module, configured to obtain two weight factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table;
第二预测模块, 用于根据所述两个权重因子与两个预测值计算当前像素 点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的预 测值。  And a second prediction module, configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
本发明实施例提供的技术方案, 通过根据当前处理图像块中当前像素点 的横坐标分量与纵坐标分量的差值确定第二数值, 根据第一数值与第二数值 确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二 数值的和, 另一个权重因子为第一数值与第二数值的差, 两个权重因子之和 为第一数值的两倍的技术手段, 从而提高了编解码器的处理速度, 降低了处 理功耗。 附图说明 According to the technical solution provided by the embodiment of the present invention, the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, according to the first value and the second value. Determining two weighting factors of the current pixel point, wherein one weighting factor is a sum of the first value and the second value, and another weighting factor is a difference between the first value and the second value, and the sum of the two weighting factors is A technical technique that doubles the value, thereby increasing the processing speed of the codec and reducing the processing power consumption. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be described in detail below. It is obvious that the drawings in the following description are only some embodiments of the present invention. It will be apparent to those skilled in the art that other drawings may be obtained from these drawings without the inventive labor.
图 1为现有技术中预测方向示意图;  1 is a schematic diagram of a prediction direction in the prior art;
图 2为本发明实施例提供的一种配对使用的两个权重因子的确定方法流 程图;  2 is a flow chart of a method for determining two weighting factors used in pairing according to an embodiment of the present invention;
图 3为本发明实施例提供的一种帧内加权预测方法流程图;  FIG. 3 is a flowchart of an intra-frame weighting prediction method according to an embodiment of the present invention;
图 4为本发明实施例的两种帧内预测模式示意图;  4 is a schematic diagram of two intra prediction modes according to an embodiment of the present invention;
图 5为本发明实施例提供的一种基于查表的帧内加权预测方法流程图; 图 6为本发明实施例的权重因子表的构造方法流程图;  5 is a flowchart of an intra-frame weighting prediction method based on table look-up according to an embodiment of the present invention; FIG. 6 is a flowchart of a method for constructing a weighting factor table according to an embodiment of the present invention;
图 7为本发明实施例提供的一种配对使用的两个权重因子的确定装置示 意图;  FIG. 7 is a schematic diagram of a determining apparatus for two weighting factors used in pairing according to an embodiment of the present invention;
图 8为本发明实施例提供的一种帧内加权预测装置示意图;  FIG. 8 is a schematic diagram of an intra-frame weighting prediction apparatus according to an embodiment of the present invention;
图 9为本发明实施例提供的一种基于查表的帧内加权预测装置示意图; 具体实施方式  FIG. 9 is a schematic diagram of an intra-frame weighting prediction apparatus based on table lookup according to an embodiment of the present invention;
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图 2所示, 本发明实施例提供一种配对使用的两个权重因子的确定方 法, 包括: 5101、 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的 差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处 理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖 直向下; As shown in FIG. 2, an embodiment of the present invention provides a method for determining two weighting factors used in pairing, including: S101: Determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate coordinate referenced by the vertical coordinate component are the upper left pixel pixel of the currently processed image block. As the origin of the coordinate, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
5102、 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值 与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中所述第一数值 根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN 图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块。  S102: Determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value. Poor, the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, the image block size being the side length N of the NxN image block The NxN image block is a square image block including NxN pixels.
本发明实施例提供的技术方案, 通过根据当前处理图像块中当前像素点 的横坐标分量与纵坐标分量的差值确定第二数值, 根据第一数值与第二数值 确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二 数值的和, 另一个权重因子为第一数值与第二数值的差, 两个权重因子之和 为第一数值的两倍的技术手段, 从而提高了编解码器的处理速度, 降低了处 理功耗。  According to the technical solution provided by the embodiment of the present invention, the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, and the current pixel is determined according to the first value and the second value. Two weighting factors, one of which is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, and the sum of the two weighting factors is twice the first value Means, thereby improving the processing speed of the codec and reducing the processing power consumption.
下面结合图 2对本发明实施例提供的一种配对使用的两个权重因子的确 定方法进一步说明如下:  A method for determining two weighting factors for pairing according to an embodiment of the present invention is further described below with reference to FIG. 2 as follows:
S101、 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的 差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处 理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖 直向下。  S101. Determine a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate coordinate referenced by the ordinate component are the pixel points in the upper left corner of the currently processed image block. As the origin of the coordinates, the horizontal axis direction is horizontal to the right and the ordinate direction is vertically downward.
本发明实施例中所述第二数值可以为当前像素点位置与基准线的位置偏 移。 所述当前像素点位置可以记做 (x,y)其中 X,y=0..BlkSize-l。 所述基准线指当前 处理图像块中横坐标分量与纵坐标分量相同的像素位置连接而成的线, 可以 记#文(x, y)其中x, y = O..BlkSize-l,x= y。 所述位置偏移可以记 ^ PosDev y] , 其可 以由当前像素点的横坐标分量与纵坐标分量确定, 所述确定方法可以有多种。 例如, 当第一数值确定为当前处理块的图像块尺寸 BlkSize时, 位置偏移可以 按照下面方法确定 PosDev[x, y] = x— y,其中 x, y = O..BlkSize-l The second value in the embodiment of the present invention may be a position offset of the current pixel point position and the reference line. The current pixel position can be written as (x, y) where X , y=0..BlkSize-l. The reference line refers to a line connecting the pixel positions of the current processing image block with the same abscissa component and the ordinate component, and can be recorded as #文(x, y) where x, y = O..BlkSize-l, x= y. The positional offset may be recorded as PosDev y], which may be determined by the abscissa component and the ordinate component of the current pixel point, and the determination method may be various. For example, when the first value is determined as the image block size BlkSize of the current processing block, the position offset may be determined according to the following method. PosDev[x, y] = x— y, where x, y = O..BlkSize-l
再例如, 当第一数值确定为一个固定值 FixedBlkSize时, 位置偏移可以按 照下面方法确定  For another example, when the first value is determined to be a fixed value FixedBlkSize, the position offset can be determined according to the following method.
PosDev[x, y] = (FixedBlkSize - PosDev[x, y])/ BlkSize,其中 x, y = 0.. BlkSize- 1  PosDev[x, y] = (FixedBlkSize - PosDev[x, y])/ BlkSize, where x, y = 0.. BlkSize- 1
或者等价的, 将上式中的整数乘法与除法运算换为左移与右移操作, PosDev[x, y] = (PosDev[x, y] « log2 FixedBlkSize) » log2 BlkSize,其中 x, y = 0.. BlkSize- 1 可见, 所述根据当前处理图像块中当前像素点的横坐标分量与纵坐标分 量的差值确定第二数值的方法可以为将当前像素点的横坐标分量与纵坐标分 量的差值作为第二数值, 或对该差值进行操作后作为第二数值, 对该差值的 操作可以为缩放或取绝对值等。 Or equivalent, change the integer multiplication and division in the above equation to the left and right shift operations, PosDev[x, y] = (PosDev[x, y] « log 2 FixedBlkSize) » log 2 BlkSize, where x y = 0.. BlkSize-1 is visible. The method for determining the second value according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block may be to compare the abscissa component of the current pixel point with The difference of the ordinate component is used as the second value, or the difference is operated as the second value, and the operation of the difference may be scaling or taking an absolute value or the like.
因为 log2 FixedBlkSize可以预先计算得到, 无需为每一个处理块重复计算, 而 log2 BlkSize可以通过查表方式获得, 所以第二种计算方法方法仅需两次移位 操作即可计算得到所述位置偏移, 具有低计算复杂度的优点。 某些实施方式 中 PosDev^ y]可能是负整数, 在移位操作时应根据负整数在所使用处理器内 的表示方法进行相应的调整, 保证移位操作与对应的乘法或除法能够获得相 同的结果。 Because log 2 FixedBlkSize can be pre-calculated, there is no need to repeat calculation for each processing block, and log 2 BlkSize can be obtained by table lookup, so the second calculation method can calculate the position by only two shift operations. Offset, with the advantage of low computational complexity. In some embodiments, PosDev^ y] may be a negative integer, and the shift operation should be adjusted according to the representation method of the negative integer in the processor used to ensure that the shift operation and the corresponding multiplication or division can be obtained. the result of.
S 102、 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值 与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数 值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块。  S102. Determine two weighting factors of the current pixel point according to the first value and the second value, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value. The difference between the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, and the image block size is the edge of the NxN image block. Long N, the NxN image block is a square image block containing NxN pixels.
所述第一数值可根据当前处理块的图像块尺寸确定。 若当前处理图像块 尺寸为 BlkSize, 可将 BlkSize作为第一数值。  The first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
所述第一数值也可预先设定。 例如, 可将一个固定值 FixedBlkSize作为第 —数值。  The first value can also be preset. For example, a fixed value of FixedBlkSize can be used as the first value.
所述当前像素点的两个权重因子可以记做 wl(x,y)与 W2(x,y)。 所述两个权 重因子之和可以记做 WeightSum , 其以 2为底的对数可以记做 Log2WeightSum。 The two weighting factors of the current pixel point can be written as wl(x, y) and W2 (x, y). The sum of the two weighting factors can be recorded as WeightSum, and the base-2 logarithm can be recorded as Log2WeightSum.
当第一数值确定为当前处理块的图像块尺寸 BlkSize时, 所述两个权重因 子可按照下面方法计算, When the first value is determined as the image block size BlkSize of the current processing block, the two weights are The child can be calculated as follows.
wl(x,y)=BlkSize+PosDev[x,y],其中 x, y = O..BlkSize-l  Wl(x,y)=BlkSize+PosDev[x,y], where x, y = O..BlkSize-l
w2(x,y)=BlkSize - PosDev[x,y],其中 x, y = O..BlkSize-l  W2(x,y)=BlkSize - PosDev[x,y], where x, y = O..BlkSize-l
所述两个权重因子之和为  The sum of the two weighting factors is
WeightSum = wl(x,y) + w2(x,y) = 2-BlkSize  WeightSum = wl(x,y) + w2(x,y) = 2-BlkSize
所述两个权重因子之和的以 2为底的对数为  The base 2 logarithm of the sum of the two weighting factors is
Log2WeightSum = log2WeightSum = log2 (2 · BlkSize) = log2BlkSize+l Log2WeightSum = log 2 WeightSum = log 2 (2 · BlkSize) = log 2 BlkSize+l
当第一数值确定为一个固定值 FixedBlkSize时, 所述两个权重因子可以按 照下面方法计算,  When the first value is determined to be a fixed value FixedBlkSize, the two weighting factors can be calculated as follows.
wl(x,y)=FixedBlkSize+PosDev[x,y],其中 y = 0.. BlkSize- 1  Wl(x,y)=FixedBlkSize+PosDev[x,y], where y = 0.. BlkSize- 1
w2(x,y)=FixedBlkSize - PosDev[x,y],其中 x, y = O..BlkSize-l  W2(x,y)=FixedBlkSize - PosDev[x,y], where x, y = O..BlkSize-l
所述两个权重因子之和为  The sum of the two weighting factors is
WeightSum = wl(x,y) + w2(x,y) = 2 · FixedBlkSize  WeightSum = wl(x,y) + w2(x,y) = 2 · FixedBlkSize
所述两个权重因子之和的以 2为底的对数为  The base 2 logarithm of the sum of the two weighting factors is
Log2WeightSum = log 2 WeightSum = log2 (2 · FixedBlkSize) = log2FixedBlkSize+ 1 因为视频编、 解码中的块尺寸 BlkSize或预先设定的固定块尺寸 Log2WeightSum = log 2 WeightSum = log 2 (2 · FixedBlkSize) = log 2 FixedBlkSize+ 1 Because of the block size BlkSize or preset fixed block size in video encoding and decoding
FixedBlkSize总是可以表示为 2N , 其中 N为正整数, 所以两个权重因子之和总 是可以表示为 2Ν+1 , 而两个权重因子之和的以 2为底的对数 Log2WeightSum为 N+l。 FixedBlkSize can always be expressed as 2 N , where N is a positive integer, so the sum of the two weighting factors can always be expressed as 2 Ν +1 , and the base 2 logarithm of the sum of the two weighting factors Log2WeightSum is N +l.
本发明实施例通过特定的权重因子获取方法, 使得两个权重因子之和总 可以表示为 2Ν+1 , 因此可以在使用所述两个权重因子进行加权预测的过程中, 使用移位操作代替除法运算, 降低运算复杂度, 从而能够加快编、 解码器运 行速度, 同时节约编、 解码器件功耗; 本发明实施例可避免在编、 解码芯片 中存储权重因子查找表, 节约编、 解码器的固化存储单元, 从而降低器件成 本; 本发明实施例可灵活调整加权预测精度, 可降低加权预测操作所需位宽, 节约编解码处理器中的带宽, 从而能够增加并行处理能力并降低存取操作所 需功耗。 The embodiment of the present invention adopts a specific weighting factor acquisition method, so that the sum of the two weighting factors can always be expressed as 2 Ν+1 , so the shift operation can be used instead of using the two weighting factors for weighted prediction. The division operation reduces the computational complexity, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices. The embodiment of the invention can avoid storing the weighting factor lookup table in the encoding and decoding chips, saving the encoding and decoding. The storage unit is solidified, thereby reducing the device cost. The embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, save bandwidth in the codec processor, thereby increasing parallel processing capability and reducing access. The power required for operation.
下面结合图 3对本发明实施例提供的一种帧内加权预测方法进行说明: S201、 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的 差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处 理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖 直向下。 An intra-frame weighted prediction method provided by an embodiment of the present invention is described below with reference to FIG. 3: S201. Determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is the pixel point in the upper left corner of the currently processed image block. As the origin of the coordinates, the horizontal axis direction is horizontal to the right and the ordinate direction is vertically downward.
本发明实施例中所述第二数值可以为当前像素点位置与基准线的位置偏 移。 所述当前像素点位置可以记做 (x,y)其中 X,y=0..BlkSize-l。 所述基准线指当前 处理图像块中横坐标分量与纵坐标分量相同的像素位置连接而成的线, 可以 记#文( y)其中 x, y = 0.. BlkSize- l and x = y。 所述位置偏移可以记 ^ PosDev^ y] , 其 可以由当前像素点的横坐标分量与纵坐标分量确定, 所述确定方法可以有多 种。 例如, 当第一数值确定为当前处理块的图像块尺寸 BlkSize时, 位置偏移 可以按照下面方法确定 The second value in the embodiment of the present invention may be a position offset of the current pixel point position and the reference line. The current pixel position can be written as (x, y) where X , y=0..BlkSize-l. The reference line refers to a line in which the abscissa component and the ordinate component of the currently processed image block are connected by the same pixel position, and can be recorded as #文( y) where x, y = 0.. BlkSize- l and x = y. The position offset may be recorded as PosDev^y], which may be determined by the abscissa component and the ordinate component of the current pixel point, and the determination method may be various. For example, when the first value is determined as the image block size BlkSize of the current processing block, the position offset may be determined according to the following method.
PosDev[x, y] = X— y,其中 X, y = O..BlkSize-l  PosDev[x, y] = X— y, where X, y = O..BlkSize-l
再例如, 当第一数值确定为一个固定值 FixedBlkSize时, 位置偏移可以按 照下面方法进行归一化处理来确定  For another example, when the first value is determined to be a fixed value FixedBlkSize, the position offset can be determined by normalizing the following method.
PosDev[x, y] = (FixedBlkSize - PosDev[x, y])/ BlkSize,其中 x, y = 0.. BlkSize- 1 或者等价的, 将上式中的整数乘法与除法运算换为左移与右移操作, PosDev[x, y] = (PosDev[x, y] « log2 FixedBlkSize) » log2 BlkSize,其中 x, y = 0.. BlkSize- 1 因为 log2 FixedBlkSize可以预先计算得到, 无需为每一个处理块重复计算, 而 log2 BlkSize可以通过查表方式获得, 所以第二种计算方法方法仅需两次移位 操作即可计算得到所述位置偏移, 具有低计算复杂度的优点。 某些实施方式 中 PosDev^ y]可能是负整数, 在移位操作时应根据负整数在所使用处理器内 的表示方法进行相应的调整, 保证移位操作与对应的乘法或除法能够获得相 同的结果。 PosDev[x, y] = (FixedBlkSize - PosDev[x, y])/ BlkSize, where x, y = 0.. BlkSize-1 or equivalent, change the integer multiplication and division in the above formula to the left With right shift operation, PosDev[x, y] = (PosDev[x, y] « log 2 FixedBlkSize) » log 2 BlkSize, where x, y = 0.. BlkSize- 1 because log 2 FixedBlkSize can be pre-computed, no need The calculation is repeated for each processing block, and the log 2 BlkSize can be obtained by looking up the table. Therefore, the second calculation method can calculate the position offset only by two shift operations, and has the advantage of low computational complexity. . In some embodiments, PosDev^ y] may be a negative integer, and the shift operation should be adjusted according to the representation method of the negative integer in the processor used to ensure that the shift operation and the corresponding multiplication or division can be obtained. the result of.
S202、 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值 与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数 值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块。 所述第一数值可根据当前处理块的图像块尺寸确定。 若当前处理图像块 尺寸为 BlkSize, 可将 BlkSize作为第一数值。 S202. Determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is a first value and a second value. Poor, the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to the image block size of the currently processed image block, and the image block size is the side length of the NxN image block N, the NxN image block is a square image block containing NxN pixels. The first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
所述第一数值也可预先设定。 例如, 可将一个固定值 FixedBlkSize作为第 一数值。 所述当前像素点的两个权重因子可以记做 wl(x,y)与 w2(x,y)。 所述两 个权重因子之和可以记做 WeightSum , 其以 2为底的对数可以记做  The first value can also be preset. For example, a fixed value of FixedBlkSize can be used as the first value. The two weighting factors of the current pixel point can be written as wl(x, y) and w2(x, y). The sum of the two weighting factors can be written as WeightSum, and its base 2 logarithm can be recorded as
Log2WeightSum。 Log2WeightSum.
当第一数值确定为当前处理块的图像块尺寸 BlkSize时, 所述两个权重因 子可按照下面方法计算,  When the first value is determined as the image block size BlkSize of the current processing block, the two weight factors can be calculated according to the following method.
wl(x,y)=BlkSize+PosDev[x,y],其中 x, y = 0.. BlkSize- 1  Wl(x,y)=BlkSize+PosDev[x,y], where x, y = 0.. BlkSize- 1
w2(x,y)=BlkSize - PosDev[x,y],其中 x, y = 0..BlkSize- 1  W2(x,y)=BlkSize - PosDev[x,y], where x, y = 0..BlkSize- 1
所述两个权重因子之和为  The sum of the two weighting factors is
WeightSum = wl(x,y) + w2(x,y) = 2-BlkSize  WeightSum = wl(x,y) + w2(x,y) = 2-BlkSize
所述两个权重因子之和的以 2为底的对数为  The base 2 logarithm of the sum of the two weighting factors is
Log2WeightSum = log2WeightSum = log2 (2 · BlkSize) = log2BlkSize+l Log2WeightSum = log 2 WeightSum = log 2 (2 · BlkSize) = log 2 BlkSize+l
当第一数值确定为一个固定值 FixedBlkSize时, 所述两个权重因子可以按 照下面方法计算,  When the first value is determined to be a fixed value FixedBlkSize, the two weighting factors can be calculated as follows.
wl(x,y)=FixedBlkSize+PosDev[x,y],其中 y = 0.. BlkSize- 1  Wl(x,y)=FixedBlkSize+PosDev[x,y], where y = 0.. BlkSize- 1
w2(x,y)=FixedBlkSize - PosDev[x,y],其中 x, y = O..BlkSize-l  W2(x,y)=FixedBlkSize - PosDev[x,y], where x, y = O..BlkSize-l
所述两个权重因子之和为  The sum of the two weighting factors is
WeightSum = wl(x,y) + w2(x,y) = 2 · FixedBlkSize  WeightSum = wl(x,y) + w2(x,y) = 2 · FixedBlkSize
所述两个权重因子之和的以 2为底的对数为  The base 2 logarithm of the sum of the two weighting factors is
Log2WeightSum = log 2 WeightSum = log2 (2 · FixedBlkSize) = log2FixedBlkSize+ 1 因为视频编、 解码中的块尺寸 BlkSize或预先设定的固定块尺寸 Log2WeightSum = log 2 WeightSum = log 2 (2 · FixedBlkSize) = log 2 FixedBlkSize+ 1 Because of the block size BlkSize or preset fixed block size in video encoding and decoding
FixedBlkSize总是可以表示为 2N , 其中 N为正整数, 所以两个权重因子之和总 是可以表示为 2Ν+1 , 而两个权重因子之和的以 2为底的对数 Log2WeightSum为 N+l。 FixedBlkSize can always be expressed as 2N , where N is a positive integer, so the sum of the two weighting factors can always be expressed as 2 Ν +1 , and the base 2 logarithm of the sum of the two weighting factors Log2WeightSum is N+ l.
S203、 根据所述两个权重因子与对应的两个预测值计算当前像素点的加 权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的预测值。 所述两种指定帧内预测模式可以为任意两种不同的帧内预测模式, 本发 明实施例采用方法尤其适用于如图 4所示的两种帧内预测模式, 即图 4(a)所示 的第一模式与图 4(b)所示的第二模式。其中第一模式为沿左下对角线方向的帧 内预测模式, 第二模式为沿右上对角线方向的帧内预测模式。 S203. Calculate, according to the two weighting factors and the corresponding two predicted values, a weighted prediction value of the current pixel point, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes. The two specified intra prediction modes may be any two different intra prediction modes. The method adopted by the embodiment of the present invention is particularly applicable to the two intra prediction modes shown in FIG. 4, that is, FIG. 4(a) The first mode shown is the second mode shown in Figure 4(b). The first mode is an intra prediction mode along a lower left diagonal direction, and the second mode is an intra prediction mode along an upper right diagonal direction.
所述两个预测值为本发明实施例采用方法的输入, 下面对所述两个预测 值的获取方法进行筒单介绍。 可按照第一模式的预测方法, 计算得到当前块 中每一像素位置的第一预测值, 记做
Figure imgf000013_0001
; 可按 照第二模式的预测方法, 计算得到当前块中每一像素的第二预测值, 记做 PredSample2[x, y]其中 y = O..BlkSize-l。 业内有多种预测方法可实现沿图 4所示预 测方向的帧内预测, 为公知技术。 例如, 按照在 HEVC编码框架中所描述的方 向性帧内预测方法,当前块内位置 (x,y)的像素按第一预测模式预测得到的第一 预测值为
The two predicted values are input of the method adopted by the embodiment of the present invention, and the method for obtaining the two predicted values is introduced below. According to the prediction method of the first mode, the first predicted value of each pixel position in the current block is calculated, and is recorded as
Figure imgf000013_0001
The second predicted value of each pixel in the current block can be calculated according to the prediction method of the second mode, and is denoted as PredSample2[x, y] where y = O..BlkSize-l. There are a variety of prediction methods in the industry that enable intra prediction along the prediction direction shown in Figure 4, which is a well-known technique. For example, according to the directional intra prediction method described in the HEVC coding framework, the first predicted value predicted by the pixel in the current intra-block position (x, y) in the first prediction mode is
PredSamplel[x, y] = p(x+ y + 1,— 1)其中 x, y = O..BlkSize-l  PredSamplel[x, y] = p(x+ y + 1, — 1) where x, y = O..BlkSize-l
当前块内位置 (x,y)的像素按第二预测模式预测得到的第二预测值为 PredSample2[x, y] =p(-l, x+ y+1)其中 y = O..BlkSize-l  The second predicted value predicted by the pixel in the current block position (x, y) according to the second prediction mode is PredSample2[x, y] = p(-l, x+ y+1) where y = O..BlkSize-l
其中 p(x,y)其中 x,y=0..2. BlkSize-l为当前处理块周围的重建像素值, 或当前 处理块周围的重建像素值经平滑滤波等处理后的像素值。  Where p(x,y) where x,y=0..2. BlkSize-l is the reconstructed pixel value around the current processing block, or the pixel value of the reconstructed pixel value around the current processing block after smoothing and so on.
本发明实施例中所述两个权重因子与所述两个预测值的对应关系可以有 多种, 下面举例说明。 为方便说明, 指定第一权重因子与第一预测值对应, 第二权重因子与第二预测值对应, 第一权重因子, 第二权重因子, 第一预测 值, 第二预测值可以按下面方法选择。 指定所述两个权重因子中其中一个权 重因子为第一权重因子, 另一个权重因子为第二权重因子。 所述第一权重因 子与第二权重因子的指定方法与第一与第二预测值的确定方法, 或第二数值 的确定方法, 或当前像素点位置, 或上述三个影响因素中任意数量影响因素 的组合影响有关。 例如, 按上述指定的第一与第二预测值, 并按照 S201中方 法计算第二数值, 则可将 S202中获取的权重因子 wl(x,y)作为第一权重因子, 将权重因子 w2(x,y)作为第二权重因子。 再例如, 若将 PredSamplel^ y]作为第二 预测值, 将 PredSample x^ y]作为第一预测值, 则需对应地将 wl(x,y)作为第二权 重因子, 将 w2(x,y)作为第一权重因子。 再例如, 若将 S201中获取第二数值的 计算式中的 X - y替换为 |χ- y| ,则需进一步判断当前像素点位置 X分量与 y分量的 相对大小, 若 X分量大于或大于等于 y分量, 则将 wl(x,y)作为第一权重因子, 将 w2(x,y)作为第二权重因子, 若 X分量小于等于或小于 y分量, 则将 wl(x,y)作 为第二权重因子, 将 W2(x,y)作为第一权重因子, 此时第一预测值为 There may be multiple correspondences between the two weighting factors and the two predicted values in the embodiment of the present invention, which are illustrated below. For convenience of description, the first weighting factor is specified to correspond to the first predicted value, the second weighting factor is corresponding to the second predicted value, the first weighting factor, the second weighting factor, the first predicted value, and the second predicted value may be as follows select. One of the two weighting factors is designated as the first weighting factor, and the other weighting factor is the second weighting factor. The first weighting factor and the second weighting factor specifying method and the first and second predicted value determining methods, or the second numerical value determining method, or the current pixel point position, or any of the above three influencing factors The combination of factors affects the impact. For example, according to the first and second predicted values specified above, and calculating the second value according to the method in S201, the weighting factor wl(x, y) obtained in S202 may be used as the first weighting factor, and the weighting factor w2 ( x, y) as the second weighting factor. For another example, if PredSamplel^y] is used as the second predicted value and PredSample x^y] is used as the first predicted value, wl(x, y) is correspondingly used as the second weight. The weight factor, with w2(x, y) as the first weighting factor. For example, if X - y in the calculation formula for obtaining the second value in S201 is replaced by |χ- y|, it is necessary to further determine the relative size of the X component and the y component of the current pixel position, if the X component is greater than or greater than Equal to the y component, w1(x, y) is taken as the first weighting factor, w2(x, y) is taken as the second weighting factor, and if the X component is less than or equal to or less than the y component, wl(x, y) is taken as The second weighting factor, using W 2 (x, y) as the first weighting factor, and the first predicted value is
PredSamplel[x, y] , 第二预测值为 PredSampleZI^ y]。 PredSamplel[x, y] , the second predicted value is PredSampleZI^ y].
为便于描述本发明实施例方法,在按所述方法确定位于 (x,y)位置像素点的 第一权重因子与第二权重因子之后, 调整符号的表示, 统一使用符号 wl表示 第一权重因子,使用符号 w2表示第二权重因子;在按所述方法确定位于 (x,y)位 置像素点第一预测值与第二预测值之后, 调整符号的表示, 统一使用符号  To facilitate the description of the method of the embodiment of the present invention, after determining the first weighting factor and the second weighting factor of the pixel at the (x, y) position according to the method, adjusting the representation of the symbol, uniformly using the symbol w1 to represent the first weighting factor , using the symbol w2 to represent the second weighting factor; after determining the first predicted value and the second predicted value of the pixel located at the (x, y) position according to the method, adjusting the representation of the symbol, uniformly using the symbol
PredSamplel表示第一预测值, 使用符号 PredSample2表示第二预测值。 PredSamplel represents the first predicted value, and the second predicted value is represented by the symbol PredSample2.
所述根据所述两个权重因子与对应的两个预测值计算当前像素点的加权 预测值包括使用除法操作的方式计算加权预测值或使用移位操作的方式计算 加权预测值。  The calculating the weighted prediction value of the current pixel point according to the two weighting factors and the corresponding two prediction values includes calculating the weighted prediction value by using a division operation or calculating the weighted prediction value by using a shift operation.
可按照下式使用除法操作的方式计算当前像素点的加权预测值 PredSample PredS ample = (wl- PredSamplel + w2. PredSample2 + (wl+w2) 12^ /(wl+w2) ,  The weighted prediction value of the current pixel point can be calculated by the division operation according to the following formula: PredSample PredS ample = (wl- PredSamplel + w2. PredSample2 + (wl+w2) 12^ /(wl+w2) ,
因为(wl+w2)可使用其以 2为底的对数 Log2WeightSum等价地表示, 上式可 以等价的使用移位操作的方式表示为  Since (wl+w2) can be expressed equivalently using its base 2 logarithm Log2WeightSum, the above equation can be expressed equivalently by using a shift operation.
PredSample = ( wl · PredSamplel + w2 · PredSample2 + (1 « (Log2WeightSum-l))) » Log2WeightSum 所述等价计算方法使用移位操作替代了原计算方法中的除法操作, 可得到相 同的计算结果。  PredSample = ( wl · PredSamplel + w2 · PredSample2 + (1 « (Log2WeightSum-l))) » Log2WeightSum The equivalent calculation method uses the shift operation instead of the division operation in the original calculation method to obtain the same calculation result.
所述两种计算方法分别引入(wl+w2)/2与 Log2WeightSum » l的目的是补偿 整数除法或以移位方式实现的整数除法引入的截断误差。  The two calculation methods respectively introduce (wl+w2)/2 and Log2WeightSum»l to compensate for the truncation error introduced by integer division or integer division implemented by shift.
本发明实施例通过使用移位操作代替加权预测中的除法运算, 降低运算 复杂度, 从而能够加快编、 解码器运行速度, 同时节约编、 解码器件功耗; 本发明实施例可避免在编、 解码芯片中存储权重因子查找表, 节约编、 解码 器的固化存储单元, 从而降低器件成本; 本发明实施例可灵活调整加权预测 精度, 可降低加权预测操作所需位宽, 节约编解码处理器中的带宽, 从而能 够增加并行处理能力并降低存取操作所需功耗。 The embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices. The weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost. The embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, so Increase parallel processing power and reduce the power consumption required for access operations.
下面结合图 5对本发明实施例提供一种基于查表的帧内加权预测方法进 行说明:  The following describes an intra-frame weighted prediction method based on table lookup according to an embodiment of the present invention with reference to FIG. 5:
5301、 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的 差值确定索引数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处 理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖 直向下。  S301. Determine an index value according to a difference between a horizontal coordinate component and a ordinate component of a current pixel in the currently processed image block, where the coordinate system referenced by the horizontal coordinate component and the ordinate component is taken as a pixel point in the upper left corner of the currently processed image block. The origin of the coordinates, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward.
可按照 S101中方法根据当前处理图像块中当前像素点的横坐标分量与纵 坐标分量的差值确定所述第二数值,再根据所述第二数值 PosDev y]按照下式 确定索引数值 Index[x, y]  The second value may be determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block according to the method in S101, and the index value Index is determined according to the second value PosDev y] according to the following formula [ x, y]
Index[x, y] = |PosDev[x, y]|,其中 x, y = O..BlkSize-l  Index[x, y] = |PosDev[x, y]|, where x, y = O..BlkSize-l
所述确定索引数值的方法中可以首先按照 S101中方法获取第二数值, 再 根据第二数值确定索引数值; 也可以直接由当前处理图像块中当前像素点的 横坐标分量与纵坐标分量的差值按照下式确定索引数值  The method for determining the index value may first obtain the second value according to the method in S101, and then determine the index value according to the second value; or directly from the difference between the abscissa component and the ordinate component of the current pixel point in the currently processed image block. The value is determined according to the following formula
Index[x, y] = | χ _ y|,其中 χ, y = O..BlkSize-l  Index[x, y] = | χ _ y|, where χ, y = O..BlkSize-l
 Or
Index[x, y] = (FixedBlkSize-|x- y|)/BlkSize,其中 x, y = O..BlkSize-l  Index[x, y] = (FixedBlkSize-|x- y|)/BlkSize, where x, y = O..BlkSize-l
5302、 根据所述索引数值从权重因子表中获取两个权重因子, 所述两个 权重因子为所述权重因子表中对应于所述索引数值的两个权重因子。  S302: Obtain two weighting factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table.
在本发明实施例中,所述权重因子表可以为两个一维查找表 WeightLUTl与 WeightLUT2。 当然可采用不同的数据结构来表示所述权重因子表,在查找操作 中做对应的修改就可以得到完全相同的实施效果, 这属于本发明实施例的筒 一维查找表 Wei ghtLUT 1与 WeightLUT2可以合并表示为一个等价的二维查找表 WeightLUT。 其它类似情况不在此——列举。  In the embodiment of the present invention, the weighting factor table may be two one-dimensional lookup tables WeightLUT1 and WeightLUT2. Certainly, different weight structures may be used to represent the weighting factor table, and the corresponding modification effect may be obtained by performing corresponding modification in the searching operation, which belongs to the one-dimensional lookup table Wei ghtLUT 1 and WeightLUT2 of the embodiment of the present invention. The merge is represented as an equivalent two-dimensional lookup table WeightLUT. Other similar situations are not here - enumerated.
根据所述索弓 I数值从权重因子表中获取两个权重因子。 若 PosDev^ y] > 0 或 PosDev^ y]≥ 0或等价的 x > y或 x≥ y , 则使用索 1数值 Index[x, y]查找第一权 重因子表 WeightLUTl获取第一权重因子 wl(x,y) ,使用索弓 |数值 Index[x, y]查找第 二权重因子表 WeightLUT2获取第二权重因子 w2(x,y); 若 PosDev^ y]≤ 0或 Two weighting factors are obtained from the weighting factor table according to the cable I value. If PosDev^ y] > 0 or PosDev^ y] ≥ 0 or equivalent x > y or x ≥ y, use the cable 1 value Index[x, y] to find the first weighting factor table WeightLUT1 to obtain the first weighting factor wl (x,y), use the cable bow | value Index[x, y] to find the first The second weighting factor table WeightLUT2 obtains the second weighting factor w2(x, y); if PosDev^ y] ≤ 0 or
PosDev[x, y] < 0^^ 0^ x < y ^ x < y , 则使用索弓 |数值 Index[x, y]查找第一权重 因子表 WeightLUTl获取第二权重因子 w2(x,y) ,使用索弓 |数值 Index[x, y]查找第二 权重因子表 WeightLUT2获取第一权重因子 wl(x,y)。 PosDev[x, y] < 0^^ 0^ x < y ^ x < y , then use the bow | value Index[x, y] to find the first weighting factor table WeightLUTl to obtain the second weighting factor w2(x, y) The second weighting factor table WeightLUT2 is used to find the first weighting factor wl(x, y) using the value of the index [x, y].
所述根据所述索引数值从权重因子表中获取两个权重因子的方法可根据 权重因子表的数据结构进行对应改变,这种改变可为位于 (x,y)位置的像素获取 相同的第一权重因子与第二权重因子。 因此所述改变为本发明实施例中查表  The method for obtaining two weight factors from the weighting factor table according to the index value may perform corresponding change according to the data structure of the weighting factor table, and the change may obtain the same first for the pixel located at the (x, y) position. The weighting factor and the second weighting factor. Therefore, the change is a table lookup in the embodiment of the present invention.
S303、 根据所述两个权重因子与两个预测值计算当前像素点的加权预测 值, 所述两个预测值为分别按两种指定帧内预测模式获取的预测值。 S303. Calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
可按 S203中方法确定第一预测值 PredSamplel[x, y]其中 x, y = O..BlkSize-l与第 二预测值 PredSample2[x, y]其中 x, y = O..BlkSize-l。  The first predicted value PredSamplel[x, y] may be determined according to the method in S203, where x, y = O..BlkSize-l and the second predicted value PredSample2[x, y] where x, y = O..BlkSize-l.
可按 S203中方法根据每一像素点的第一权重因子 wl , 第二权重因子 w2 , 第一预测值 PredSamplel , 第二预测值 PredSample2 , 计算得到其加权预测值 PredSample。 此处第一权重因子 wl , 第二权重因子 w2可按 S302中所述方法确 定。  The weighted prediction value PredSample may be calculated according to the first weighting factor w1, the second weighting factor w2, the first predicted value PredSamplel, and the second predicted value PredSample2 of each pixel according to the method in S203. Here, the first weighting factor wl and the second weighting factor w2 can be determined by the method described in S302.
本发明实施例中, 如图 6所示, 权重因子表的构造方法可以通过如下方式 实现:  In the embodiment of the present invention, as shown in FIG. 6, the method for constructing the weighting factor table can be implemented as follows:
S401、 根据第一数值确定权重因子表的索引数值, 所述索引数值包括小 于第一数值的正整数与 0;; 其中, 所述第一数值根据当前处理图像块的图像 块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像块的边长 N, 所述 NxN图 像块为包含 NxN个像素点的正方形图像块。  S401: Determine an index value of the weighting factor table according to the first value, where the index value includes a positive integer smaller than the first value and 0; wherein, the first value is determined according to an image block size of the currently processed image block or is preset The image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points.
所述第一数值可根据当前处理块的图像块尺寸确定。 若当前处理图像块 尺寸为 BlkSize, 可将 BlkSize作为第一数值。  The first value may be determined according to an image block size of the current processing block. If the currently processed image block size is BlkSize, BlkSize can be used as the first value.
所述第一数值也可预先设定。 例如, 可将一个固定值 FixedBlkSize作为第 —数值。  The first value can also be preset. For example, a fixed value of FixedBlkSize can be used as the first value.
假设所确定第一数值为 M, 则所述索引为 [0,M-1]集合内所有整数, 包括 0 与 M-l。 S402、 为每一个索引数值确定与之对应的两个权重因子, 从而生成权重 因子表; 所述为每一个索弓 I数值确定与之对应的两个权重因子的方法包括, 根据当前索引数值确定当前第二数值, 根据所述第一数值与所述第二数值确 定对应于所述索引数值的两个权重因子, 其中一个权重因子为第一数值与第 二数值的和, 另一个权重因子为第一数值与第二数值的差, 所述两个权重因 子之和为第一数值的两倍。 Assuming that the first value determined is M, then the index is all integers in the set [0, M-1], including 0 and M1. S402. Determine, according to each index value, two weighting factors corresponding thereto, thereby generating a weighting factor table. The method for determining two weighting factors corresponding to each of the indexing values includes: determining, according to the current index value a current second value, determining, according to the first value and the second value, two weighting factors corresponding to the index value, wherein one weighting factor is a sum of a first value and a second value, and another weighting factor is The difference between the first value and the second value, the sum of the two weight factors being twice the first value.
所述根据当前索引数值确定当前第二数值的方法包括直接将索弓 I数值作 为第二数值。  The method of determining the current second value based on the current index value includes directly using the value of the cable as the second value.
所述根据所述第一数值与所述第二数值确定对应于所述索引数值的两个 权重因子的方法与 S 102中所述根据第一数值与第二数值确定所述当前像素点 的两个权重因子的方法相同。  Determining, according to the first value and the second value, two weight factors corresponding to the index value, and determining, according to the first value and the second value, two of the current pixel points in S102 The weighting factors are the same.
本发明实施例通过使用移位操作代替加权预测中的除法运算, 降低运算 复杂度, 从而能够加快编、 解码器运行速度, 同时节约编、 解码器件功耗; 本发明实施例可避免在编、 解码芯片中存储权重因子查找表, 节约编、 解码 器的固化存储单元, 从而降低器件成本; 本发明实施例可灵活调整加权预测 精度, 可降低加权预测操作所需位宽, 节约编解码处理器中的带宽, 从而能 够增加并行处理能力并降低存取操作所需功耗。  The embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices. The weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost. The embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, which increases parallel processing power and reduces the power required for access operations.
如图 7所示, 本发明实施例提供一种配对使用的两个权重因子的确定装 置, 包括:  As shown in FIG. 7, an embodiment of the present invention provides a determining device for two weighting factors used in pairing, including:
第一确定模块 701 , 用于根据当前处理图像块中当前像素点的横坐标分量 与纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的 坐标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  a first determining module 701, configured to determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is currently processed The pixel in the upper left corner of the image block is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第二确定模块 702, 用于根据第一数值与第二数值确定所述当前像素点的 两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重 因子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其 中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述 图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正 方形图像块。 a second determining module 702, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first a difference between the value and the second value, wherein the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, and the image block size is The side length N of the NxN image block, the NxN image block is positive including NxN pixel points Square image block.
本发明实施例提供的技术方案, 通过根据当前处理图像块中当前像素点 的横坐标分量与纵坐标分量的差值确定第二数值, 根据第一数值与第二数值 确定所述当前像素点的两个权重因子, 其中一个权重因子为第一数值与第二 数值的和, 另一个权重因子为第一数值与第二数值的差, 两个权重因子之和 为第一数值的两倍的技术手段, 从而提高了编解码器的处理速度, 降低了处 理功耗。  According to the technical solution provided by the embodiment of the present invention, the second value is determined according to the difference between the abscissa component and the ordinate component of the current pixel in the currently processed image block, and the current pixel is determined according to the first value and the second value. Two weighting factors, one of which is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, and the sum of the two weighting factors is twice the first value Means, thereby improving the processing speed of the codec and reducing the processing power consumption.
本发明实施例通过使用移位操作代替加权预测中的除法运算, 降低运算 复杂度, 从而能够加快编、 解码器运行速度, 同时节约编、 解码器件功耗; 本发明实施例可避免在编、 解码芯片中存储权重因子查找表, 节约编、 解码 器的固化存储单元, 从而降低器件成本; 本发明实施例可灵活调整加权预测 精度, 可降低加权预测操作所需位宽, 节约编解码处理器中的带宽, 从而能 够增加并行处理能力并降低存取操作所需功耗。  The embodiment of the present invention reduces the operation complexity by using a shift operation instead of the division operation in the weighted prediction, thereby speeding up the running speed of the encoder and the decoder, and saving the power consumption of the encoding and decoding devices. The weighting factor lookup table is stored in the decoding chip, which saves the firmware of the codec and the decoder, thereby reducing the device cost. The embodiment of the invention can flexibly adjust the weighted prediction precision, can reduce the bit width required for the weighted prediction operation, and save the codec processor. Bandwidth, which increases parallel processing power and reduces the power required for access operations.
如图 8所示, 本发明实施例提供一种帧内加权预测装置, 包括:  As shown in FIG. 8, an embodiment of the present invention provides an intra-frame weighting prediction apparatus, including:
第三确定模块 801 , 用于根据当前处理图像块中当前像素点的横坐标分量 与纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的 坐标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  a third determining module 801, configured to determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the abscissa component and the ordinate component is currently processed The pixel in the upper left corner of the image block is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第四确定模块 802, 用于根据第一数值与第二数值确定所述当前像素点的 两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重 因子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其 中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述 图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正 方形图像块;  a fourth determining module 802, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first a difference between the value and the second value, wherein the sum of the two weighting factors is twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, and the image block size is An edge length N of the NxN image block, the NxN image block being a square image block including NxN pixel points;
第一预测模块 803 , 用于根据所述两个权重因子与两个预测值计算当前像 素点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的 预测值。  The first prediction module 803 is configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
如图 9所示,本发明实施例提供一种基于查表的帧内加权预测装置, 包括: 第五确定模块 901 , 用于根据当前处理图像块中当前像素点的横坐标分量 与纵坐标分量的差值确定索引数值, 所述横坐标分量与纵坐标分量所参考的 坐标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; As shown in FIG. 9, an embodiment of the present invention provides an intra-frame weighting prediction apparatus based on a look-up table, including: a fifth determining module 901, configured to determine an index value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate system referenced by the ordinate component are currently processed images The pixel in the upper left corner of the block is taken as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第六确定模块 902, 用于根据所述索引数值从权重因子表中获取两个权重 因子, 所述两个权重因子为所述权重因子表中对应于所述索引数值的两个权 重因子;  a sixth determining module 902, configured to acquire two weight factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table;
第二预测模块 903 , 用于根据所述两个权重因子与两个预测值计算当前像 素点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的 预测值。  The second prediction module 903 is configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are prediction values respectively acquired in two specified intra prediction modes.
某些实施方式中, 所述装置还包括:  In some embodiments, the apparatus further includes:
权重因子表构造模块 904, 用于根据所述第一数值确定权重因子表的索引 数值, 所述索引数值包括小于第一数值的正整数与 0; 其中, 所述第一数值根 据当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图 像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块; 为每一 个索引数值确定与之对应的两个权重因子, 从而生成权重因子表; 所述为每 一个索引数值确定与之对应的两个权重因子的方法包括, 根据当前索引数值 确定当前第二数值, 根据所述第一数值与所述第二数值确定对应于所述索引 数值的两个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一 个权重因子为第一数值与第二数值的差, 所述两个权重因子之和为第一数值 的两倍。  The weighting factor table construction module 904 is configured to determine, according to the first value, an index value of the weighting factor table, where the index value includes a positive integer smaller than the first value and 0; wherein the first value is based on the currently processed image block The image block size is determined or preset, the image block size is the side length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points; corresponding to each index value is determined Two weighting factors, thereby generating a weighting factor table; the method for determining two weighting factors corresponding to each index value includes: determining a current second value according to the current index value, according to the first value and the The second value determines two weighting factors corresponding to the index value, wherein one weighting factor is a sum of the first value and the second value, and the other weighting factor is a difference between the first value and the second value, the two The sum of the weighting factors is twice the first value.
本实施例提供的装置可以用于执行方法实施例的方法, 其实现原理和技 术效果类似, 此处不再赘述。  The apparatus provided in this embodiment may be used to implement the method in the method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
本发明实施例提供的技术可以应用在数字信号处理领域中, 通过编码器, 解码器实现。 视频编码器, 解码器广泛应用于各种通讯设备或电子设备中, 例如: 数字电视、 机顶盒、 媒体网关, 移动电话, 无线装置, 个人数据助理 ( PDA ) , 手持式或便携式计算机, GPS接收机 /导航器, 照相机, 视频播放 器, 摄像机, 录像机, 监控设备, 视频会议和可视电话设备等等。 这类设备 中包括处理器, 存储器, 以及传输数据的接口。 视频编解码器可以直接由数 字电路或芯片例如 DSP ( digital signal processor ) 实现, 或者由软件代码驱动 一处理器执行软件代码中的流程而实现。 The technology provided by the embodiments of the present invention can be applied to the field of digital signal processing, and is implemented by an encoder and a decoder. Video encoders, decoders are widely used in a variety of communication equipment or electronic devices, such as: digital TV, set-top box, media gateway, mobile phone, wireless device, personal data assistant (PDA), handheld or portable computer, GPS receiver / navigator, camera, video player, camcorder, video recorder, surveillance equipment, video conferencing and video telephony equipment, etc. Such equipment It includes the processor, memory, and interface for transferring data. The video codec can be implemented directly by a digital circuit or chip such as a DSP (digital signal processor), or by software code that drives a processor to execute the flow in the software code.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 书 Claim
1、 一种配对使用的两个权重因子的确定方法, 其特征在于, 包括: 根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一 个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值与第二 数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据 当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像 块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块。  A method for determining two weighting factors used in pairing, comprising: determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of a current pixel in a currently processed image block, the horizontal coordinate The coordinate system referenced by the component and the ordinate component is taken as the coordinate origin of the pixel in the upper left corner of the currently processed image block, the horizontal direction is horizontally rightward, and the ordinate direction is vertically downward; the current value is determined according to the first value and the second value. Two weighting factors of the pixel, wherein one weighting factor is the sum of the first numerical value and the second numerical value, and the other weighting factor is the difference between the first numerical value and the second numerical value, and the sum of the two weighting factors is the first numerical value The first value is determined or preset according to an image block size of the currently processed image block, the image block size is a side length N of the NxN image block, and the NxN image block is a NxN pixel point. Square image block.
2、 一种帧内加权预测方法, 其特征在于, 包括:  2. An intra-frame weighted prediction method, comprising:
根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定第二数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据第一数值与第二数值确定所述当前像素点的两个权重因子, 其中一 个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值与第二 数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据 当前处理图像块的图像块尺寸确定或预先设定, 所述图像块尺寸为 NxN图像 块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形图像块;  And determining a second value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the coordinate system referenced by the horizontal coordinate component and the ordinate component is a coordinate point of the upper left corner of the currently processed image block. The origin, the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; determining two weighting factors of the current pixel point according to the first value and the second value, wherein one weighting factor is the first value and the second value And another weighting factor is a difference between the first value and the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined according to the image block size of the currently processed image block or is Setting, the image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points;
根据所述两个权重因子与两个预测值计算当前像素点的加权预测值, 所 述两个预测值为分别按两种指定帧内预测模式获取的预测值。  A weighted prediction value of the current pixel point is calculated based on the two weighting factors and the two predicted values, the predicted values being predicted values obtained in two specified intra prediction modes, respectively.
3、 一种基于查表的帧内加权预测方法, 其特征在于, 包括:  3. An intra-frame weighted prediction method based on table lookup, comprising:
根据当前处理图像块中当前像素点的横坐标分量与纵坐标分量的差值确 定索引数值, 所述横坐标分量与纵坐标分量所参考的坐标系以当前处理图像 块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; 根据所述索弓 I数值从权重因子表中获取两个权重因子, 所述两个权重因 子为所述权重因子表中对应于所述索引数值的两个权重因子; 根据所述两个权重因子与两个预测值计算当前像素点的加权预测值, 所 述两个预测值为分别按两种指定帧内预测模式获取的预测值。 Determining an index value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, wherein the coordinate system referenced by the abscissa component and the ordinate component is a pixel origin of the upper left corner of the currently processed image block , the horizontal axis direction is horizontally to the right, and the ordinate direction is vertically downward; according to the cable I value, two weighting factors are obtained from the weighting factor table, where the two weighting factors are corresponding to the weighting factor table. Two weighting factors for the index value; The weighted prediction values of the current pixel points are calculated according to the two weighting factors and the two predicted values, and the two predicted values are predicted values respectively acquired in two specified intra prediction modes.
4、 根据权利要求 3所述方法, 其特征在于, 所述权重因子表的构造方法 包括:  The method according to claim 3, wherein the method for constructing the weighting factor table comprises:
根据所述第一数值确定权重因子表的索引数值, 所述索引数值包括小于 第一数值的正整数与 0; 其中, 所述第一数值根据当前处理图像块的图像块尺 寸确定或预先设定, 所述图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块 为包含 NxN个像素点的正方形图像块;  Determining, according to the first value, an index value of the weighting factor table, where the index value includes a positive integer smaller than the first value and 0; wherein, the first value is determined or preset according to an image block size of the currently processed image block. The image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points;
为每一个索引数值确定与之对应的两个权重因子, 从而生成权重因子表; 所述为每一个索弓 I数值确定与之对应的两个权重因子的方法包括, 根据 当前索引数值确定当前第二数值, 根据所述第一数值与所述第二数值确定对 应于所述索引数值的两个权重因子, 其中一个权重因子为第一数值与第二数 值的和, 另一个权重因子为第一数值与第二数值的差, 所述两个权重因子之 和为第一数值的两倍。  Determining two weighting factors corresponding to each index value, thereby generating a weighting factor table; the method for determining two weighting factors corresponding to each of the indexing values includes: determining the current number according to the current index value a second value, determining, according to the first value and the second value, two weighting factors corresponding to the index value, wherein one weighting factor is a sum of a first value and a second value, and another weighting factor is first The difference between the value and the second value, the sum of the two weighting factors being twice the first value.
5、 一种配对使用的两个权重因子的确定装置, 其特征在于, 包括: 第一确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  A device for determining two weighting factors for pairing, comprising: a first determining module, configured to determine, according to a difference between an abscissa component and a ordinate component of a current pixel point in a currently processed image block; The two numerical values, the coordinate system referenced by the abscissa component and the ordinate component is the pixel origin of the upper left corner of the currently processed image block, the horizontal axis direction is rightward, and the ordinate direction is vertically downward;
第二确定模块, 用于根据第一数值与第二数值确定所述当前像素点的两 个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因 子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像 块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形 图像块。  a second determining module, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN The side length N of the image block, the NxN image block is a square image block containing NxN pixels.
6、 一种帧内加权预测装置, 其特征在于, 包括:  6. An intra-frame weighted prediction apparatus, comprising:
第三确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定第二数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下; a third determining module, configured to determine a second value according to a difference between an abscissa component and a ordinate component of the current pixel in the currently processed image block, where the abscissa component and the ordinate component are referenced The target system uses the pixel point in the upper left corner of the currently processed image block as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第四确定模块, 用于根据第一数值与第二数值确定所述当前像素点的两 个权重因子, 其中一个权重因子为第一数值与第二数值的和, 另一个权重因 子为第一数值与第二数值的差, 两个权重因子之和为第一数值的两倍; 其中, 所述第一数值根据当前处理图像块的图像块尺寸确定或预先设定, 所述图像 块尺寸为 NxN图像块的边长 N, 所述 NxN图像块为包含 NxN个像素点的正方形 图像块;  a fourth determining module, configured to determine, according to the first value and the second value, two weighting factors of the current pixel, where one weighting factor is a sum of the first value and the second value, and another weighting factor is the first value a difference from the second value, the sum of the two weighting factors being twice the first value; wherein the first value is determined or preset according to an image block size of the currently processed image block, the image block size is NxN An edge length N of the image block, the NxN image block being a square image block including NxN pixel points;
第一预测模块, 用于根据所述两个权重因子与两个预测值计算当前像素 点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的预 测值。  And a first prediction module, configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
7、 一种基于查表的帧内加权预测装置, 其特征在于, 包括:  7. An intra-frame weighting prediction apparatus based on table lookup, comprising:
第五确定模块, 用于根据当前处理图像块中当前像素点的横坐标分量与 纵坐标分量的差值确定索引数值, 所述横坐标分量与纵坐标分量所参考的坐 标系以当前处理图像块左上角像素点作为坐标原点, 横坐标方向水平向右, 纵坐标方向竖直向下;  a fifth determining module, configured to determine an index value according to a difference between a horizontal coordinate component and a longitudinal coordinate component of the current pixel in the currently processed image block, where the horizontal coordinate component and the coordinate component referenced by the ordinate component are currently processed image blocks The pixel in the upper left corner is used as the coordinate origin, the horizontal axis direction is horizontal to the right, and the ordinate direction is vertically downward;
第六确定模块, 用于根据所述索引数值从权重因子表中获取两个权重因 子, 所述两个权重因子为所述权重因子表中对应于所述索引数值的两个权重 因子;  a sixth determining module, configured to obtain two weight factors from the weighting factor table according to the index value, where the two weighting factors are two weighting factors corresponding to the index value in the weighting factor table;
第二预测模块, 用于根据所述两个权重因子与两个预测值计算当前像素 点的加权预测值, 所述两个预测值为分别按两种指定帧内预测模式获取的预 测值。  And a second prediction module, configured to calculate a weighted prediction value of the current pixel point according to the two weighting factors and the two prediction values, where the two prediction values are predicted values respectively obtained by using two specified intra prediction modes.
8、 根据权利要求 7所述装置, 其特征在于, 所述装置还包括:  8. The device according to claim 7, wherein the device further comprises:
权重因子表构造模块, 用于  Weighting factor table construction module, for
根据所述第一数值确定权重因子表的索引数值, 所述索引数值包括小于 第一数值的正整数与 0; 其中, 所述第一数值根据当前处理图像块的图像块尺 寸确定或预先设定, 所述图像块尺寸为 NxN图像块的边长 N, 所述 NxN图像块 为包含 NxN个像素点的正方形图像块; 为每一个索引数值确定与之对应的两 个权重因子, 从而生成权重因子表; 所述为每一个索引数值确定与之对应的 两个权重因子的方法包括, 根据当前索引数值确定当前第二数值, 根据所述 第一数值与所述第二数值确定对应于所述索引数值的两个权重因子, 其中一 个权重因子为第一数值与第二数值的和, 另一个权重因子为第一数值与第二 数值的差, 所述两个权重因子之和为第一数值的两倍。 Determining, according to the first value, an index value of the weighting factor table, where the index value includes a positive integer smaller than the first value and 0; wherein, the first value is determined or preset according to an image block size of the currently processed image block. The image block size is an edge length N of the NxN image block, and the NxN image block is a square image block including NxN pixel points; two corresponding to each index value are determined a weighting factor, thereby generating a weighting factor table; the method for determining two weighting factors corresponding to each index value includes: determining a current second value according to the current index value, according to the first value and the first The two values determine two weighting factors corresponding to the index value, wherein one weighting factor is the sum of the first value and the second value, and the other weighting factor is the difference between the first value and the second value, the two weights The sum of the factors is twice the first value.
PCT/CN2012/072518 2011-03-20 2012-03-19 Method and device for determining weight factor, and method and device for intra-frame weighted prediction WO2012126340A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110067323.9 2011-03-20
CN201110067323.9A CN102695061B (en) 2011-03-20 2011-03-20 Method and apparatus for determining weight factors, and method and apparatus for predicting intra-frame weighting

Publications (1)

Publication Number Publication Date
WO2012126340A1 true WO2012126340A1 (en) 2012-09-27

Family

ID=46860323

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072518 WO2012126340A1 (en) 2011-03-20 2012-03-19 Method and device for determining weight factor, and method and device for intra-frame weighted prediction

Country Status (2)

Country Link
CN (1) CN102695061B (en)
WO (1) WO2012126340A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9185414B1 (en) 2012-06-29 2015-11-10 Google Inc. Video encoding using variance
US9374578B1 (en) 2013-05-23 2016-06-21 Google Inc. Video coding using combined inter and intra predictors
US9531990B1 (en) * 2012-01-21 2016-12-27 Google Inc. Compound prediction using multiple sources or prediction modes
US9609343B1 (en) 2013-12-20 2017-03-28 Google Inc. Video coding using compound prediction
US9628790B1 (en) 2013-01-03 2017-04-18 Google Inc. Adaptive composite intra prediction for image and video compression

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100804A (en) * 2014-05-20 2015-11-25 炬芯(珠海)科技有限公司 Method and device for video decoding
CN107786874A (en) * 2016-08-24 2018-03-09 浙江大学 Directional prediction method and apparatus in two-way frame
CN111050176B (en) 2018-10-15 2021-10-15 腾讯科技(深圳)有限公司 Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
JP7277586B2 (en) * 2018-12-21 2023-05-19 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Method and apparatus for mode and size dependent block level limiting
CN112584142B (en) * 2019-09-30 2022-09-30 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment
CN112616057B (en) 2019-10-04 2024-08-23 Oppo广东移动通信有限公司 Image prediction method, encoder, decoder, and storage medium
WO2021139572A1 (en) 2020-01-08 2021-07-15 Oppo广东移动通信有限公司 Encoding method, decoding method, encoder, decoder, and storage medium
CN115633168A (en) * 2022-09-30 2023-01-20 腾讯科技(深圳)有限公司 Video processing method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1535027A (en) * 2004-01-16 2004-10-06 北京工业大学 Inframe prediction method used for video frequency coding
JP2007019995A (en) * 2005-07-08 2007-01-25 Sony Corp Image processing device, method, and program
CN101820546A (en) * 2009-02-27 2010-09-01 源见科技(苏州)有限公司 Intra-frame prediction method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600116A (en) * 2009-03-11 2009-12-09 北京中星微电子有限公司 A kind of intra-frame prediction method and device
JP5158003B2 (en) * 2009-04-14 2013-03-06 ソニー株式会社 Image coding apparatus, image coding method, and computer program
US8995526B2 (en) * 2009-07-09 2015-03-31 Qualcomm Incorporated Different weights for uni-directional prediction and bi-directional prediction in video coding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1535027A (en) * 2004-01-16 2004-10-06 北京工业大学 Inframe prediction method used for video frequency coding
JP2007019995A (en) * 2005-07-08 2007-01-25 Sony Corp Image processing device, method, and program
CN101820546A (en) * 2009-02-27 2010-09-01 源见科技(苏州)有限公司 Intra-frame prediction method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9531990B1 (en) * 2012-01-21 2016-12-27 Google Inc. Compound prediction using multiple sources or prediction modes
US9185414B1 (en) 2012-06-29 2015-11-10 Google Inc. Video encoding using variance
US9883190B2 (en) 2012-06-29 2018-01-30 Google Inc. Video encoding using variance for selecting an encoding mode
US9628790B1 (en) 2013-01-03 2017-04-18 Google Inc. Adaptive composite intra prediction for image and video compression
US11785226B1 (en) 2013-01-03 2023-10-10 Google Inc. Adaptive composite intra prediction for image and video compression
US9374578B1 (en) 2013-05-23 2016-06-21 Google Inc. Video coding using combined inter and intra predictors
US9609343B1 (en) 2013-12-20 2017-03-28 Google Inc. Video coding using compound prediction
US10165283B1 (en) 2013-12-20 2018-12-25 Google Llc Video coding using compound prediction

Also Published As

Publication number Publication date
CN102695061A (en) 2012-09-26
CN102695061B (en) 2015-01-21

Similar Documents

Publication Publication Date Title
WO2012126340A1 (en) Method and device for determining weight factor, and method and device for intra-frame weighted prediction
CN107959856B (en) Method and apparatus for encoding and decoding image by intra prediction
CN106331722B (en) Image prediction method and relevant device
CN103096055B (en) The method and apparatus of a kind of image signal intra-frame prediction and decoding
EP3531698A1 (en) Deblocking filter method and terminal
KR101464057B1 (en) An apparatus, a method and a computer program for video coding
WO2016050051A1 (en) Image prediction method and relevant device
WO2012097743A1 (en) Method and device for image encoding and decoding
WO2018219938A1 (en) Method and apparatus for low-complexity bi-directional intra prediction in video encoding and decoding
KR20130128463A (en) Coding method, decoding method, and equipments for transform coefficients
US20130301730A1 (en) Spatial domain prediction encoding method, decoding method, apparatus, and system
US9432699B2 (en) Methods, apparatuses and computer programs for video coding
US9674529B2 (en) Intra-frame decoding method and apparatus for signal component sampling point of image block
US8848798B2 (en) Information processing apparatus and inter-prediction mode determination method
WO2012161318A1 (en) Image encoding device, image decoding device, image encoding method, image decoding method and program
JP2016025541A (en) Moving image encoder, moving image encoding method, and program
TW201501511A (en) Prediction method and system in image compression
CN117061753A (en) Method and apparatus for predicting inter-coded motion vector
JP5637010B2 (en) Motion vector detection apparatus, motion vector detection method, and motion vector detection program
JP2010074347A (en) Device and method for encoding moving image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12760400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12760400

Country of ref document: EP

Kind code of ref document: A1