CN102611885B - Encoding and decoding method and device - Google Patents

Encoding and decoding method and device Download PDF

Info

Publication number
CN102611885B
CN102611885B CN201110022734.6A CN201110022734A CN102611885B CN 102611885 B CN102611885 B CN 102611885B CN 201110022734 A CN201110022734 A CN 201110022734A CN 102611885 B CN102611885 B CN 102611885B
Authority
CN
China
Prior art keywords
block
reference image
vegetarian refreshments
image vegetarian
adjacent block
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.)
Active
Application number
CN201110022734.6A
Other languages
Chinese (zh)
Other versions
CN102611885A (en
Inventor
赖昌材
曹潇然
何芸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Huawei Technologies Co Ltd
Original Assignee
Tsinghua University
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
Application filed by Tsinghua University, Huawei Technologies Co Ltd filed Critical Tsinghua University
Priority to CN201110022734.6A priority Critical patent/CN102611885B/en
Priority to PCT/CN2012/070606 priority patent/WO2012097746A1/en
Publication of CN102611885A publication Critical patent/CN102611885A/en
Application granted granted Critical
Publication of CN102611885B publication Critical patent/CN102611885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides an encoding method, which comprises the steps of: dividing a currently encoded object to obtain sub-image blocks arranged in order in the horizontal or vertical direction; obtaining index values of the sub-image blocks; obtaining a reference pixel point required when the sub-image blocks are predicted according to the index values, dimensions of the sub-image blocks and a preset prediction mode, and obtaining a reference pixel value of the reference pixel point; predicting the sub-image blocks according to the reference pixel value and the preset prediction mode to obtain residual error data; performing conversion, quantization and entropy encoding on the residual error data so as to obtain encoded residual error data, and writing division way information of the currently encoded object, the encoded residual error data and the prediction mode of the sub-image blocks into a code stream. By adopting the encoding and decoding method provided by the invention, the reference pixel value is obtained just according to determined reference pixel point during prediction, so that the occurrence of disorder or an error is avoided.

Description

A kind of decoding method and device
Technical field
The present invention relates to video coding and decoding technology.
Background technology
The basic principle of Video coding compression is, utilizes the correlation between spatial domain, time domain and code word, removes as far as possible redundancy.Popular way is to adopt block-based mixed video coding framework at present, by steps such as prediction, conversion, quantification, entropy codings, realizes Video coding compression.This coding framework, shown very strong vitality, from MPEG-1 the earliest, up-to-date video encoding standard is H.264/AVC till now, the Video coding compression standard HEVC of future generation that even JCTVC working group (joint working group that MPEG and VECG set up) is formulating, still continues to use this block-based mixed video coding framework.
In coding and decoding video, generally all adopt block-based spatial domain prediction coding techniques, basic principle is that image block to be encoded is divided into multiple sub-blocks, then utilizes the correlation between image block to be encoded and adjacent block to remove spatial domain redundancy.Utilize adjacent block as with reference to piece, subimage block is predicted.
In image block is divided, industry has a kind of division methods, by parallel dividing line, current encoded image piece is divided into the subimage block that along continuous straight runs and vertical direction are arranged in order, and then take these subimage blocks as unit, predicts.Can be with reference to the new UDI Predicting Technique of releasing of industry in the process of prediction, from 45 these intervals of degree to 225 degree, on average select 34 directions and be used as the prediction direction of 34 kinds of predictive modes, and will travel through these 34 predictive modes in each subimage block, predict, finally select the prediction direction of code rate distortion Least-cost for subimage block, as the prediction direction of all pixels in current subimage block, and obtain the residual error data of the subimage block of corresponding generation.In the process of prediction, need to obtain according to predictive mode the reference pixel value of reference image vegetarian refreshments, according to this reference pixel value, obtain the predicted pixel values of subimage block, and and then judge the code rate distortion cost under current prediction mould.But, inventor has found a problem when implementing, that is exactly adopting while predicting in this way, because subimage block is sequentially arranged, due to locational difference, the reference image vegetarian refreshments that each subimage block is corresponding is not identical, and according to the way of prior art, the pixel value of the reference picture element that can use while being all subimage blocks prediction by current encoded image piece all reads in reference pixel buffer memory, but the prediction of some subimage block only needs again the partial reference pixel in reference pixel buffer memory, in the process of extracting these reference pixels, just easily produce out of order or mistake.
Summary of the invention
The invention provides a kind of coding method, comprising: present encoding object is divided to the subimage block that obtains being arranged in order along the horizontal or vertical direction; Obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block; According to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments; According to described reference pixel value and default predictive mode, described subimage block is predicted, obtained residual error data; To described residual error data convert, quantification and entropy coding, with the residual error data after being encoded; Residual error data after the dividing mode information of present encoding object, described coding and the prediction mode information of described subimage block are write to code stream.
The present invention also provides corresponding coding/decoding method, comprising: from code stream, resolve and obtain residual error data, the dividing mode of current decoder object and the prediction mode information of current decoder object; According to described dividing mode information, described current decoder object is divided into the subimage block that along continuous straight runs or vertical direction are arranged in order; Obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block; According to the dimensions of described index value, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments; According to described reference pixel value and described residual error data, obtain the reconstructed pixel value of described subimage block.
The present invention also provides the coding and decoding device of applying described decoding method.
Adopt decoding method provided by the invention, in prediction, only need to obtain reference pixel value according to definite reference image vegetarian refreshments, avoided out of order or wrong generation.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic diagram of the coding method that Fig. 1 provides for the embodiment of the present invention.
The schematic diagram of the coding/decoding method that Fig. 2 provides for the embodiment of the present invention.
The schematic diagram of the code device that Fig. 3 provides for the embodiment of the present invention.
The schematic diagram of the decoding device that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Please refer to Fig. 1, the embodiment of the present invention provides a kind of coding method, and it comprises:
Step 101: present encoding object is divided to the subimage block that obtains being arranged in order along the horizontal or vertical direction;
In embodiments of the present invention, present encoding object is divided into by many vertical division lines the subimage block that multiple along continuous straight runs are arranged in order, or present encoding object is divided into multiple subimage blocks that are vertically arranged in order by many horizontal bar separated times.The dimensions of the subimage block being arranged in order in embodiments of the present invention, is identical.
Step 102: obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Such as, present encoding object is divided into the four number of sub images pieces 0 that are arranged in order, 1, 2, 3, this wherein " 0, 1, 2, 3 " be the index value of subimage block, according to these index values, can obtain the collating sequence of subimage block, certainly, also can obtain according to collating sequence the positional information of subimage block, such as being divided into when present encoding object the four number of sub images pieces 0 that along continuous straight runs is arranged in order, 1, 2, 3 o'clock, index value is that 0 subimage block is just in the left border in present encoding object, and the subimage block that the subimage block that index value is 1 and index value are 0 is adjacent, index value is in 3 the subimage block right side boundary in present encoding object, index value is that 2 subimage block is between 1 and 3 subimage block in index value.From another angle, index value also can be for representing the positional information of subimage block.
Step 103: according to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Described according to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting comprises: according to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference image vegetarian refreshments needing; According to the dimensions of described index value and described subimage block, determine the start position information of reference image vegetarian refreshments; According to the start position information of described reference image vegetarian refreshments and number information, from described coded object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments.Because the angle of the prediction direction of the predictive mode of the leftmost side in UDI prediction is 225 degree, and the angle of the prediction direction of the predictive mode of the rightmost side is 45 degree, then according to the reference picture element in the length of subimage block and the wide adjacent block that just can obtain the present encoding object in the scope containing in the prediction direction of 34 predictive modes of described UDI prediction.
Due to present encoding object can use for reference adjacent block half be adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block on it.In embodiments of the present invention, so the reference picture element of subimage block comprises upper with reference to picture element (set) from upper adjacent block and upper right adjacent block, and left with reference to picture element (set) from left adjacent block and lower-left adjacent block.
Wherein, when described present encoding object is divided into the subimage block that along continuous straight runs is arranged in order, according to the regulation of UDI Predicting Technique, pixel in the left adjacent block of present encoding object and the right side boundary of lower-left adjacent block all needs as with reference to pixel, and the pixel in the prediction angular coverage of predictive mode in the upper adjacent block of present encoding object and upper right adjacent block could be served as the reference image vegetarian refreshments of subimage block.Therefore, described according to the dimensions of described index value, described subimage block and default predictive mode, confirm when described subimage block is predicted that the reference image vegetarian refreshments needing comprises: according to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference point in upper adjacent block and the upper right adjacent block of described present encoding object; According to the dimensions of described index value and described subimage block, determine the start position information of the upper adjacent block of described present encoding object and the reference image vegetarian refreshments of upper right adjacent block; According to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described present encoding object and upper right adjacent block, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments; According to default predictive mode, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, describedly according to described reference pixel value and default predictive mode, described subimage block is predicted, obtaining residual error data comprises: according to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, described subimage block is predicted, obtained residual error data.
Relative, when described present encoding object is divided into the subimage block being vertically arranged in order, according to the regulation of UDI prediction, the borderline pixel of downside of the upper adjacent block of present encoding object and upper right adjacent block all needs as with reference to pixel, and the pixel in the prediction angular coverage of predictive mode in the left adjacent block of present encoding object and lower-left adjacent block could be served as the reference image vegetarian refreshments of subimage block.Therefore, described according to the dimensions of described index value, described subimage block and default predictive mode, confirm when described subimage block is predicted that the reference image vegetarian refreshments needing comprises: according to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference point in left adjacent block and the lower-left adjacent block of described present encoding object; According to the dimensions of described index value and described subimage block, determine the start position information of the left adjacent block of described present encoding object and the reference image vegetarian refreshments of lower-left adjacent block; According to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described present encoding object and lower-left adjacent block, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block; According to default predictive mode, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, describedly according to described reference pixel value and default predictive mode, described subimage block is predicted, obtaining residual error data comprises: according to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, described subimage block is predicted, obtained residual error data.
In embodiments of the present invention, obtaining after the reference pixel value of the reference image vegetarian refreshments needing when described subimage block is predicted, the pixel value of described reference image vegetarian refreshments can be deposited in reference pixel buffer memory, in the process of prediction, sequentially extract.In other selectable embodiment, also all adjacent with the present encoding object pixel in the upper adjacent block of present encoding object, upper right adjacent block, left adjacent block or lower-left adjacent block all can be write in buffer memory, then the ordering relation in all pixels according to definite reference image vegetarian refreshments, reads successively.
Step 104: according to described reference pixel value and default predictive mode, described subimage block is predicted, obtained residual error data;
Step 105: to described residual error data convert, quantification and entropy coding, with the residual error data after being encoded;
Step 106: the residual error data after the dividing mode information of present encoding object, described coding and the prediction mode information of described subimage block are write to code stream.
Described dividing mode information is used to indicate described present encoding object division direction, concrete, present encoding to as if be divided into the subimage block that along continuous straight runs is arranged in order, be still divided into the subimage block being vertically arranged in order.As for the quantity of subimage block, can set default value at encoding and decoding end, such as four, or by described dividing mode information, be indicated the quantity of division direction and the described subimage block of described present encoding object simultaneously.
The prediction mode information that writes code stream in step 106 mainly refers in the process that subimage block is predicted, finally need to select the reference pixel value and the predicted pixel values that in a kind of predictive mode of code rate distortion Least-cost, obtain, obtain the residual error data of subimage block, in the process of writing code stream, need the information of this predictive mode also to write code stream, to make decoding end can adopt the predictive mode identical with coding side to decode.
Can see, the coding method that adopts the embodiment of the present invention to provide just according to the position of default predictive mode, subimage block and dimensions, is clearly predicted needed with reference to picture element in prediction.And in prediction, only need to obtain reference pixel value according to definite reference image vegetarian refreshments, avoided out of order or wrong generation.
Please refer to Fig. 2, the embodiment of the present invention also provides a kind of and the corresponding coding/decoding method of above-mentioned coding method, and it comprises:
Step 201: resolve from code stream and obtain residual error data, the dividing mode of current decoder object and the prediction mode information of current decoder object;
Step 202: described current decoder object is divided into the subimage block that along continuous straight runs or vertical direction are arranged in order according to described dividing mode information;
Step 203: obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Step 204: according to the dimensions of described index value, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Step 205: according to described reference pixel value and described residual error data, obtain the reconstructed pixel value of described subimage block.
Wherein, in embodiments of the present invention, described according to the dimensions of described index value, described subimage block and described prediction mode information, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting comprises: according to the dimensions of described predictive mode and described subimage block, obtain the number information of the reference image vegetarian refreshments needing; According to the positional information of described subimage block, determine the start position information of reference image vegetarian refreshments; According to the start position information of described reference image vegetarian refreshments and number information, from described decoder object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments.
More specifically, when described current decoder object is divided into the subimage block that along continuous straight runs is arranged in order, described according to the dimensions of described index value, described subimage block and predictive mode, confirm when described subimage block is predicted that the reference image vegetarian refreshments needing comprises: according to the dimensions of described predictive mode and described subimage block, obtain the number information of the reference point in upper adjacent block and the upper right adjacent block of described current decoder object; According to the dimensions of described index value and described subimage block, determine the start position information of the upper adjacent block of described current decoder object and the reference image vegetarian refreshments of upper right adjacent block; According to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described current decoder object and upper right adjacent block, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments; According to default predictive mode, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block.According to described reference pixel value and described residual error data, the reconstructed pixel value that obtains described subimage block comprises: according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
When described current decoder object is divided into the subimage block being vertically arranged in order, described according to the dimensions of described index value, described subimage block and described predictive mode, confirm when described subimage block is predicted that the reference image vegetarian refreshments needing comprises: according to the dimensions of predictive mode and described subimage block, obtain the number information of the reference point in left adjacent block and the lower-left adjacent block of described current decoder object; According to the dimensions of described index value and described subimage block, determine the start position information of the left adjacent block of described current decoder object and the reference image vegetarian refreshments of lower-left adjacent block; According to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described current decoder object and lower-left adjacent block, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block; According to described predictive mode, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments.According to described reference pixel value and described residual error data, the reconstructed pixel value that obtains described subimage block comprises: according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
Please refer to Fig. 3, the embodiment of the present invention also provides the code device of applying above-mentioned coding method, and it comprises:
Divide module 301, for present encoding object is divided, the subimage block that obtains being arranged in order along the horizontal or vertical direction;
Index value obtains module 302, and for obtaining the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Reference pixel value obtains module 303, be used for according to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Residual error data obtains module 304, for according to described reference pixel value and default predictive mode, described subimage block being predicted, obtains residual error data, and to described residual error data convert, quantification and entropy coding, with the residual error data after being encoded;
Write code stream module 305, for the residual error data after the dividing mode information of present encoding object, described coding and the prediction mode information of described subimage block are write to code stream.
Further, described reference pixel value acquisition module 303 also comprises:
Number obtains submodule, for according to the dimensions of default predictive mode and described subimage block, obtains the number information of the reference image vegetarian refreshments needing;
Position obtains submodule, for according to the dimensions of described index value and described subimage block, determines the start position information of reference image vegetarian refreshments; And
With reference to picture element, obtain submodule, for according to the start position information of described reference image vegetarian refreshments and number information, from described coded object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments.
Concrete, when described present encoding object is divided into the subimage block that along continuous straight runs is arranged in order, described number obtains submodule according to the dimensions of default predictive mode and described subimage block, obtains the number information of the reference point in upper adjacent block and the upper right adjacent block of described present encoding object; Described position obtains submodule according to the dimensions of described index value and described subimage block, determines the start position information of the upper adjacent block of described present encoding object and the reference image vegetarian refreshments of upper right adjacent block; Described with reference to picture element obtain submodule according to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described present encoding object and upper right adjacent block, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, and according to default predictive mode, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block.And corresponding, at this moment to wait, residual error data obtains 304 of modules according to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described subimage block is predicted, obtains residual error data.
When described present encoding object is divided into the image subsection piece being vertically arranged in order, number obtains submodule according to the dimensions of default predictive mode and described subimage block, obtains the number information of the reference point in left adjacent block and the lower-left adjacent block of described present encoding object; Position obtains submodule according to the dimensions of described index value and described subimage block, determines the start position information of the left adjacent block of described present encoding object and the reference image vegetarian refreshments of lower-left adjacent block; With reference to picture element, obtain submodule according to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described present encoding object and lower-left adjacent block, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, and according to default predictive mode, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments.At this moment wait, corresponding residual error data obtains 304 of modules according to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described subimage block is predicted, obtains residual error data.
Please refer to Fig. 4, the embodiment of the present invention also provides a kind of decoding device of applying above-mentioned coding/decoding method, and it comprises:
Gain of parameter module 401, for resolving and obtain residual error data, the dividing mode of current decoder object and the prediction mode information of current decoder object from code stream;
Divide module 402, for described current decoder object being divided into the subimage block that along continuous straight runs or vertical direction are arranged in order according to described dividing mode information;
Index value obtains module 403, and for obtaining the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Reference image vegetarian refreshments obtains module 404, be used for according to the dimensions of described index value, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Reconstructed module 405, for according to described reference pixel value and described residual error data, obtains the reconstructed pixel value of described subimage block.
Further, described reference pixel value acquisition module 404 also comprises:
Number obtains submodule, for according to the dimensions of described predictive mode and described subimage block, obtains the number information of the reference image vegetarian refreshments needing;
Position obtains submodule, for according to the dimensions of described index value and described subimage block, determines the start position information of reference image vegetarian refreshments; And
With reference to picture element, obtain submodule, for according to the start position information of described reference image vegetarian refreshments and number information, from described current decoder object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments.
Concrete, when described current decoder object is divided into the subimage block that along continuous straight runs is arranged in order, described number obtains submodule according to the dimensions of predictive mode and described subimage block, obtains the number information of the reference point in upper adjacent block and the upper right adjacent block of described current decoder object; Described position obtains submodule according to the dimensions of described index value and described subimage block, determines the start position information of the upper adjacent block of described current decoder object and the reference image vegetarian refreshments of upper right adjacent block; Described with reference to picture element obtain submodule according to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described current decoder object and upper right adjacent block, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, and according to predictive mode, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block.And corresponding, at this moment to wait, 405 of reconstructed module are according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
When described current decoder object is divided into the image subsection piece being vertically arranged in order, number obtains submodule according to the dimensions of predictive mode and described subimage block, obtains the number information of the reference point in left adjacent block and the lower-left adjacent block of described current decoder object; Position obtains submodule according to the dimensions of described index value and described subimage block, determines the start position information of the left adjacent block of described current decoder object and the reference image vegetarian refreshments of lower-left adjacent block; With reference to picture element, obtain submodule according to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described current decoder object and lower-left adjacent block, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, and according to predictive mode, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments.And corresponding, at this moment to wait, 405 of reconstructed module are according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. a coding method, is characterized in that, comprising:
Present encoding object is divided to the subimage block that obtains being arranged in order along the horizontal or vertical direction;
Obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
According to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Described according to the dimensions of described index value, described subimage block and default predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference image vegetarian refreshments needing;
According to the dimensions of described index value and described subimage block, determine the start position information of reference image vegetarian refreshments;
According to the start position information of described reference image vegetarian refreshments and number information, from described coded object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments;
According to described reference pixel value and default predictive mode, described subimage block is predicted, obtained residual error data;
To described residual error data convert, quantification and entropy coding, with the residual error data after being encoded;
Residual error data after the dividing mode information of present encoding object, described coding and the prediction mode information of described subimage block are write to code stream.
2. coding method as described in claim 1, is characterized in that, when described present encoding object is divided into the subimage block that along continuous straight runs is arranged in order,
Described according to the dimensions of described index value, described subimage block and default predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference point in upper adjacent block and the upper right adjacent block of described present encoding object;
According to the dimensions of described index value and described subimage block, determine the start position information of the upper adjacent block of described present encoding object and the reference image vegetarian refreshments of upper right adjacent block;
According to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described present encoding object and upper right adjacent block, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, wherein, the reference image vegetarian refreshments in described upper adjacent block and upper right adjacent block that described top is described subimage block with reference to picture element;
According to default predictive mode, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, wherein, the reference image vegetarian refreshments in described left adjacent block and lower-left adjacent block that described left reference image vegetarian refreshments is described subimage block
Describedly according to described reference pixel value and default predictive mode, described subimage block is predicted, is obtained residual error data and comprise:
According to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, described subimage block is predicted, obtain residual error data.
3. coding method as described in claim 2, is characterized in that, when described present encoding object is divided into the subimage block being vertically arranged in order,
Described according to the dimensions of described index value, described subimage block and default predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of default predictive mode and described subimage block, obtain the number information of the reference point in left adjacent block and the lower-left adjacent block of described present encoding object;
According to the dimensions of described index value and described subimage block, determine the start position information of the left adjacent block of described present encoding object and the reference image vegetarian refreshments of lower-left adjacent block;
According to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described present encoding object and lower-left adjacent block, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block;
According to default predictive mode, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments;
Describedly according to described reference pixel value and default predictive mode, described subimage block is predicted, is obtained residual error data and comprise:
According to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, described subimage block is predicted, obtain residual error data.
4. coding method as described in claim 2, it is characterized in that, the reference image vegetarian refreshments needing when the described subimage block of confirming according to described predictive mode is predicted comprise described subimage block upper adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block in one or more adjacent blocks in pixel.
5. coding method as described in claim 1, it is characterized in that, described according to the dimensions of described index value, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the sequence of described subimage block, obtain the index value of described subimage block;
According to the dimensions of described index value and described image subsection piece, obtain the positional information of described subimage block;
According to the dimensions of described positional information, described subimage block and default predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments.
6. a coding/decoding method, is characterized in that, comprising:
From code stream, resolve and obtain residual error data, the dividing mode of current decoder object and the prediction mode information of current decoder object;
According to described dividing mode information, described current decoder object is divided into the subimage block that along continuous straight runs or vertical direction are arranged in order;
Obtain the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
According to the dimensions of described index value, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Described according to the dimensions of described index value, described subimage block and described predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of described predictive mode and described subimage block, obtain the number information of the reference image vegetarian refreshments needing;
According to the dimensions of described index value and described subimage block, determine the start position information of reference image vegetarian refreshments;
According to the start position information of described reference image vegetarian refreshments and number information, from described decoder object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments; According to described reference pixel value and described residual error data, obtain the reconstructed pixel value of described subimage block.
7. coding/decoding method as described in claim 6, is characterized in that, when described current decoder object is divided into the subimage block that along continuous straight runs is arranged in order,
Described according to the dimensions of described index value, described subimage block and described predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of described predictive mode and described subimage block, obtain the number information of the reference point in upper adjacent block and the upper right adjacent block of described current decoder object;
According to the dimensions of described index value and described subimage block, determine the start position information of the upper adjacent block of described current decoder object and the reference image vegetarian refreshments of upper right adjacent block;
According to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described current decoder object and upper right adjacent block, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, wherein, the reference image vegetarian refreshments in described upper adjacent block and upper right adjacent block that described top is described subimage block with reference to picture element;
According to described predictive mode, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, wherein, the reference image vegetarian refreshments in described left adjacent block and lower-left adjacent block that described left reference image vegetarian refreshments is described subimage block
According to described reference pixel value and described residual error data, the reconstructed pixel value that obtains described subimage block comprises:
According to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
8. coding/decoding method as described in claim 7, is characterized in that, when described current decoder object is divided into the subimage block being vertically arranged in order,
Described according to the dimensions of described index value, described subimage block and described predictive mode, to need when obtaining described subimage block and predicting reference image vegetarian refreshments, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the dimensions of predictive mode and described subimage block, obtain the number information of the reference point in left adjacent block and the lower-left adjacent block of described current decoder object;
According to the dimensions of described index value and described subimage block, determine the start position information of the left adjacent block of described current decoder object and the reference image vegetarian refreshments of lower-left adjacent block;
According to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described current decoder object and lower-left adjacent block, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block;
According to described predictive mode, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments,
According to described reference pixel value and described residual error data, the reconstructed pixel value that obtains described subimage block comprises:
According to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtain the reconstructed pixel value of described subimage block.
9. coding/decoding method as described in claim 7, it is characterized in that, the reference image vegetarian refreshments needing when the described subimage block of confirming according to described predictive mode is predicted comprise described subimage block upper adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block in one or more adjacent blocks in pixel.
10. coding/decoding method as described in claim 6, it is characterized in that, described according to the dimensions of described index value, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and the reference pixel value that obtains described reference image vegetarian refreshments comprises:
According to the sequence of described subimage block, obtain the index value of described subimage block;
According to the dimensions of described index value and described subimage block, obtain the positional information of described subimage block;
According to the dimensions of described positional information, described subimage block and described predictive mode, the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments.
11. 1 kinds of code devices, is characterized in that, comprising:
Divide module, for present encoding object is divided, the subimage block that obtains being arranged in order along the horizontal or vertical direction;
Index value obtains module, and for obtaining the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Reference pixel value obtains module, for according to the dimensions of described index value, described subimage block and default predictive mode, and the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Described reference pixel value obtains module and comprises:
Number obtains submodule, for according to the dimensions of default predictive mode and described subimage block, obtains the number information of the reference image vegetarian refreshments needing;
Position obtains submodule, for according to the dimensions of described index value and described subimage block, determines the start position information of reference image vegetarian refreshments; And
With reference to picture element, obtain submodule, for according to the start position information of described reference image vegetarian refreshments and number information, from described coded object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments;
Residual error data obtains module, for according to described reference pixel value and default predictive mode, described subimage block being predicted, obtains residual error data, and to described residual error data convert, quantification and entropy coding, with the residual error data after being encoded;
Write code stream module, for the residual error data after the dividing mode information of present encoding object, described coding and the prediction mode information of described subimage block are write to code stream.
12. code devices as described in claim 11, is characterized in that, when described present encoding object is divided into the subimage block that along continuous straight runs is arranged in order,
Described number obtains submodule for according to the dimensions of default predictive mode and described subimage block, obtains the number information of the reference point in upper adjacent block and the upper right adjacent block of described present encoding object;
Described position obtains submodule for according to the dimensions of described index value and described subimage block, determines the start position information of the upper adjacent block of described present encoding object and the reference image vegetarian refreshments of upper right adjacent block;
Describedly with reference to picture element, obtain submodule for according to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described present encoding object and upper right adjacent block, in the upper adjacent block of described present encoding object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, and according to default predictive mode, in the left adjacent block of described present encoding object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, wherein, the reference image vegetarian refreshments in described left adjacent block and lower-left adjacent block that described left reference image vegetarian refreshments is described subimage block, the reference image vegetarian refreshments in described upper adjacent block and upper right adjacent block that described top is described subimage block with reference to picture element,
Described residual error data obtains module according to described default predictive mode, and the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described subimage block is predicted, obtains residual error data.
13. code devices as described in claim 11, it is characterized in that, the reference image vegetarian refreshments needing when the described subimage block of confirming according to described predictive mode is predicted comprise described subimage block upper adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block in one or more adjacent blocks in pixel.
14. 1 kinds of decoding devices, is characterized in that, comprising:
Gain of parameter module, for resolving and obtain residual error data, the dividing mode of current decoder object and the prediction mode information of current decoder object from code stream;
Divide module, for described current decoder object being divided into the subimage block that along continuous straight runs or vertical direction are arranged in order according to described dividing mode information;
Index value obtains module, and for obtaining the index value of described subimage block, wherein, described index value is for representing the sequencing information of described subimage block;
Reference image vegetarian refreshments obtains module, for according to the dimensions of described index value, described subimage block and described predictive mode, and the reference image vegetarian refreshments needing when obtaining described subimage block and predicting, and obtain the reference pixel value of described reference image vegetarian refreshments;
Described reference pixel obtains module and comprises:
Number obtains submodule, for according to the dimensions of described predictive mode and described subimage block, obtains the number information of the reference image vegetarian refreshments needing;
Position obtains submodule, for according to the dimensions of described index value and described subimage block, determines the start position information of reference image vegetarian refreshments; And
With reference to picture element, obtain submodule, for according to the start position information of described reference image vegetarian refreshments and number information, from described decoder object, in adjacent block, upper right adjacent block, left adjacent block and lower-left adjacent block, obtain reference image vegetarian refreshments;
Reconstructed module, for according to described reference pixel value and described residual error data, obtains the reconstructed pixel value of described subimage block.
15. decoding devices as described in claim 14, is characterized in that, when described current decoder object is divided into the subimage block that along continuous straight runs is arranged in order,
Described number obtains submodule for according to the dimensions of predictive mode and described subimage block, obtains the number information of the reference point in upper adjacent block and the upper right adjacent block of described current decoder object;
Described position obtains submodule for according to the dimensions of described index value and described subimage block, determines the start position information of the upper adjacent block of described current decoder object and the reference image vegetarian refreshments of upper right adjacent block;
Describedly with reference to picture element, obtain submodule for according to number information and the start position information of the reference image vegetarian refreshments of the upper adjacent block of described current decoder object and upper right adjacent block, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments, and according to predictive mode, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, wherein, the reference image vegetarian refreshments in described left adjacent block and lower-left adjacent block that described left reference image vegetarian refreshments is described subimage block, the reference image vegetarian refreshments in described upper adjacent block and upper right adjacent block that described top is described subimage block with reference to picture element,
Described reconstructed module is used for according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtains the reconstructed pixel value of described subimage block.
16. decoding devices as described in claim 15, is characterized in that, when described current decoder object is divided into the subimage block being vertically arranged in order,
Described number obtains submodule for according to the dimensions of predictive mode and described subimage block, obtains the number information of the reference point in left adjacent block and the lower-left adjacent block of described current decoder object;
Described position obtains submodule for according to the positional information of described subimage block, determines the start position information of the left adjacent block of described current decoder object and the reference image vegetarian refreshments of lower-left adjacent block;
Describedly with reference to picture element, obtain submodule for according to number information and the start position information of the reference image vegetarian refreshments of the left adjacent block of described current decoder object and lower-left adjacent block, in the left adjacent block of described current decoder object and lower-left adjacent block, obtain the left reference image vegetarian refreshments of described subimage block, and according to predictive mode, in the upper adjacent block of described current decoder object and upper right adjacent block, obtain described subimage block above reference image vegetarian refreshments;
Described reconstructed module is used for according to the reference pixel value of described top reference image vegetarian refreshments and left reference image vegetarian refreshments, and described residual error data, obtains the reconstructed pixel value of described subimage block.
CN201110022734.6A 2011-01-20 2011-01-20 Encoding and decoding method and device Active CN102611885B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110022734.6A CN102611885B (en) 2011-01-20 2011-01-20 Encoding and decoding method and device
PCT/CN2012/070606 WO2012097746A1 (en) 2011-01-20 2012-01-19 Coding-decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110022734.6A CN102611885B (en) 2011-01-20 2011-01-20 Encoding and decoding method and device

Publications (2)

Publication Number Publication Date
CN102611885A CN102611885A (en) 2012-07-25
CN102611885B true CN102611885B (en) 2014-04-30

Family

ID=46515167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110022734.6A Active CN102611885B (en) 2011-01-20 2011-01-20 Encoding and decoding method and device

Country Status (2)

Country Link
CN (1) CN102611885B (en)
WO (1) WO2012097746A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2781240C1 (en) * 2018-12-25 2022-10-10 Гуандун Оппо Мобайл Телекоммьюникейшнс Корп., Лтд. Prediction method and apparatus for decoding and computer data storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125463A (en) * 2013-04-26 2014-10-29 华为技术有限公司 Image predictive coding method and image encoder
CN105491376B (en) * 2014-10-06 2020-01-07 同济大学 Image coding and decoding method and device
CN106658019B (en) * 2015-10-31 2019-11-12 华为技术有限公司 The method and apparatus of reference frame encoding and decoding
CN107566848B (en) 2016-06-30 2020-04-14 华为技术有限公司 Method and device for coding and decoding
CN106878728B (en) * 2017-01-19 2019-06-07 西安万像电子科技有限公司 The compression method and device of image
WO2020007187A1 (en) * 2018-07-02 2020-01-09 华为技术有限公司 Image block decoding method and device
CN116456082A (en) 2018-12-25 2023-07-18 Oppo广东移动通信有限公司 Coding prediction method, device and computer storage medium
CN110234008B (en) * 2019-03-11 2020-06-16 杭州海康威视数字技术股份有限公司 Encoding method, decoding method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4490261B2 (en) * 2002-06-11 2010-06-23 ノキア コーポレイション Spatial prediction based on intra coding
KR100612849B1 (en) * 2003-07-18 2006-08-14 삼성전자주식회사 Apparatus and method for encoding and decoding image
KR101014660B1 (en) * 2003-10-24 2011-02-16 삼성전자주식회사 Intra prediction method and apparatus thereof
CN100536573C (en) * 2004-01-16 2009-09-02 北京工业大学 Inframe prediction method used for video frequency coding
KR101403338B1 (en) * 2007-03-23 2014-06-09 삼성전자주식회사 Method and apparatus for image encoding, decoding

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2781240C1 (en) * 2018-12-25 2022-10-10 Гуандун Оппо Мобайл Телекоммьюникейшнс Корп., Лтд. Prediction method and apparatus for decoding and computer data storage medium

Also Published As

Publication number Publication date
WO2012097746A1 (en) 2012-07-26
CN102611885A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN102611885B (en) Encoding and decoding method and device
CN102595116B (en) Encoding and decoding methods and devices for multiple image block division ways
CN103220508B (en) Coding and decoding method and device
CN104581161B (en) With the use of method and the equipment of large-scale conversion cell encoding and decoded picture
CN104967852B (en) The method and apparatus that image is coded and decoded by intra prediction
TWI524780B (en) Multiple sign bit hiding within a transform unit
FI3783889T3 (en) Video decoding apparatus and video encoding apparatus
CN103096053B (en) A kind of decoding method of pattern conversion and device
CN104581177B (en) Image compression method and device combining block matching and string matching
JP2013513330A5 (en)
CN103238333A (en) Method and apparatus for encoding/decoding images to minimize redundancy of intra-rediction mode
CN102595118A (en) Prediction method and predictor in encoding and decoding
CN104272735A (en) Transform coefficient coding for context-adaptive binary entropy coding of video
CN102075756B (en) Video multiframe prediction encoding and decoding method and device
KR20090103674A (en) Method for predictive intra coding/decoding for video and apparatus for same
CN103283238A (en) Method and device for encoding and decoding by using parallel intra-rediction by a coding unit
CN102474611A (en) Method and apparatus for encoding/decoding image by controlling accuracy of motion vector
KR20110100912A (en) Video encoding apparatus and method therefor, and video decoding apparatus and method therefor
CN101554058A (en) Method and apparatus for encoding and decoding based on intra prediction
EP2938074A1 (en) Methods for encoding and decoding a picture and corresponding devices
CN102595117A (en) Method and device for coding and decoding
CN102611882B (en) Encoding and decoding method and device
JP2012147291A (en) Image coding apparatus, image coding method, program, image decoding apparatus, image decoding method, and program
CN104093018A (en) Coding method and device of transformation coefficients and decoding method and device of transformation coefficients
CN104093025A (en) Coding and decoding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant