WO2012095036A1 - 图像编码解码方法、处理图像数据方法及其设备 - Google Patents

图像编码解码方法、处理图像数据方法及其设备 Download PDF

Info

Publication number
WO2012095036A1
WO2012095036A1 PCT/CN2012/070404 CN2012070404W WO2012095036A1 WO 2012095036 A1 WO2012095036 A1 WO 2012095036A1 CN 2012070404 W CN2012070404 W CN 2012070404W WO 2012095036 A1 WO2012095036 A1 WO 2012095036A1
Authority
WO
WIPO (PCT)
Prior art keywords
adjacent
coded block
image data
intra
coded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2012/070404
Other languages
English (en)
French (fr)
Inventor
赖昌材
林永兵
郑萧桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to JP2013548735A priority Critical patent/JP5819985B2/ja
Priority to AU2012206839A priority patent/AU2012206839B2/en
Priority to BR112013018073-0A priority patent/BR112013018073B1/pt
Priority to EP12733974.5A priority patent/EP2651131A4/en
Priority to RU2013137851/08A priority patent/RU2571514C2/ru
Priority to CA2824473A priority patent/CA2824473C/en
Priority to KR1020137019521A priority patent/KR101503763B1/ko
Priority to SG2013052733A priority patent/SG191905A1/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2012095036A1 publication Critical patent/WO2012095036A1/zh
Priority to US13/938,853 priority patent/US9485504B2/en
Anticipated expiration legal-status Critical
Priority to US15/278,469 priority patent/US9979965B2/en
Priority to US15/958,171 priority patent/US10264254B2/en
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • 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/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • 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/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame 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
    • 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/182Methods 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 a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/65Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using error resilience

Definitions

  • the present invention relates to the field of communications, and in particular, to an image coding method, an image decoding method, a method for processing image data, and a device thereof in the communication field. Background technique
  • the intra refresh method is a relatively simple and effective error recovery method, such as an I frame refresh method, an I block refresh method based on random or error tracking, an adaptive intra macroblock refresh, and the like.
  • the I frame is encoded by intra-frame (INTRA) coding, which can also be called intra-coded frame.
  • I-frame does not need to refer to other frames.
  • the frame is moderately compressed as a reference point for random access, and can also be used as a map. Elephant. Since refreshing the entire I frame will result in a sudden occurrence of a frame with a large code rate in the code stream, this will cause a strong bit stream impact on the system. Therefore, in practice, the frame is refreshed by partially encoding the block in the frame. .
  • the P frame in the video frame is encoded by inter-frame (INTER) coding, whereby the P frame may also be referred to as an inter-coded frame.
  • the interframe prediction of the P frame needs to refer to the previous P frame, when a transmission error occurs in a certain P frame, the error is transmitted to the subsequent P frame, thereby causing a serious degradation of the decoding quality of the subsequent P frame. Therefore, in order to avoid degradation of decoding quality, an intra refresh frame (intra refresh frame, called "IR" frame) may be defined in a P frame, wherein some or all of the coded blocks in the IR frame are encoded by intra coding.
  • An encoding block using intra coding may also be referred to as an intra refresh block.
  • the intra-coded block (intra-frame refresh block) in the IR frame will not be directly encoded with reference to the P-frame before the IR frame, but will be encoded using the intra-frame coding method with reference to the adjacent coded block of the frame.
  • the adjacent coded block of an intra-coded block is an inter-coded block
  • the code block still references the previous P frame
  • the inter-coded block may also accumulate some transmission errors from the previous reference frame and pass the error to the intra-coded block for refreshing, so that the intra-coded block is also subject to
  • the adverse effects of transmission errors greatly reduce the error recovery capability that the intra refresh method should have, affecting the decoding quality of image data such as video.
  • an embodiment of the present invention provides an image encoding method, an image decoding method, a method for processing image data, and a device thereof, by updating image data in adjacent inter-coded blocks, and using updated image data.
  • the current intra-coded block is encoded or decoded, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality of the image data.
  • an embodiment of the present invention provides a method for image coding, the method comprising: determining a current intra-coded block in a current inter-coded frame using a constrained intra prediction mode; determining to be adjacent to the current intra-coded block The adjacent coded block includes an adjacent inter-coded block; and the image data in the adjacent inter-coded block is updated based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block And encoding the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • an embodiment of the present invention further provides a method for image decoding, the method comprising: determining a current intra-coded block in a current inter-coded frame using a constrained intra prediction mode; determining and encoding the current intra-coded block
  • the adjacent adjacent coding block includes an adjacent inter-coded block; and the image data in the adjacent inter-coded block is performed based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block.
  • Update processing decoding the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • the embodiment of the present invention further provides a method for processing image data, the method comprising: determining that all coding blocks in a current coding object adopt a constrained intra prediction mode; and adjacent to a current intra coding block. Determining, in an adjacent coding block, a specific phase code block belonging to a different coding object from the current intra coding block; and based on a fixed value or image data in an adjacent intra coding block included in the adjacent coding block, the adjacent frame The image data in the inter-coded block is subjected to an update process; the current intra-coded block is encoded or decoded based on the updated image data in the adjacent inter-coded block.
  • an embodiment of the present invention further provides an apparatus for image coding, where the apparatus includes: a first determining module, configured to determine a current intra-coded block that uses a constrained intra prediction mode in a current inter-coded frame; and a second determining module, configured to determine, by using a neighboring coded block adjacent to the current intra-coded block, An adjacent inter-coded block; an update module, configured to perform update processing on the image data in the adjacent inter-coded block based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block; And an encoding module, configured to encode the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • the embodiment of the present invention further provides an apparatus for image decoding, where the apparatus includes: a first determining module, configured to determine a current intra-coded block in a current inter-coded frame by using a constrained intra prediction mode; And a second determining module, configured to determine that the adjacent coding block adjacent to the current intra-coded block includes a neighboring inter-coded block, and an update module, configured to use the adjacent frame included by the fixed value or the adjacent coded block
  • the image data in the inner coding block is subjected to update processing on the image data in the adjacent inter-coded block; the decoding module is configured to encode the current intra frame based on the updated image data in the adjacent inter-coded block The block is decoded.
  • the embodiment of the present invention further provides an apparatus for processing image data, where the apparatus includes: a first determining module, configured to determine that all coding blocks in the current coding object adopt a constrained intra prediction mode; And determining, in a neighboring coding block adjacent to the current intra coding block, a specific adjacent coding block that belongs to a different coding object from the current intra coding block; and a third determining module, configured to determine that the a fixed value or image data in an adjacent intra-coded block included in the adjacent coded block, performing update processing on the image data in the adjacent inter-coded block; a codec module, configured to perform coding based on the adjacent frame The updated image data in the block encodes or decodes the current intra-coded block.
  • the method and the device in the embodiment of the present invention perform the update processing on the image data in the adjacent inter-coded block, and encode or decode the current intra-coded block by using the updated image data, so as to be
  • the inter-coded block referenced by the intra-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality of the image data.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of an image encoding method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an update process according to another embodiment of the present invention.
  • Figures (a) to (c) in Figure 4 are schematic diagrams of an update process according to still another embodiment of the present invention.
  • Figure 5 is a schematic diagram of an image decoding method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a method of processing image data according to an embodiment of the present invention.
  • Figure 7 is a block diagram of an apparatus for image encoding in accordance with an embodiment of the present invention.
  • FIG. 8 is a block diagram of an apparatus for image encoding according to another embodiment of the present invention.
  • FIG. 9 is a block diagram of an apparatus for image decoding in accordance with an embodiment of the present invention.
  • FIG. 10 is a block diagram of an apparatus for image decoding according to another embodiment of the present invention.
  • FIG. 11 is a block diagram of an apparatus for processing image data in accordance with an embodiment of the present invention. detailed description
  • FIG. 1 shows a scenario in which an embodiment of the present invention is applied.
  • the video frame may include an intra-coded frame (as shown by the I frame in FIG. 1) and an inter-coded frame (shown as a P frame in FIG. 1), the intra-coded frame and the inter-frame.
  • the coded frame may be further divided into multiple coded blocks, where all coded blocks in the intra-coded frame are intra-coded blocks, and the coded block in the inter-coded frame may include both intra-coded blocks and inter-frame blocks.
  • the coding block wherein the intra-coded frame and the intra-coded block are encoded or decoded by intra-frame coding, and the inter-coded frame and the inter-coded block are coded or decoded by using an inter-frame coding mode.
  • some intra-frame refresh frames may be defined in the inter-coded frame, forcing some coding blocks in the intra-frame refresh frame. Encoding or decoding is performed by intra-frame coding. These coding blocks belong to intra-coded blocks and may also be referred to as intra-frame refresh blocks.
  • the adjacent coding block of the intra-coded block is an inter-coded block, the inter-coded block may have accumulated some transmission errors. If the inter-coded block is directly referenced, the intra-coded block may also be affected by the transmission error. , it is difficult to guarantee the difference that the intra refresh method should have Wrong recovery ability. As shown in FIG. 1, adjacent blocks A and B of intra-coded block E are erroneous blocks with transmission errors. To avoid accumulation of transmission errors, it is necessary to limit the reference features of the intra-coded blocks according to an embodiment of the present invention. .
  • FIG. 2 shows a schematic diagram of an image encoding method according to an embodiment of the present invention. As shown in Figure 2, the method includes:
  • a current intra-coded block in a constrained intra prediction mode in a current inter-coded frame is determined, where the constrained intra-prediction mode refers to: when performing intra-coded block coding, decoding, or prediction, the frame
  • the reference data of the inner coded block can only come from the image data of the intra-coded block adjacent to the intra-coded block, or the default default value (or fixed value), but not from the adjacent inter-coded block. Image data.
  • the adjacent coding block adjacent to the current intra coding block includes a neighboring inter coding block, where the adjacent coding block is a coding block adjacent to or connected to the current intra coding block, for the current
  • its adjacent coded block may generally include a left adjacent coded block, an upper adjacent coded block, a lower left adjacent coded block, and an upper right adjacent coded block.
  • the adjacent coded block may further include a right adjacent coded block, a lower adjacent coded block, an upper left adjacent coded block, and a lower right adjacent coded block.
  • image data in the adjacent inter-coded block is updated based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block.
  • the current intra-coded block is encoded based on the updated image data in the adjacent inter-coded block.
  • the current coded block of the current inter-coded frame For the current coded block of the current inter-coded frame, determining whether the current coded block is an intra-coded block coded by using an intra-frame coding mode, and determining whether the current coded block is predicted, encoded, or decoded using a constrained intra-prediction mode If it is determined that the current coding block is the current intra-coded block in the constrained intra prediction mode, then the coding mode of the adjacent coding block of the current intra-coded block is further determined. If the adjacent coded block includes an inter-coded block, the inter-coded block cannot be used as the reference coded block of the current intra-coded block, that is, when the intra-prediction is used, the image in the inter-coded block cannot be used.
  • the data predicts the current intra-coded block. For this reason, before the intra prediction is performed, the image data in the adjacent inter-coded block may be updated based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coding block. Thereafter, the current intra-coded block can be encoded based on the updated image data in the adjacent inter-coded block.
  • the image data to be referenced in the inter-coded block may be referred to in a usual manner, wherein the image data to be referenced refers to a neighboring block that may be used when predicting the current intra-coded block. Pixel.
  • the image data to be referenced is not a pixel in the inter-coded block that may have a transmission error, thereby being used as a reference pixel of the current intra-coded block, thereby ensuring The current intra-coded block does not reference the image data in the adjacent inter-coded block, thereby preventing transmission errors from being passed into the current intra-coded block.
  • the image data in the adjacent inter-coded block is updated, and the current intra-coded block is encoded or decoded by using the updated image data, so that the intra-coded block is referenced.
  • the inter-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the image data decoding quality.
  • the current coding block may be first determined whether the current coding block is an intra-coded block. If the current coding block is an inter-coded block, the current image data processing flow is ended, and the next coding in the current inter-coded frame is performed. The block is processed later. When it is determined that the current coding block is an intra-coded block, it is further determined whether the current intra-coded block is predicted using the constrained intra prediction mode. If not, the subsequent update process is not necessary, and the current process ends.
  • the encoding mode of the current encoding frame when encoding, may be determined by an identifier in the code stream to determine whether the current encoding frame is an inter-coded frame; when encoding, the encoding parameter and the encoding process may be adopted. A determination is made as to whether the current encoded frame is an inter-coded frame.
  • each coding block may have an identifier indicating the coding mode of the coding block, and the current coding state identifier corresponding to the current coding block in the code stream may be determined during decoding.
  • Whether the coding block is encoded by intra coding; whether the current coding block is an intra coding block can also be determined by the coding parameter and the coding process during decoding. It will be understood by those skilled in the art that the encoding of the encoded frame and the encoded block can also be determined using other methods known in the art.
  • whether the current coding block is encoded or decoded by using the constrained intra prediction mode may be determined according to a Constrained Intra Prediction Flag in the code stream. For example, when the constrained intra prediction flag is 1, it indicates that the current coding block uses constrained intra prediction. The method performs prediction, coding or decoding; when the constrained intra prediction flag is 0, it indicates that the current coding block is not predicted, encoded or decoded by the constrained intra prediction method. Those skilled in the art will appreciate that the constrained intra prediction mode can also be determined using other methods known in the art.
  • FIG. 3 is a schematic diagram of an update process according to an embodiment of the present invention, taking a hierarchical block of High Efficiency Video Coding ("High Efficiency Video Coding") as an example.
  • High Efficiency Video Coding High Efficiency Video Coding
  • all the image data in the adjacent inter-coded block may be updated, and optionally, only the adjacent inter-coded block and current One row or one column of pixel data adjacent to the intra-coded block is updated. It will be understood by those skilled in the art that it is also possible to perform update processing on multi-row or multi-column pixel data in adjacent inter-coded blocks.
  • the adjacent coded block when updating image data in an adjacent inter-coded block, it may be first determined that the adjacent coded block further includes at least one adjacent intra-coded block, that is, the current intra-coded block.
  • the adjacent coding block includes both an inter-coded block and an intra-coded block.
  • an adjacent intra-coded block that is closest to the current adjacent inter-coded block may be determined, and based on image data in the most adjacent intra-coded block.
  • updating the image data in the adjacent inter-coded block may be filled into the adjacent inter-coded block.
  • the current intra-coded block E includes four adjacent coded blocks, that is, the upper left adjacent coded block A, the upper adjacent coded block B, the upper right adjacent coded block C, and the left phase.
  • the adjacent coding block D in which only the upper right adjacent coding block C is determined to be an adjacent intra coding block.
  • the update processing of the image data in the adjacent inter-coded block B is taken as an example. Only the upper right adjacent coded block C of the four adjacent coded blocks is an intra-coded block, and the upper right adjacent code may be used.
  • the pixel value closest to the adjacent inter-coded block B in block C is filled into the adjacent inter-coded block B. Alternatively, the pixel value may be filled into a row of pixels adjacent to the current intra-coded block E in the adjacent inter-coded block B, as shown in Figure (a) of Figure 4.
  • the upper right adjacent coding block C and the left adjacent coding block D are adjacent intra-coded blocks.
  • the image data in the adjacent inter-coded block B is updated, it can be determined that the left adjacent coded block D is closest to the adjacent inter-coded block B, so that the adjacent inter-coded block B can be The image data is updated to image data in the left adjacent coded block D.
  • the at least two when determining that the adjacent coded block includes at least two adjacent intra-coded blocks, the at least two may be based on the image data in the at least two adjacent intra-coded blocks.
  • Phase The method of performing weighted averaging on the distance between the adjacent intra-coded block and the current intra-coded block, and updating the image data in the adjacent inter-coded block.
  • the adjacent inter-coded block B has adjacent intra-coded blocks on both sides, that is, the upper left adjacent coding block A and the upper right adjacent coding block C. 4, in the upper left adjacent coding block A and the upper right adjacent coding block C, the pixel values closest to the adjacent inter-coded block B are Pr and P1, respectively, and the current pixel of the adjacent inter-coded block B The nearest distances are a and b, respectively, and the pixel value R can be filled into the corresponding current pixel in the adjacent inter-coded block B, wherein the pixel value R can be expressed by the formula (1):
  • the adjacent inter-coded block when updating image data in an adjacent inter-coded block, when determining that all adjacent coded blocks are inter-coded blocks, the adjacent inter-coded block may be used.
  • the image data in is updated to a fixed value, such as 128 or other fixed value.
  • the image data in all the adjacent coding blocks may be directly updated to a fixed value, regardless of whether the adjacent coding block includes the adjacent Intra coding block.
  • the updated inter-coded block can be used as the current intra-coded block.
  • the adjacent inter-coded block can be regarded as an intra-coded block.
  • the updated image data in the adjacent inter-coded block may be filled into other adjacent inter-coded blocks according to the above method. .
  • the image data in the adjacent inter-coded block is updated, and the current intra-coded block is encoded or decoded by using the updated image data, so that the intra-coded block is referenced.
  • the inter-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the image data decoding quality; and since the intra-coded block can refer to the image of the adjacent coded block Data, whereby the method according to an embodiment of the invention can also improve the coding or decoding efficiency of the intra-coded block.
  • FIG. 5 shows a schematic diagram of an image decoding method according to an embodiment of the present invention. As shown in Figure 5, the method includes:
  • a current intra-coded block in a constrained intra prediction mode in a current inter-coded frame is determined, where the constrained intra-prediction mode is: when performing intra-coded block coding, decoding, or prediction,
  • the reference data of the intra-coded block can only come from the image data of the intra-coded block adjacent to the intra-coded block, or the default default value (or fixed value), but cannot be from the adjacent inter-frame. Encode image data of the block.
  • the adjacent coding block adjacent to the current intra coding block includes an adjacent inter coding block, where the adjacent coding block is a coding block adjacent to or connected to the current intra coding block, for the current
  • its adjacent coded block may generally include a left adjacent coded block, an upper adjacent coded block, a lower left adjacent coded block, and an upper right adjacent coded block.
  • the adjacent coded block may further include a right adjacent coded block, a lower adjacent coded block, an upper left adjacent coded block, and a lower right adjacent coded block.
  • the image data in the adjacent inter-coded block is updated based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block.
  • the current intra-coded block is decoded based on the updated image data in the adjacent inter-coded block.
  • the current coding block is determined to be coded by using an intra coding mode according to an encoding mode identifier corresponding to a current coding block of the current inter-coded frame in the code stream.
  • the current coding block may be determined to be decoded by using a constrained intra prediction manner according to the constrained intra prediction flag in the code stream.
  • only one row or one column of pixel data adjacent to the current intra-coded block in the adjacent inter-coded block may be updated. It will be understood by those skilled in the art that multi-row or multi-column pixel data in adjacent inter-coded blocks may also be updated.
  • the image processing data in the adjacent inter-coded block may be updated by using various update processing methods as shown in FIG. 3 to FIG. 4, and the details are not described again.
  • the image data in the adjacent inter-coded block is updated, and the current intra-coded block is encoded or decoded by using the updated image data, so that the intra-coded block is referenced.
  • the inter-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality and efficiency of the image data.
  • the coding mode of the current coding block may be first determined according to the coding parameter and the coding process. If the current coding block is an intra coding block that is coded by using an intra coding method in an inter coding frame, for example, according to the code.
  • the constrained intra prediction flag in the stream determines whether the current coding block is predicted by using a constrained intra prediction mode. For the current intra-coded block using constrained intra prediction, Then judge the encoding mode of its adjacent coding block.
  • the pixel data to be referenced in the inter-coded block may be performed based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coding block. Update processing. Then, the current intra-coded block can be intra-predicted and the residual data is obtained, and then the residual data is transformed and quantized to obtain a quantized coefficient, and finally the quantized coefficient can be entropy encoded.
  • the code stream may be parsed first, and the prediction coding mode and the quantization coefficient of the decoding block in the current inter-coded frame are obtained.
  • the current coding block may be determined according to the coding mode identifier corresponding to the current coding block in the code stream. Whether to use intra coding to encode. If the current block is an intra-coded block, it is determined whether the current intra-coded block is predicted, encoded, or decoded using constrained intra prediction. For the current intra-coded block using constrained intra prediction, the coding type of its adjacent coding block is determined.
  • the pixel data to be referenced in the inter-coded block may be performed based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coding block. Update processing. Then, intra prediction is performed on the current intra-coded block to obtain prediction data; inverse quantization is performed on the quantization coefficient, and inverse-quantized coefficients are inverse-transformed to obtain residual data. Finally, the decoded image can be reconstructed based on the obtained residual data and the predicted data.
  • H.264, Advanced Video Coding ("AVC”), and Audio Video Standard (AVS) can also be applied to the HEVC standard being developed.
  • AVC Advanced Video Coding
  • AVS Audio Video Standard
  • the left or upper adjacent coded block of the intra refresh block may include a plurality of adjacent coded blocks, and in the plurality of adjacent coded blocks, there may be both an intra coded block and a frame. Inter-coded block, different from the H.264/AVC standard.
  • the coding block type in H.264/AVC is in units of 16x16 coding blocks, there is only one adjacent coding block on the side of the intra refresh block, the phase
  • the adjacent coding block is either an intra coding block or an inter coding block.
  • the intra refresh can be performed inside the 64x64 maximum unit coding object, that is, inside a 64x64 coding object, a part of the coding block can be selected for intra coding.
  • the maximum division of the encoding object is 64x64
  • All coding blocks in the first 64x64 encoded object are encoded in intra coding.
  • the encoding method is encoded. Thus, only in the 64x64 encoding object, for example, a one-bit symbol is used to identify whether the current 64x64 encoding object is encoded using the intra refresh method.
  • the reference image data of the adjacent coded block When the reference image data of the adjacent coded block is processed, it can still be performed in a manner similar to that in the foregoing embodiment. The only difference is that if the adjacent coded block of the current intra-coded block belongs to the same coding object as the current intra-coded block, the adjacent coded block must also be an intra-coded block, and no update of the reference image data is needed at this time. Processing, the pixel data of the adjacent coded block can be referred to.
  • the adjacent coded block is not in the same coding object as the current intra-coded block, and it is determined that the adjacent coded block is coded or decoded by using an inter-frame coding mode, then the adjacent inter-coded block needs to be used.
  • the image data is updated.
  • the method for processing image data applied to the HEVC standard includes:
  • determining that all coding blocks in the current coding object adopt a constrained intra prediction mode wherein the intra prediction flag may be determined according to a constraint in the code stream, for example, the constraint intra prediction flag is 1, thereby determining the coding target. All intra-coded blocks are encoded or decoded using constrained intra prediction.
  • the image data in the adjacent inter-coded block is updated according to the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block, which may be according to FIG. 3 and FIG.
  • the method shown is to update the image data.
  • the current intra-coded block is encoded or decoded based on the updated image data in the adjacent inter-coded block.
  • the image data in the adjacent inter-coded block is updated, and the current intra-coded block is encoded or decoded by using the updated image data, so that the intra-coded block is referenced.
  • the inter-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality and efficiency of the image data.
  • FIG. 7 shows a block diagram of an apparatus for image encoding in accordance with an embodiment of the present invention.
  • the apparatus 500 for image decoding includes a first determining module 510, a second determining module 520, an updating module 530, and an encoding module 540, where:
  • the first determining module 510 is configured to determine a current intra-coded block in the current inter-coded frame that uses the constrained intra prediction mode;
  • the second determining module 520 is configured to determine that the adjacent coding block adjacent to the current intra-coded block includes an adjacent inter-coded block;
  • the updating module 530 is configured to perform update processing on the image data in the adjacent inter-coded block based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block;
  • the codec module 540 is configured to encode the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • the apparatus 600 for image decoding includes a first determining module 610, a second determining module 620, an updating module 630, and an encoding module 640, wherein the updating module 630 may further include the following units or units.
  • the combinations a first determining unit 631 and a first updating unit 632; a second determining unit 633 and a second updating unit 634, a third updating unit 635; and a fourth updating unit 636, wherein:
  • a first determining unit 631 configured to determine that the adjacent coded block further includes at least one adjacent intra-coded block
  • the first updating unit 632 is configured to perform update processing on the image data in the adjacent inter-coded block based on the image data in the adjacent intra-coded block that is the most adjacent to the adjacent inter-coded block;
  • a second determining unit 633 configured to determine that the adjacent coded block further includes at least two adjacent intra-coded blocks
  • a second updating unit 634 configured to perform weighted averaging on a distance between the at least two adjacent intra-coded blocks and the current intra-coded block based on image data in the at least two adjacent intra-coded blocks And performing update processing on the image data in the adjacent inter-coded block;
  • the third updating unit 635 is configured to: when determining that all the adjacent coding blocks are inter-coded blocks, update the image data in the adjacent inter-coded block to a fixed value;
  • the fourth updating unit 636 is configured to update image data in all the adjacent coding blocks to a fixed value.
  • the first determining module 610, the second determining module 620, and the encoding module 640 of the device 600 for processing image data are similar to the first determining module 510, the second determining module 520, and the encoding module 540 of the device 500 for processing image data. And the above-mentioned and other operations and/or functions of the devices 500 and 600 for processing image data are respectively implemented in order to implement the respective processes of the respective methods in FIGS. 2 to 5, and are not described herein again.
  • An apparatus for image decoding performs an update process on image data in an adjacent inter-coded block, and encodes or decodes the current intra-coded block by using the updated image data, so that The inter-coded block referenced by the intra-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality and efficiency of the image data.
  • Figure 9 shows a block diagram of an apparatus for decoding in accordance with an embodiment of the present invention.
  • the apparatus 700 for image decoding includes a first determining module 710, a second determining module 720, an updating module 730, and a decoding module 740, wherein:
  • the first determining module 710 is configured to determine a current intra-coded block in the current inter-coded frame that uses the constrained intra prediction mode;
  • a second determining module 720 configured to determine that a neighboring coded block adjacent to the current intra-coded block includes an adjacent inter-coded block
  • the updating module 730 is configured to perform update processing on the image data in the adjacent inter-coded block based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block;
  • the codec module 740 is configured to decode the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • the apparatus 800 for decoding includes a first determining module 810, a second determining module 820, an updating module 830, and a decoding module 840, where the updating module 830 may further include the following units or combinations of units.
  • the updating module 830 may further include the following units or combinations of units.
  • the units included are similar to the update module 630 of the device 600 for image decoding, and the above and other operations and/or functions of the devices 700 and 800 for decoding are respectively implemented to implement each of FIGS. 2 through 5.
  • An apparatus for decoding performs an update process on image data in an adjacent inter-coded block, and encodes or decodes the current intra-coded block by using the updated image data, so that the frame is framed.
  • the inter-coded block referenced by the intra-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality and efficiency of the image data.
  • Figure 11 shows a block diagram of an apparatus for processing image data in accordance with an embodiment of the present invention.
  • the apparatus 900 for processing image data includes:
  • the first determining module 910 is configured to determine that all coding blocks in the current coding object adopt a constraint intra prediction mode
  • a second determining module 920 configured to determine, in the adjacent coding block adjacent to the current intra coding block, a specific adjacent coding block that belongs to a different coding object from the current intra coding block;
  • a third determining module 930 configured to determine that the specific adjacent coding block is an adjacent inter-coded block coded by using an inter-frame coding manner
  • the updating module 940 is configured to perform update processing on the image data in the adjacent inter-coded block based on the fixed value or the image data in the adjacent intra-coded block included in the adjacent coded block;
  • the codec module 950 is configured to encode or decode the current intra-coded block based on the updated image data in the adjacent inter-coded block.
  • the update module 940 may further include one or more of the following units or combinations of units: a first determining unit 941 and a first updating unit 942; a second determining unit 943 and a second updating unit 944; An update unit 945; and a fourth update unit 946, which are similar to the units of the update module 630 or the update module 830, and the above and other operations and/or functions of the device 900 for processing image data are respectively implemented for The corresponding flow of each update method in 6 is not described here.
  • An apparatus for processing image data by performing update processing on image data in an adjacent inter-coded block, and encoding or decoding the current intra-coded block using the updated image data,
  • the inter-coded block referenced by the intra-coded block does not accumulate error accumulation to the intra-coded block, thereby improving the error recovery capability of the intra-coded block and improving the decoding quality and efficiency of the image data.
  • the methods or steps described in connection with the embodiments disclosed herein may be implemented in hardware, a software program executed by a processor, or a combination of both.
  • the software program can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known. ; township; — ' , , , , , , , , - , ⁇ , surgery The present invention is not limited to this.
  • Various equivalent modifications and alterations to the embodiments of the present invention may be made by those skilled in the art without departing from the spirit and scope of the invention.

Landscapes

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

Description

图像编码解码方法、 处理图像数据方法及其设备 技术领域
本发明涉及通信领域, 特别涉及通信领域中图像编码方法、 图像解码方法、 处理图像数据方法及其设备。 背景技术
视频数据在有线网络和无线网络中的误码或丟包是不可避免的, 特别是在 无线网络中尤为突出。 而经变长编码等工具高效压缩后的视频数据在语义上具 有很大的相关性, 由此视频数据对误码及丟包等网络差错非常敏感, 一旦视频 数据中有误码产生, 则不仅影响当前视频数据的恢复, 还会在时间和空间域上 造成误码扩散, 并且视频数据的预测编码也使得某一帧的差错对后续帧有差错 累积的效应。 因此, 有必要采用相应的措施来提高视频数据的抗误码能力, 特 别是在一些视频帧已经发生传输差错的情况下, 需要让视频内容尽快地从错误 中恢复过来, 从而能够给用户比较好的主观体验。
帧内刷新方法是一种比较筒单而有效的差错恢复方法,例如 I帧刷新法、基 于随机或错误跟踪的 I 块刷新方法, 自适应帧内宏块刷新等。 I 帧采用帧内 ( INTRA )编码方式进行编码, 由此也可称为帧内编码帧, 该 I帧无需参考其他 帧, 该帧经过适度地压缩做为随机访问的参考点, 也可以当成图象。 由于刷新 整个 I 帧将导致码流中突然出现码率较大的帧, 这会对系统造成较强的码流沖 击, 因此实际中大多采用部分刷新帧中的编码块的方式对帧进行刷新。
视频帧中的 P帧采用帧间 (INTER )编码方式进行编码, 由此该 P帧也可 以称为帧间编码帧。 由于 P帧的帧间预测需要参考之前的 P帧, 因此当某个 P 帧出现传输差错时, 该错误将传递到后续的 P帧中, 从而造成后续 P帧的解码 质量严重下降。 因而, 为了避免解码质量下降, 可以在 P帧中定义帧内刷新帧 ( Intra Refresh Frame, 筒称为 "IR" 帧), 其中该 IR帧中的部分或全部编码块 采用帧内编码方式进行编码, 采用帧内编码的编码块也可称为帧内刷新块。 由 此, IR帧中的帧内编码块(帧内刷新块 )将不会直接参考 IR帧之前的 P帧进行 编码, 而是参考该帧的相邻编码块, 使用帧内编码方式进行编码。
但是, 如果某个帧内编码块的相邻编码块是帧间编码块时, 由于该帧间编 码块仍然参考之前的 P帧, 因此该帧间编码块也可能从前面的参考帧中累积一 些传输差错, 并将该差错传递给用于刷新的帧内编码块, 使得帧内编码块也受 传输差错的不良影响, 从而极大地降低了帧内刷新方法应具有的差错恢复能力, 影响诸如视频等图像数据的解码质量。 发明内容
为此, 本发明实施例提供一种图像编码方法、 图像解码方法、 处理图像数 据方法及其设备, 通过对相邻的帧间编码块中的图像数据进行更新处理, 并采 用更新后的图像数据对当前帧内编码块进行编码或解码, 从而能够提高帧内编 码块的差错恢复能力, 提高图像数据解码质量。
一方面, 本发明实施例提供了一种图像编码的方法, 该方法包括: 确定当 前帧间编码帧中采用约束帧内预测方式的当前帧内编码块; 确定与该当前帧内 编码块相邻的相邻编码块包括相邻帧间编码块; 基于固定值或该相邻编码块包 括的相邻帧内编码块中的图像数据, 对该相邻帧间编码块中的图像数据进行更 新处理; 基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编码块进 行编码。
另一方面, 本发明实施例还提供了一种图像解码的方法, 该方法包括: 确 定当前帧间编码帧中采用约束帧内预测方式的当前帧内编码块; 确定与该当前 帧内编码块相邻的相邻编码块包括相邻帧间编码块; 基于固定值或该相邻编码 块包括的相邻帧内编码块中的图像数据, 对该相邻帧间编码块中的图像数据进 行更新处理; 基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编码 块进行解码。
再一方面, 本发明实施例还提供了一种处理图像数据的方法, 该方法包括: 确定当前编码对象中的所有编码块采用约束帧内预测方式; 在与当前帧内编码 块相邻的相邻编码块中, 确定与该当前帧内编码块属于不同编码对象的特定相 码块; 基于固定值或该相邻编码块包括的相邻帧内编码块中的图像数据, 对该 相邻帧间编码块中的图像数据进行更新处理; 基于该相邻帧间编码块中已更新 的图像数据, 对该当前帧内编码块进行编码或解码。
再一方面, 本发明实施例还提供了一种用于图像编码的设备, 该设备包括: 第一确定模块, 用于确定当前帧间编码帧中采用约束帧内预测方式的当前帧内 编码块; 第二确定模块, 用于确定与该当前帧内编码块相邻的相邻编码块包括 相邻帧间编码块; 更新模块, 用于基于固定值或该相邻编码块包括的相邻帧内 编码块中的图像数据, 对该相邻帧间编码块中的图像数据进行更新处理; 编码 模块, 用于基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编码块 进行编码。
再一方面, 本发明实施例还提供了一种用于图像解码的设备, 该设备包括: 第一确定模块, 用于确定当前帧间编码帧中采用约束帧内预测方式的当前帧内 编码块; 第二确定模块, 用于确定与该当前帧内编码块相邻的相邻编码块包括 相邻帧间编码块; 更新模块, 用于基于固定值或该相邻编码块包括的相邻帧内 编码块中的图像数据, 对该相邻帧间编码块中的图像数据进行更新处理; 解码 模块, 用于基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编码块 进行解码。
再一方面, 本发明实施例还提供了一种处理图像数据的设备, 该设备包括: 第一确定模块, 用于确定当前编码对象中的所有编码块采用约束帧内预测方式; 第二确定模块, 用于在与当前帧内编码块相邻的相邻编码块中, 确定与该当前 帧内编码块属于不同编码对象的特定相邻编码块; 第三确定模块, 用于确定该 用于基于固定值或该相邻编码块包括的相邻帧内编码块中的图像数据, 对该相 邻帧间编码块中的图像数据进行更新处理; 编码解码模块, 用于基于该相邻帧 间编码块中已更新的图像数据, 对该当前帧内编码块进行编码或解码。
基于上述技术方案, 本发明实施例的方法和设备通过对相邻的帧间编码块 中的图像数据进行更新处理, 并采用更新后的图像数据对当前帧内编码块进行 编码或解码, 使得被帧内编码块参考的帧间编码块不会将差错累积传递给该帧 内编码块, 从而能够提高帧内编码块的差错恢复能力, 提高图像数据解码质量。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例中所 需要使用的附图作筒单地介绍, 显而易见地, 下面所描述的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例应用场景的示意图;
图 2是根据本发明实施例的图像编码方法的示意图;
图 3是根据本发明另一实施例的更新处理的示意图;
图 4中的图 (a ) 至图 (c )是根据本发明再一实施例的更新处理的示意图; 图 5是根据本发明实施例的图像解码方法的示意图;
图 6是根据本发明实施例的处理图像数据方法的示意图;
图 7是根据本发明实施例的用于图像编码的设备的方框图;
图 8是根据本发明另一实施例的用于图像编码的设备的方框图;
图 9是根据本发明实施例的用于图像解码的设备的方框图;
图 10是根据本发明另一实施例的用于图像解码的设备的方框图;
图 11是根据本发明实施例的用于处理图像数据设备的方框图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全 部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳 动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。
图 1示出了本发明实施例应用的场景。 如图 1所示, 视频帧可以包括帧内 编码帧 (如图 1中的 I帧所示 )和帧间编码帧 (如图 1中的 P帧所示 ), 该帧内 编码帧和帧间编码帧又可以划分成多个编码块, 其中帧内编码帧中的所有编码 块都是帧内编码块, 而帧间编码帧中的编码块既可以包括帧内编码块, 又可以 包括帧间编码块, 其中帧内编码帧和帧内编码块采用帧内编码方式进行编码或 解码, 而帧间编码帧和帧间编码块采用帧间编码方式进行编码或解码。
为了避免传输差错的累积, 从而保证图像数据解码质量, 可以在帧间编码 帧中定义一些帧内刷新帧 (如图 1 中的 IR帧所示), 强制该帧内刷新帧中的一 些编码块采用帧内编码方式进行编码或解码, 这些编码块属于帧内编码块, 同 时也可以称为帧内刷新块。 当帧内编码块的相邻编码块是帧间编码块时, 该帧 间编码块可能已经累积一些传输差错, 如果直接参考这些帧间编码块, 可能使 得帧内编码块也受到传输差错的影响, 从而难以保证帧内刷新方法应具有的差 错恢复能力。 如图 1所示, 帧内编码块 E的相邻块 A和 B是具有传输差错的错 误块, 为了避免传输差错的累积, 需要根据本发明实施例对该帧内编码块的参 考特征进行限制。
图 2示出了根据本发明实施例的图像编码方法的示意图。 如图 2所示, 该 方法包括:
在 S110中, 确定当前帧间编码帧中采用约束帧内预测方式的当前帧内编码 块, 其中该约束帧内预测方式是指: 在进行帧内编码块的编码、 解码或预测时, 该帧内编码块的参考数据只能来自于与该帧内编码块相邻的帧内编码块的图像 数据, 或者默认的缺省值(或固定值), 而不能来自于相邻的帧间编码块的图像 数据。
在 S120中, 确定与该当前帧内编码块相邻的相邻编码块包括相邻帧间编码 块, 其中相邻编码块是与当前帧内编码块相邻或相连接的编码块, 对于当前帧 内编码块而言, 其相邻编码块通常可以包括左相邻编码块、 上相邻编码块、 左 下相邻编码块和右上相邻编码块。 当然, 本领域技术人员还可以想到该相邻编 码块还可以包括右相邻编码块、 下相邻编码块、 左上相邻编码块和右下相邻编 码块。
在 S130中, 基于固定值或该相邻编码块包括的相邻帧内编码块中的图像数 据, 对该相邻帧间编码块中的图像数据进行更新处理。
在 S140中, 基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编 码块进行编码。
对于当前帧间编码帧的当前编码块, 判断该当前编码块是否是采用帧内编 码方式进行编码的帧内编码块, 并且判断该当前编码块是否使用约束帧内预测 方式进行预测、 编码或解码, 如果确定当前编码块是采用约束帧内预测方式的 当前帧内编码块, 那么进一步对该当前帧内编码块的相邻编码块的编码方式进 行判断。 如果该相邻编码块中包括帧间编码块, 则此时该帧间编码块不能作为 当前帧内编码块的参考编码块, 即在帧内预测时, 不能使用该帧间编码块中的 图像数据对当前帧内编码块进行预测。 为此, 在进行帧内预测前, 可以基于固 定值或相邻编码块包括的相邻帧内编码块中的图像数据, 对该相邻帧间编码块 中的图像数据进行更新处理。 之后, 基于该相邻帧间编码块中已更新的图像数 据, 可以对当前帧内编码块进行编码。 更新处理之后, 该帧间编码块中的待参考图像数据可以按通常方法被参考, 其中该待参考图像数据是指在对当前帧内编码块进行预测时, 可能使用到的相 邻块中的像素。 由于该帧间编码块的图像数据经过更新处理, 其中的待参考图 像数据已不是帧间编码块中的可能带有传输差错的像素, 由此可以作为当前帧 内编码块参考的像素, 从而保证当前帧内编码块不会参考相邻帧间编码块中的 图像数据, 由此能够阻止传输差错传递到当前帧内编码块中。
根据本发明实施例的方法, 通过对相邻的帧间编码块中的图像数据进行更 新处理, 并采用更新后的图像数据对当前帧内编码块进行编码或解码, 使得被 帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编码块, 从而能够 提高帧内编码块的差错恢复能力, 提高图像数据解码质量。
在本发明实施例中, 可以首先判断该当前编码块是否是帧内编码块, 如果 当前编码块是帧间编码块, 则结束当前图像数据处理流程, 对当前帧间编码帧 中的下一编码块进行后续处理。 当确定当前编码块是帧内编码块时, 进一步判 断当前帧内编码块是否使用约束帧内预测方式进行预测, 如果不是则不必进行 后续的更新处理, 当前流程结束。 可选地, 也可以首先判断当前编码块是否使 用约束帧内预测方式进行预测, 并且在确定当前编码块采用约束帧内预测方式 时, 对当前编码块的编码方式进行判断。 本领域技术人员还可以想到的是同时 判断当前编码块的编码方式以及是否采用约束帧内预测方式进行预测、 编码或 解码。
在本发明实施例中, 解码时可以通过码流中的标识符对当前编码帧的编码 方式进行判断, 以确定当前编码帧是否是帧间编码帧; 编码时则可以通过编码 参数和编码过程, 对当前编码帧是否是帧间编码帧进行判断。 类似地, 对于判 断编码块的编码方式而言, 每个编码块可具有表示该编码块的编码方式的标识 符, 解码时可以根据码流中与当前编码块相应的编码方式标识符, 确定当前编 码块是否是采用帧内编码方式进行编码; 解码时也可以通过编码参数和编码过 程来确定当前编码块是否是帧内编码块。 本领域技术人员可以理解的是, 还可 以采用本领域公知的其他方法对编码帧和编码块的编码方式进行判断。
在本发明实施例中,可以根据码流中的约束帧内预测标志( Constrained Intra Prediction Flag ), 确定当前编码块是否是采用约束帧内预测方式进行编码或解 码。 例如, 当约束帧内预测标志为 1 时, 则表明当前编码块采用约束帧内预测 方式进行预测、 编码或解码; 当约束帧内预测标志为 0 时, 则表明当前编码块 没有采用约束帧内预测方式进行预测、 编码或解码。 本领域技术人员可以理解 的是, 还可以采用本领域公知的其他方法对约束帧内预测方式进行判断。
图 3以高效率视频编码(High Efficiency Video Coding, 筒称为 "HEVC" ) 的分层块为例, 示出了根据本发明实施例的更新处理的示意图。 在对相邻帧间 编码块中的图像数据进行更新处理时, 可以对该相邻帧间编码块中的所有图像 数据进行更新, 可选地, 可以仅对相邻帧间编码块中与当前帧内编码块相邻的 一行或一列像素数据进行更新处理。 本领域技术人员可以理解的是, 也可以对 相邻帧间编码块中的多行或多列像素数据进行更新处理。
在本发明实施例中, 在对相邻帧间编码块中的图像数据进行更新处理时, 可以首先确定该相邻编码块还包括至少一个相邻帧内编码块, 即当前帧内编码 块的相邻编码块同时包括帧间编码块和帧内编码块。 此时可以在该至少一个相 邻帧内编码块中, 确定与该当前相邻帧间编码块最邻近的相邻帧内编码块, 并 基于该最相邻的帧内编码块中的图像数据, 对该相邻帧间编码块中的图像数据 进行更新处理。 可选地, 可以将该最相邻的帧内编码块中离该相邻帧间编码块 最近的像素值填充到该相邻帧间编码块中。
如图 4中的图 (a )所示, 当前帧内编码块 E包括四个相邻编码块, 即左上 相邻编码块 A、 上相邻编码块 B、 右上相邻编码块 C和左相邻编码块 D, 其中 仅右上相邻编码块 C确定为相邻的帧内编码块。 以对相邻帧间编码块 B中的图 像数据进行更新处理为例进行说明, 该四个相邻编码块中仅右上相邻编码块 C 是帧内编码块, 此时可以将右上相邻编码块 C中离该相邻帧间编码块 B最近的 像素值填充到该相邻帧间编码块 B 中。 可选地, 可以将该像素值填充到相邻帧 间编码块 B中与当前帧内编码块 E相邻的一行像素中,如图 4中的图(a )所示。
当相邻编码块中包括多个帧内编码块时, 如图 4中的图 (b )所示, 右上相 邻编码块 C以及左相邻编码块 D都为相邻的帧内编码块, 此时对相邻帧间编码 块 B中的图像数据进行更新处理时, 可以确定左相邻编码块 D距离相邻帧间编 码块 B最近, 由此可以将相邻帧间编码块 B中的图像数据更新为左相邻编码块 D中的图像数据。
在本发明另一实施例中, 在确定相邻编码块包括至少两个相邻帧内编码块 时, 可以基于该至少两个相邻帧内编码块中的图像数据, 通过对该至少两个相 邻帧内编码块与该当前帧内编码块的距离进行加权平均的方式, 对该相邻帧间 编码块中的图像数据进行更新处理。
以图 4中的图 ( c )为例进行说明, 相邻帧间编码块 B的两侧都有相邻帧内 编码块, 即左上相邻编码块 A以及右上相邻编码块 C。 4 设左上相邻编码块 A 和右上相邻编码块 C中, 离该相邻帧间编码块 B最近处的像素值分别为 Pr和 P1, 并且与该相邻帧间编码块 B的当前像素的最近距离分别为 a和 b, 则可以将 像素值 R填充到相邻帧间编码块 B内相应的当前像素中, 其中该像素值 R可以 用公式(1 )表示:
R= ( Prxa+Plxb ) / ( a+b ) ( 1 )
在本发明再一实施例中, 在对相邻帧间编码块中的图像数据进行更新处理 时, 在确定所有相邻编码块都是帧间编码块时, 可以将该相邻帧间编码块中的 图像数据更新为一固定值, 例如 128或其他固定值。 可选地, 也可以在确定相 邻编码块包括相邻帧间编码块之后, 直接将所有相邻编码块中的图像数据都更 新为一固定值, 而不论该相邻编码块是否包括相邻帧内编码块。
对于经过处理后的相邻帧间编码块, 由于其待参考的图像数据来自于一固 定值或相邻帧内编码块, 因此, 经过更新处理的相邻帧间编码块可以作为当前 帧内编码块的参考编码块。 并且, 该相邻帧间编码块可以看做是帧内编码块。 另一方面, 在对其它的相邻帧间编码块的图像数据进行更新处理时, 该相邻帧 间编码块中更新过的图像数据, 可以按照上述方法填充到其他相邻帧间编码块 中。
根据本发明实施例的方法, 通过对相邻的帧间编码块中的图像数据进行更 新处理, 并采用更新后的图像数据对当前帧内编码块进行编码或解码, 使得被 帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编码块, 从而能够 提高帧内编码块的差错恢复能力, 提高图像数据解码质量; 并且由于帧内编码 块可以参考相邻编码块的图像数据, 由此根据本发明实施例的方法还能够提高 该帧内编码块的编码或解码效率。
图 5示出了根据本发明实施例的图像解码方法的示意图。 如图 5所示, 该 方法包括:
在 S210中, 确定当前帧间编码帧中采用约束帧内预测方式的当前帧内编码 块, 其中该约束帧内预测方式是指: 在进行帧内编码块的编码、 解码或预测时, 该帧内编码块的参考数据只能来自于与该帧内编码块相邻的帧内编码块的图像 数据, 或者默认的缺省值(或固定值), 而不能来自于相邻的帧间编码块的图像 数据。
在 S220中, 确定与该当前帧内编码块相邻的相邻编码块包括相邻帧间编码 块, 其中相邻编码块是与当前帧内编码块相邻或相连接的编码块, 对于当前帧 内编码块而言, 其相邻编码块通常可以包括左相邻编码块、 上相邻编码块、 左 下相邻编码块和右上相邻编码块。 当然, 本领域技术人员还可以想到该相邻编 码块还可以包括右相邻编码块、 下相邻编码块、 左上相邻编码块和右下相邻编 码块。
在 S230中, 基于固定值或该相邻编码块包括的相邻帧内编码块中的图像数 据, 对该相邻帧间编码块中的图像数据进行更新处理。
在 S240中, 基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编 码块进行解码。
在本发明实施例中, 可以根据码流中与当前帧间编码帧的当前编码块相应 的编码方式标识符, 确定当前编码块采用帧内编码方式进行编码。 可选地, 可 以根据码流中的约束帧内预测标志, 确定当前编码块采用约束帧内预测方式进 行解码。 可选地, 可以仅对相邻帧间编码块中与当前帧内编码块相邻的一行或 一列像素数据进行更新处理。 本领域技术人员可以理解的是, 也可以对相邻帧 间编码块中的多行或多列像素数据进行更新处理。
在本发明实施例中, 也可以采用如图 3至图 4的各种更新处理方法, 对相 邻帧间编码块中的图像数据进行更新, 为了筒洁不再赘述。
根据本发明实施例的方法, 通过对相邻的帧间编码块中的图像数据进行更 新处理, 并采用更新后的图像数据对当前帧内编码块进行编码或解码, 使得被 帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编码块, 从而能够 提高帧内编码块的差错恢复能力, 提高图像数据解码质量和效率。
下面分别描述应用本发明实施例的方法的编码流程和解码流程。
在编码流程中, 可以首先根据编码参数和编码过程, 判断当前编码块的编 码方式, 如果当前编码块是帧间编码帧中采用帧内编码方式进行编码的帧内编 码块, 则例如可以根据码流中的约束帧内预测标志, 判断该当前编码块是否采 用约束帧内预测方式进行预测。 对于使用约束帧内预测方式的当前帧内编码块, 再判断其相邻编码块的编码方式。 在确定相邻编码块包括相邻帧间编码块时, 可以基于固定值或相邻编码块包括的相邻帧内编码块中的图像数据, 对该帧间 编码块中的待参考像素数据进行更新处理。 接着可以对当前帧内编码块进行帧 内预测并得到残差数据, 然后对残差数据进行变换、 量化得到量化系数, 最后 可以对该量化系数进行熵编码。
在解码流程中, 可以首先解析码流, 得到当前帧间编码帧中的解码块的预 测编码方式以及量化系数, 例如可以根据码流中与当前编码块相应的编码方式 标识符, 确定当前编码块是否采用帧内编码方式进行编码。 如果当前块是帧内 编码块, 则判断当前帧内编码块是否使用约束帧内预测方式进行预测、 编码或 解码。 对于使用约束帧内预测的当前帧内编码块, 再判断其相邻编码块的编码 类型。 在确定相邻编码块包括相邻帧间编码块时, 可以基于固定值或相邻编码 块包括的相邻帧内编码块中的图像数据, 对该帧间编码块中的待参考像素数据 进行更新处理。 接着对当前帧内编码块进行帧内预测, 得到预测数据; 并对量 化系数进行反量化, 以及对反量化后的系数进行反变换, 得到残差数据。 最后 可以根据得到的残差数据以及预测数据, 重构得到解码图像。
H.264、 先进视频编码(Advanced Video Coding, 筒称为 "AVC" )标准、 音视频 标准(Audio Video Standard, 筒称为 "AVS" ), 还可以应用于正在制定的 HEVC 标准中。
下面将以根据本发明实施例的图像编码方法在 HEVC标准中的应用为例进 行详细描述。该 HEVC标准中的分层块结构可以如图 3所示,在 HEVC标准中, 编码对象的最大单位可以达到 64x64, 甚至可以达到更大的单位。 因此, 帧内刷 新块(INTRA刷新块) 的左或者上相邻编码块可能包括多个相邻编码块, 而在 这多个相邻编码块中, 可能既有帧内编码块, 又有帧间编码块, 与 H.264/AVC 标准不同。 在 H.264/AVC标准中, 由于 H.264/AVC中的编码块类型是以 16x 16 的编码块为单位, 因此帧内刷新块在某个边上的相邻编码块只有一个, 该相邻 编码块要么是帧内编码块, 要么就是帧间编码块。
在 HEVC标准中,帧内刷新可以在 64x64的最大单位的编码对象内部进行, 即在一个 64x64的编码对象内部, 可以选择一部分编码块进行帧内编码。 例如, 当编码对象的最大划分是 64x64 时, 如果在当前的编码对象上进行刷新, 则当 前 64x64编码对象中的所有编码块, 都按照帧内编码方式进行编码。 此时, 对 于 64x64编码对象中的所有编码块, 不需要标识当前编码块使用帧间编码方式 还是帧内编码方式进行编码, 而是默认为该 64x64的编码对象中的所有编码块 都使用帧内编码方式进行编码。 由此, 仅需要在 64x64 的编码对象中, 例如用 一个比特的符号来标识当前 64x64的编码对象是否使用帧内刷新方式进行编码。
在对相邻编码块的参考图像数据进行处理时, 仍然可以采用类似于前述实 施例中的方法进行。 区别仅在于, 如果当前帧内编码块的相邻编码块与当前帧 内编码块属于同一个编码对象, 那么该相邻编码块一定也是帧内编码块, 此时 不需要进行参考图像数据的更新处理, 该相邻编码块的像素数据可以被参考。
另一方面, 如果相邻编码块与当前帧内编码块不在同一个编码对象内, 并 且确定该相邻编码块采用帧间编码方式进行编码或解码, 那么需要对该相邻帧 间编码块中的图像数据进行更新处理。
如图 6所示, 应用于 HEVC标准的处理图像数据的方法包括:
在 S310中, 确定当前编码对象中的所有编码块采用约束帧内预测方式, 其 中可以根据码流中的约束帧内预测标志, 例如该约束帧内预测标志为 1 , 由此确 定该编码对象中的所有帧内编码块采用约束帧内预测方式进行编码或解码。
在 S320中, 在与当前帧内编码块相邻的相邻编码块中, 确定与当前帧内编 码块属于不同编码对象的特定相邻编码块。 间编码块。
在 S340中, 基于固定值或该相邻编码块包括的相邻帧内编码块中的图像数 据, 对该相邻帧间编码块中的图像数据进行更新处理, 其中可以根据图 3 和 4 所示的方法进行图像数据的更新处理。
在 S350中, 基于该相邻帧间编码块中已更新的图像数据, 对该当前帧内编 码块进行编码或解码。
根据本发明实施例的方法, 通过对相邻的帧间编码块中的图像数据进行更 新处理, 并采用更新后的图像数据对当前帧内编码块进行编码或解码, 使得被 帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编码块, 从而能够 提高帧内编码块的差错恢复能力, 提高图像数据解码质量和效率。
本领域技术人员可理解, 根据图 2至图 5的各种替换或变型也可以应用于 根据图 6所示的方法, 为了筒洁不再赘述。
下面将结合附图描述根据本发明实施例的用于编码、 解码和处理图像数据 的设备。
图 7示出了根据本发明实施例的用于图像编码的设备的方框图。 如图 7所 示, 用于图像解码的设备 500包括第一确定模块 510、 第二确定模块 520、 更新 模块 530和编码模块 540, 其中:
第一确定模块 510,用于确定当前帧间编码帧中采用约束帧内预测方式的当 前帧内编码块;
第二确定模块 520 ,用于确定与该当前帧内编码块相邻的相邻编码块包括相 邻帧间编码块;
更新模块 530,用于基于固定值或该相邻编码块包括的相邻帧内编码块中的 图像数据, 对该相邻帧间编码块中的图像数据进行更新处理;
编码解码模块 540, 用于基于该相邻帧间编码块中已更新的图像数据, 对该 当前帧内编码块进行编码。
可选地, 如图 8所示, 用于图像解码的设备 600包括第一确定模块 610、 第 二确定模块 620、 更新模块 630和编码模块 640, 其中该更新模块 630还可以包 括下列单元或单元组合中的一种或多种:第一确定单元 631和第一更新单元 632; 第二确定单元 633和第二更新单元 634; 第三更新单元 635; 以及第四更新单元 636, 其中:
第一确定单元 631 , 用于确定该相邻编码块还包括至少一个相邻帧内编码 块;
第一更新单元 632,用于基于与该相邻帧间编码块最相邻的该相邻帧内编码 块中的图像数据, 对该相邻帧间编码块中的图像数据进行更新处理;
第二确定单元 633 , 用于确定该相邻编码块还包括至少两个相邻帧内编码 块;
第二更新单元 634, 用于基于该至少两个相邻帧内编码块中的图像数据, 通 过对该至少两个相邻帧内编码块与该当前帧内编码块的距离进行加权平均的方 式, 对该相邻帧间编码块中的图像数据进行更新处理;
第三更新单元 635 , 用于在确定所有该相邻编码块都是帧间编码块时, 将该 相邻帧间编码块中的图像数据更新为一固定值; 第四更新单元 636, 用于将所有该相邻编码块中的图像数据更新为一固定 值。
用于处理图像数据的设备 600的第一确定模块 610、第二确定模块 620和编 码模块 640,与处理图像数据的设备 500的第一确定模块 510、第二确定模块 520 和编码模块 540相类似, 并且处理图像数据的设备 500和 600的上述和其他操 作和 /或功能都分别为了实现图 2至图 5中的各个方法的相应流程, 为了筒洁, 在此不再赘述。
根据本发明实施例的用于图像解码的设备, 通过对相邻的帧间编码块中的 图像数据进行更新处理, 并采用更新后的图像数据对当前帧内编码块进行编码 或解码, 使得被帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编 码块, 从而能够提高帧内编码块的差错恢复能力, 提高图像数据解码质量和效 率。
图 9示出了根据本发明实施例的用于解码的设备的方框图。 如图 9所示, 用于图像解码的设备 700包括第一确定模块 710、 第二确定模块 720、 更新模块 730和解码模块 740, 其中:
第一确定模块 710,用于确定当前帧间编码帧中采用约束帧内预测方式的当 前帧内编码块;
第二确定模块 720,用于确定与该当前帧内编码块相邻的相邻编码块包括相 邻帧间编码块;
更新模块 730,用于基于固定值或该相邻编码块包括的相邻帧内编码块中的 图像数据, 对该相邻帧间编码块中的图像数据进行更新处理;
编码解码模块 740, 用于基于该相邻帧间编码块中已更新的图像数据, 对该 当前帧内编码块进行解码。
可选地, 如图 10所示, 用于解码的设备 800包括第一确定模块 810、 第二 确定模块 820、 更新模块 830和解码模块 840, 其中该更新模块 830还可以包括 下列单元或单元组合中的一种或多种: 第一确定单元 831和第一更新单元 832; 第二确定单元 833和第二更新单元 834; 第三更新单元 835; 以及第四更新单元 836, 其中该更新模块 830所包括的各单元与用于图像解码的设备 600的更新模 块 630相类似, 并且用于解码的设备 700和 800的上述和其他操作和 /或功能都 分别为了实现图 2至图 5中的各个方法的相应流程, 为了筒洁, 在此不再赘述。 根据本发明实施例的用于解码的设备, 通过对相邻的帧间编码块中的图像 数据进行更新处理, 并采用更新后的图像数据对当前帧内编码块进行编码或解 码, 使得被帧内编码块参考的帧间编码块不会将差错累积传递给该帧内编码块, 从而能够提高帧内编码块的差错恢复能力, 提高图像数据解码质量和效率。
图 11示出了根据本发明实施例的用于处理图像数据设备的方框图。如图 11 所示, 用于处理图像数据的设备 900包括:
第一确定模块 910,用于确定当前编码对象中的所有编码块采用约束帧内预 测方式;
第二确定模块 920, 用于在与当前帧内编码块相邻的相邻编码块中, 确定与 当前帧内编码块属于不同编码对象的特定相邻编码块;
第三确定模块 930,用于确定该特定相邻编码块是采用帧间编码方式进行编 码的相邻帧间编码块;
更新模块 940,用于基于固定值或该相邻编码块包括的相邻帧内编码块中的 图像数据, 对该相邻帧间编码块中的图像数据进行更新处理;
编码解码模块 950, 用于基于该相邻帧间编码块中已更新的图像数据, 对该 当前帧内编码块进行编码或解码。
可选地, 该更新模块 940还可以包括下列单元或单元组合中的一种或多种: 第一确定单元 941和第一更新单元 942;第二确定单元 943和第二更新单元 944; 第三更新单元 945; 以及第四更新单元 946, 这些单元与更新模块 630或更新模 块 830的各单元相类似, 并且用于处理图像数据的设备 900的上述和其他操作 和 /或功能都分别为了实现图 6中的各个更新方法的相应流程, 为了筒洁, 在此 不再赘述。
根据本发明实施例的用于处理图像数据的设备, 通过对相邻的帧间编码块 中的图像数据进行更新处理, 并采用更新后的图像数据对当前帧内编码块进行 编码或解码, 使得被帧内编码块参考的帧间编码块不会将差错累积传递给该帧 内编码块, 从而能够提高帧内编码块的差错恢复能力, 提高图像数据解码质量 和效率。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例中描述的各 方法步骤和单元, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了 清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描述 了各实施例的步骤及组成。 这些功能究竟以硬件还是软件方式来执行, 取决于 技术方案的特定应用和设计约束条件。 本领域普通技术人员可以对每个特定的 应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明 的范围。
结合本文中所公开的实施例描述的方法或步骤可以用硬件、 处理器执行的 软件程序, 或者二者的结合来实施。 软件程序可以置于随机存储器(RAM )、 内 存、 只读存储器(ROM )、 电可编程 ROM、 电可擦除可编程 ROM、 寄存器、 硬 盘、 可移动磁盘、 CD-ROM、 或技术领域内所公知的任意其它形式的存储介质 中。 ; 乡 ; 、 。 — ' 、 、、 、 , 、 、 、 - 、 , ^ 、术 本发明并不限于此。 在不脱离本发明的精神和实质的前提下, 本领域普通技术 人员可以对本发明的实施例进行各种等效的修改或替换, 而这些修改或替换都 应在本发明的涵盖范围内。

Claims

权 利 要 求 书
1、 一种图像编码的方法, 其特征在于, 所述方法包括:
确定当前帧间编码帧中采用约束帧内预测方式的当前帧内编码块; 确定与所述当前帧内编码块相邻的相邻编码块包括相邻帧间编码块; 述相邻帧间编码块中的图像数据进行更新处理;
基于所述相邻帧间编码块中已更新的图像数据, 对所述当前帧内编码块进 行编码。
2、 根据权利要求 1所述的方法, 其特征在于, 根据码流中的约束帧内预测 标志, 确定所述当前编码块采用约束帧内预测方式进行编码。
3、 根据权利要求 1所述的方法, 其特征在于, 所述对所述相邻帧间编码块 中的图像数据进行更新处理, 包括:
对所述相邻帧间编码块中与所述当前帧内编码块相邻的一行或一列像素数 据进行更新处理。
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述对所述相 邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少一个相邻帧内编码块;
基于与所述相邻帧间编码块最相邻的所述相邻帧内编码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
5、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述对所述相 邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少两个相邻帧内编码块;
基于所述至少两个相邻帧内编码块中的图像数据, 通过对所述至少两个相 邻帧内编码块与所述当前帧内编码块的距离进行加权平均的方式, 对所述相邻 帧间编码块中的图像数据进行更新处理。
6、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述对所述相 邻帧间编码块中的图像数据进行更新处理, 包括:
在确定所有所述相邻编码块都是帧间编码块时, 将所述相邻帧间编码块中 的图像数据更新为一固定值。
7、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述对所述相 邻帧间编码块中的图像数据进行更新处理, 包括:
将所有所述相邻编码块中的图像数据更新为一固定值。
8、 一种图像解码的方法, 其特征在于, 所述方法包括:
确定当前帧间编码帧中采用约束帧内预测方式的当前帧内编码块; 确定与所述当前帧内编码块相邻的相邻编码块包括相邻帧间编码块; 述相邻帧间编码块中的图像数据进行更新处理;
基于所述相邻帧间编码块中已更新的图像数据, 对所述当前帧内编码块进 行解码。
9、 根据权利要求 8所述的方法, 其特征在于, 根据码流中与所述当前帧间 编码帧的当前编码块相应的编码方式标识符, 确定所述当前编码块采用帧内编 码方式进行编码。
10、 根据权利要求 8所述的方法, 其特征在于, 根据码流中的约束帧内预 测标志, 确定所述当前编码块采用约束帧内预测方式进行解码。
11、 根据权利要求 8 所述的方法, 其特征在于, 所述对所述相邻帧间编码 块中的图像数据进行更新处理, 包括:
对所述相邻帧间编码块中与所述当前帧内编码块相邻的一行或一列像素数 据进行更新处理。
12、 根据权利要求 8至 11中任一项所述的方法, 其特征在于, 所述对所述 相邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少一个相邻帧内编码块;
基于与所述相邻帧间编码块最相邻的所述相邻帧内编码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
13、 根据权利要求 8至 11中任一项所述的方法, 其特征在于, 所述对所述 相邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少两个相邻帧内编码块;
基于所述至少两个相邻帧内编码块中的图像数据, 通过对所述至少两个相 邻帧内编码块与所述当前帧内编码块的距离进行加权平均的方式, 对所述相邻 帧间编码块中的图像数据进行更新处理。
14、 根据权利要求 8至 11中任一项所述的方法, 其特征在于, 所述对所述 相邻帧间编码块中的图像数据进行更新处理, 包括:
在确定所有所述相邻编码块都是帧间编码块时, 将所述相邻帧间编码块中 的图像数据更新为一固定值。
15、 根据权利要求 8至 11中任一项所述的方法, 其特征在于, 所述对所述 相邻帧间编码块中的图像数据进行更新处理, 包括:
将所有所述相邻编码块中的图像数据更新为一固定值。
16、 一种处理图像数据的方法, 其特征在于, 所述方法包括:
确定当前编码对象中的所有编码块采用约束帧内预测方式;
在与当前帧内编码块相邻的相邻编码块中, 确定与所述当前帧内编码块属 于不同编码对象的特定相邻编码块; 块; 、' 一 3 ' - - - s
述相邻帧间编码块中的图像数据进行更新处理;
基于所述相邻帧间编码块中已更新的图像数据, 对所述当前帧内编码块进 行编码或解码。
17、 根据权利要求 16所述的方法, 其特征在于, 根据码流中的约束帧内预 测标志, 确定所述编码对象中的所有帧内编码块采用约束帧内预测方式进行编 码或解码。
18、 根据权利要求 16所述的方法, 其特征在于, 所述对所述相邻帧间编码 块中的图像数据进行更新处理, 包括:
对所述相邻帧间编码块中与所述当前帧内编码块相邻的一行或一列像素数 据进行更新处理。
19、 根据权利要求 16至 18中任一项所述的方法, 其特征在于, 所述对所 述相邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少一个相邻帧内编码块;
基于与所述相邻帧间编码块最相邻的所述相邻帧内编码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
20、 根据权利要求 16至 18中任一项所述的方法, 其特征在于, 所述对所 述相邻帧间编码块中的图像数据进行更新处理, 包括:
确定所述相邻编码块还包括至少两个相邻帧内编码块;
基于所述至少两个相邻帧内编码块中的图像数据, 通过对所述至少两个相 邻帧内编码块与所述当前帧内编码块的距离进行加权平均的方式, 对所述相邻 帧间编码块中的图像数据进行更新处理。
21、 根据权利要求 16至 18中任一项所述的方法, 其特征在于, 所述对所 述相邻帧间编码块中的图像数据进行更新处理, 包括:
在确定所有所述相邻编码块都是帧间编码块时, 将所述相邻帧间编码块中 的图像数据更新为一固定值。
22、 根据权利要求 16至 18中任一项所述的方法, 其特征在于, 所述对所 述相邻帧间编码块中的图像数据进行更新处理, 包括:
将所有所述相邻编码块中的图像数据更新为一固定值。
23、 一种用于图像编码的设备, 其特征在于, 所述设备包括:
第一确定模块, 用于确定当前帧间编码帧中采用约束帧内预测方式的当前 帧内编码块;
第二确定模块, 用于确定与所述当前帧内编码块相邻的相邻编码块包括相 邻帧间编码块; 图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理;
编码模块, 用于基于所述相邻帧间编码块中已更新的图像数据, 对所述当 前帧内编码块进行编码。
24、 根据权利要求 23所述的设备, 其特征在于, 所述更新模块包括: 第一确定单元, 用于确定所述相邻编码块还包括至少一个相邻帧内编码块; 第一更新单元, 用于基于与所述相邻帧间编码块最相邻的所述相邻帧内编 码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
25、 根据权利要求 23所述的设备, 其特征在于, 所述更新模块包括: 第二更新单元, 用于基于所述至少两个相邻帧内编码块中的图像数据, 通 过对所述至少两个相邻帧内编码块与所述当前帧内编码块的距离进行加权平均 的方式, 对所述相邻帧间编码块中的图像数据进行更新处理。
26、 根据权利要求 23所述的设备, 其特征在于, 所述更新模块包括: 第三更新单元, 用于在确定所有所述相邻编码块都是帧间编码块时, 将所 述相邻帧间编码块中的图像数据更新为一固定值。
27、 根据权利要求 23所述的设备, 其特征在于, 所述更新模块包括: 第四更新单元, 用于将所有所述相邻编码块中的图像数据更新为一固定值。
28、 一种用于图像解码的设备, 其特征在于, 所述设备包括:
第一确定模块, 用于确定当前帧间编码帧中采用约束帧内预测方式的当前 帧内编码块;
第二确定模块, 用于确定与所述当前帧内编码块相邻的相邻编码块包括相 邻帧间编码块; 图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理;
解码模块, 用于基于所述相邻帧间编码块中已更新的图像数据, 对所述当 前帧内编码块进行解码。
29、 根据权利要求 28所述的设备, 其特征在于, 所述更新模块包括: 第一确定单元, 用于确定所述相邻编码块还包括至少一个相邻帧内编码块; 第一更新单元, 用于基于与所述相邻帧间编码块最相邻的所述相邻帧内编 码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
30、 根据权利要求 28所述的设备, 其特征在于, 所述更新模块包括: 第二更新单元, 用于基于所述至少两个相邻帧内编码块中的图像数据, 通 过对所述至少两个相邻帧内编码块与所述当前帧内编码块的距离进行加权平均 的方式, 对所述相邻帧间编码块中的图像数据进行更新处理。
31、 根据权利要求 28所述的设备, 其特征在于, 所述更新模块包括: 第三更新单元, 用于在确定所有所述相邻编码块都是帧间编码块时, 将所 述相邻帧间编码块中的图像数据更新为一固定值。
32、 根据权利要求 28所述的设备, 其特征在于, 所述更新模块包括: 第四更新单元, 用于将所有所述相邻编码块中的图像数据更新为一固定值。
33、 一种用于处理图像数据的设备, 其特征在于, 所述设备包括: 第一确定模块, 用于确定当前编码对象中的所有编码块采用约束帧内预测 方式;
第二确定模块, 用于在与当前帧内编码块相邻的相邻编码块中, 确定与所 述当前帧内编码块属于不同编码对象的特定相邻编码块; 码的相邻帧间编码块; 图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理;
编码解码模块, 用于基于所述相邻帧间编码块中已更新的图像数据, 对所 述当前帧内编码块进行编码或解码。
34、 根据权利要求 33所述的设备, 其特征在于, 所述更新模块包括: 第一确定单元, 用于确定所述相邻编码块还包括至少一个相邻帧内编码块; 第一更新单元, 用于基于与所述相邻帧间编码块最相邻的所述相邻帧内编 码块中的图像数据, 对所述相邻帧间编码块中的图像数据进行更新处理。
35、 根据权利要求 33所述的设备, 其特征在于, 所述更新模块包括: 第二更新单元, 用于基于所述至少两个相邻帧内编码块中的图像数据, 通 过对所述至少两个相邻帧内编码块与所述当前帧内编码块的距离进行加权平均 的方式, 对所述相邻帧间编码块中的图像数据进行更新处理。
36、 根据权利要求 33所述的设备, 其特征在于, 所述更新模块包括: 第三更新单元, 用于在确定所有所述相邻编码块都是帧间编码块时, 将所 述相邻帧间编码块中的图像数据更新为一固定值。
37、 根据权利要求 33所述的设备, 其特征在于, 所述更新模块包括: 第四更新单元, 用于将所有所述相邻编码块中的图像数据更新为一固定值。
PCT/CN2012/070404 2011-01-14 2012-01-16 图像编码解码方法、处理图像数据方法及其设备 Ceased WO2012095036A1 (zh)

Priority Applications (11)

Application Number Priority Date Filing Date Title
KR1020137019521A KR101503763B1 (ko) 2011-01-14 2012-01-16 이미지 인코딩 및 디코딩 방법, 이미지 데이터 프로세싱 방법 및 그 장치
BR112013018073-0A BR112013018073B1 (pt) 2011-01-14 2012-01-16 métodos para codificação e decodificação de uma imagem e dispositivos dos mesmos
EP12733974.5A EP2651131A4 (en) 2011-01-14 2012-01-16 IMAGE ENCODING AND DECODING METHODS, IMAGE DATA PROCESSING METHOD, AND CORRESPONDING APPARATUS
RU2013137851/08A RU2571514C2 (ru) 2011-01-14 2012-01-16 Способ кодирования и декодирования изображения, способ обработки данных изображения и соответствующие устройства
CA2824473A CA2824473C (en) 2011-01-14 2012-01-16 Intra block video coding in video with neighbouring inter and intra blocks
JP2013548735A JP5819985B2 (ja) 2011-01-14 2012-01-16 画像の符号化および復号の方法、画像データの処理方法、およびその装置
AU2012206839A AU2012206839B2 (en) 2011-01-14 2012-01-16 Image coding and decoding method, image data processing method and devices thereof
SG2013052733A SG191905A1 (en) 2011-01-14 2012-01-16 Image coding and decoding method, image data processing method, and devices thereof
US13/938,853 US9485504B2 (en) 2011-01-14 2013-07-10 Image coding and decoding method, image data processing method, and devices thereof
US15/278,469 US9979965B2 (en) 2011-01-14 2016-09-28 Image coding and decoding method, image data processing method, and devices thereof
US15/958,171 US10264254B2 (en) 2011-01-14 2018-04-20 Image coding and decoding method, image data processing method, and devices thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110008186.1A CN102595124B (zh) 2011-01-14 2011-01-14 图像编码解码方法、处理图像数据方法及其设备
CN201110008186.1 2011-01-14

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/938,853 Continuation US9485504B2 (en) 2011-01-14 2013-07-10 Image coding and decoding method, image data processing method, and devices thereof

Publications (1)

Publication Number Publication Date
WO2012095036A1 true WO2012095036A1 (zh) 2012-07-19

Family

ID=46483281

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070404 Ceased WO2012095036A1 (zh) 2011-01-14 2012-01-16 图像编码解码方法、处理图像数据方法及其设备

Country Status (12)

Country Link
US (3) US9485504B2 (zh)
EP (1) EP2651131A4 (zh)
JP (3) JP5819985B2 (zh)
KR (1) KR101503763B1 (zh)
CN (1) CN102595124B (zh)
AU (1) AU2012206839B2 (zh)
BR (1) BR112013018073B1 (zh)
CA (1) CA2824473C (zh)
MY (1) MY164248A (zh)
RU (1) RU2571514C2 (zh)
SG (2) SG10201600286WA (zh)
WO (1) WO2012095036A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796706A (zh) * 2014-01-17 2015-07-22 深圳市中瀛鑫科技股份有限公司 一种视频编码方法及装置
US10264254B2 (en) 2011-01-14 2019-04-16 Huawei Technologies Co., Ltd. Image coding and decoding method, image data processing method, and devices thereof

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946535B (zh) * 2012-10-09 2015-05-13 华为技术有限公司 预测块的视差矢量预测值获取的方法和装置
CN103024389B (zh) * 2012-12-24 2015-08-12 芯原微电子(北京)有限公司 一种用于hevc的解码装置和方法
US11032568B2 (en) 2013-11-27 2021-06-08 Hfi Innovation Inc. Method of video coding using prediction based on intra picture block copy
GB2518919B (en) * 2014-03-14 2015-11-18 Imagination Tech Ltd Error tracking and mitigation for motion compensation-based video compression
EP3459244A4 (en) * 2016-01-12 2020-03-04 Telefonaktiebolaget LM Ericsson (publ) Video coding using hybrid intra prediction
CN107124608A (zh) * 2016-02-24 2017-09-01 北京数码视讯科技股份有限公司 一种编码方法及装置
WO2020056798A1 (zh) 2018-09-21 2020-03-26 华为技术有限公司 一种视频编解码的方法与装置
CN112437299B (zh) * 2018-09-21 2022-03-29 华为技术有限公司 一种帧间预测方法、装置及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0935396A2 (en) * 1998-02-09 1999-08-11 Matsushita Electric Industrial Co., Ltd. Video coding method and apparatus
CN101312536A (zh) * 2007-05-24 2008-11-26 中兴通讯股份有限公司 一种用于视频传输差错控制的视频编码方法及装置
CN101461248A (zh) * 2006-06-09 2009-06-17 汤姆森许可贸易公司 自适应地确定用于视频图像编码的比特预算的方法和设备
CN101505430A (zh) * 2008-09-18 2009-08-12 西南交通大学 一种用于头肩视频序列的帧内更新方法
CN101641957A (zh) * 2007-03-23 2010-02-03 高通股份有限公司 针对数字视频执行错误隐匿的方法

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6907071B2 (en) 2001-05-24 2005-06-14 Telefonaktiebolaget Lm Ericsson (Publ) Selective prediction for intra-coding video data block
US7646815B2 (en) * 2003-07-15 2010-01-12 Lsi Corporation Intra estimation chroma mode 0 sub-block dependent prediction
JP4617644B2 (ja) 2003-07-18 2011-01-26 ソニー株式会社 符号化装置及び方法
JP4213646B2 (ja) * 2003-12-26 2009-01-21 株式会社エヌ・ティ・ティ・ドコモ 画像符号化装置、画像符号化方法、画像符号化プログラム、画像復号装置、画像復号方法、及び画像復号プログラム。
JP2005349755A (ja) 2004-06-11 2005-12-22 Canon Inc カラープリンタ
EP1779673A1 (en) 2004-07-15 2007-05-02 Qualcomm Incorporated H.264 spatial error concealment based on the intra-prediction direction
JP2006060813A (ja) * 2004-08-20 2006-03-02 Polycom Inc ビデオデコーダにおける誤り隠蔽
WO2006039475A2 (en) 2004-09-30 2006-04-13 Aker Kvaerner, Inc. Recovery of organic compounds using a saturator
US7751478B2 (en) 2005-01-21 2010-07-06 Seiko Epson Corporation Prediction intra-mode selection in an encoder
CN101133650B (zh) 2005-04-01 2010-05-19 松下电器产业株式会社 图像解码装置以及图像解码方法
JP4542107B2 (ja) 2005-07-22 2010-09-08 三菱電機株式会社 画像復号装置及び画像復号方法
RU2395174C1 (ru) * 2006-03-30 2010-07-20 ЭлДжи ЭЛЕКТРОНИКС ИНК. Способ и устройство для декодирования/кодирования сигнала видео
JP2008005197A (ja) * 2006-06-22 2008-01-10 Toshiba Corp デコード装置およびデコード方法
CA2655970A1 (en) 2006-07-07 2008-01-10 Telefonaktiebolaget L M Ericsson (Publ) Video data management
US8254455B2 (en) 2007-06-30 2012-08-28 Microsoft Corporation Computing collocated macroblock information for direct mode macroblocks
TWI364222B (en) * 2007-09-05 2012-05-11 Via Tech Inc Method and device for generating prediction mode parameter
KR102313863B1 (ko) * 2007-10-16 2021-10-15 엘지전자 주식회사 비디오 신호 처리 방법 및 장치
EP2081386A1 (en) 2008-01-18 2009-07-22 Panasonic Corporation High precision edge prediction for intracoding
JP5238523B2 (ja) * 2009-01-13 2013-07-17 株式会社日立国際電気 動画像符号化装置、動画像復号化装置、および、動画像復号化方法
HUE040604T2 (hu) 2010-08-17 2019-03-28 M&K Holdings Inc Berendezés intra predikció mód dekódolására
US20120163457A1 (en) 2010-12-28 2012-06-28 Viktor Wahadaniah Moving picture decoding method, moving picture coding method, moving picture decoding apparatus, moving picture coding apparatus, and moving picture coding and decoding apparatus
CN102595124B (zh) 2011-01-14 2014-07-16 华为技术有限公司 图像编码解码方法、处理图像数据方法及其设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0935396A2 (en) * 1998-02-09 1999-08-11 Matsushita Electric Industrial Co., Ltd. Video coding method and apparatus
CN101461248A (zh) * 2006-06-09 2009-06-17 汤姆森许可贸易公司 自适应地确定用于视频图像编码的比特预算的方法和设备
CN101641957A (zh) * 2007-03-23 2010-02-03 高通股份有限公司 针对数字视频执行错误隐匿的方法
CN101312536A (zh) * 2007-05-24 2008-11-26 中兴通讯股份有限公司 一种用于视频传输差错控制的视频编码方法及装置
CN101505430A (zh) * 2008-09-18 2009-08-12 西南交通大学 一种用于头肩视频序列的帧内更新方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10264254B2 (en) 2011-01-14 2019-04-16 Huawei Technologies Co., Ltd. Image coding and decoding method, image data processing method, and devices thereof
CN104796706A (zh) * 2014-01-17 2015-07-22 深圳市中瀛鑫科技股份有限公司 一种视频编码方法及装置

Also Published As

Publication number Publication date
SG191905A1 (en) 2013-08-30
CA2824473A1 (en) 2012-07-19
CA2824473C (en) 2017-05-16
US9979965B2 (en) 2018-05-22
JP6629163B2 (ja) 2020-01-15
JP2016026451A (ja) 2016-02-12
AU2012206839A1 (en) 2013-08-15
KR20130105897A (ko) 2013-09-26
BR112013018073A2 (pt) 2018-05-22
US20170019667A1 (en) 2017-01-19
US9485504B2 (en) 2016-11-01
EP2651131A4 (en) 2014-05-14
KR101503763B1 (ko) 2015-03-18
AU2012206839B2 (en) 2015-10-01
US20130301722A1 (en) 2013-11-14
MY164248A (en) 2017-11-30
EP2651131A1 (en) 2013-10-16
CN102595124A (zh) 2012-07-18
SG10201600286WA (en) 2016-02-26
BR112013018073B1 (pt) 2020-11-10
JP2014503156A (ja) 2014-02-06
CN102595124B (zh) 2014-07-16
JP5819985B2 (ja) 2015-11-24
US10264254B2 (en) 2019-04-16
RU2571514C2 (ru) 2015-12-20
US20180241994A1 (en) 2018-08-23
JP6023298B2 (ja) 2016-11-09
RU2013137851A (ru) 2015-02-20
JP2017073774A (ja) 2017-04-13

Similar Documents

Publication Publication Date Title
JP6629163B2 (ja) 画像の符号化および復号の方法、画像データの処理方法、およびその装置
CN103813174B (zh) 一种混合分辨率编解码方法和装置
CN102006467B (zh) 视频发送装置、视频接收装置、视频发送方法及视频接收方法
CN102939761B (zh) 用于使用自适应滤波器来执行帧内预测的方法和设备
CN101677406B (zh) 一种视频编解码的方法及装置
CN103152576B (zh) 一种适用于组播抗丢包的视频编码及解码装置
WO2013104205A1 (zh) 一种图像层和分片层的编解码方法、编解码器和电子设备
CN101605255A (zh) 一种视频编解码的方法及装置
CN101312536B (zh) 一种用于视频传输差错控制的视频编码方法及装置
WO2008095345A1 (fr) Procédé pour coder une séquence vidéo et système pour remédier à une erreur au moyen dudit procédé
CN102026001A (zh) 基于运动信息的视频帧重要性评估方法
Carreira et al. Selective motion vector redundancies for improved error resilience in HEVC
CN104125457B (zh) 图像编码解码方法、处理图像数据方法及其设备
CN104113753B (zh) 图像编码解码方法、处理图像数据方法及其设备
CN101674480B (zh) 一种编码模式的选择方法和装置
AU2015268694B2 (en) Image coding and decoding method, image data processing method, and devices thereof
HK1185740A (zh) 图像编码解码方法、处理图像数据方法及其设备
KR20050093435A (ko) 에러 대응 인트라 예측 모드 복호화 방법

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: 12733974

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2824473

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2012733974

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2013548735

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20137019521

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2013137851

Country of ref document: RU

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2012206839

Country of ref document: AU

Date of ref document: 20120116

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112013018073

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112013018073

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20130715