CN103533331A - Encoding and decoding method and device for image - Google Patents

Encoding and decoding method and device for image Download PDF

Info

Publication number
CN103533331A
CN103533331A CN201310495231.XA CN201310495231A CN103533331A CN 103533331 A CN103533331 A CN 103533331A CN 201310495231 A CN201310495231 A CN 201310495231A CN 103533331 A CN103533331 A CN 103533331A
Authority
CN
China
Prior art keywords
image block
prediction data
current image
piece
described current
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.)
Granted
Application number
CN201310495231.XA
Other languages
Chinese (zh)
Other versions
CN103533331B (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.)
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
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310495231.XA priority Critical patent/CN103533331B/en
Publication of CN103533331A publication Critical patent/CN103533331A/en
Application granted granted Critical
Publication of CN103533331B publication Critical patent/CN103533331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention provides an encoding and decoding method and an encoding and decoding device for an image. The invention is implemented through determining the size and the maximum prediction size of a current image block, when the size of the current image block is greater than the maximum prediction size, the first prediction data of the current image block are obtained from the adjacent data of the current image block through the down sampling manner, the first prediction data block of the current image block is obtained according to the intra-frame prediction mode and the first prediction data, encoding is carried out according to the first prediction data block, as the first prediction data of the first prediction data block are obtained from the adjacent data of the current image block through the down sampling manner, namely the number of sample points obtained from the prediction data of the first prediction data block is reduced, the size of the obtained first prediction data block is reduced, accordingly, the size of the first prediction data block is enabled to be equal to the maximum prediction size, the requirement of the maximum prediction size permitted by the system is met, and the design cost is not increased.

Description

The decoding method of image and device
Technical field
The embodiment of the present invention relates to image processing techniques, relates in particular to a kind of decoding method and device of image.
Background technology
In 3 d video images system, comprise the image of two types of view picture and depth images, view looks like the information that comprises image itself, and as colour information, the depth information that depth image comprises view picture, as profile information.In 3 d video images is transmitted, in order to reduce the shared bandwidth of transmission of video, need to, to the video image processing of encoding, comprise the coding of view picture and depth image is processed, to reduce to transmit the size of 3 d video images data.
Simplify depth coding pattern (Simplified Depth Coding, hereinafter to be referred as: be SDC) to obtain after prediction data piece by intra prediction mode, according to prediction data piece, obtain a steady state value, according to the sample value of current image block initial data, obtain a steady state value, when current image block is encoded, adopt the difference of two steady state values to encode as the residual values of current image block; Decoding section obtains residual values, after obtaining prediction data piece according to the intra prediction mode identical with coding side, according to prediction data piece, obtain a steady state value, above-mentioned residual values and the steady state value obtaining according to prediction data piece are added to the reconstructed value that obtains current image block; Or, after decoding end obtains above-mentioned parameter value, after obtaining prediction data piece according to the intra prediction mode identical with coding side, prediction data piece and above-mentioned parameter value are added to the reconstructed value that obtains current image block, can find out, when adopting the code encoding/decoding mode of SDC, require the prediction data piece that obtains by intra prediction mode size must and current image block measure-alike.
Yet, in existing coding/decoding system, restricted to the full-size of prediction data piece, when the size of current image block surpasses the full-size of the prediction data piece that system allows, need to design new encoding and decoding structure, increase design overhead.
Summary of the invention
The embodiment of the present invention provides a kind of decoding method and device of image, to avoid increasing design overhead.
Embodiment of the present invention first aspect provides a kind of coding/decoding method of image, comprising:
Determine size and the maximum predicted size of current image block;
When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block;
According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block;
According to the first prediction data piece of described current image block, decode.
In conjunction with first aspect, in the possible implementation of the first, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
From the adjacent data of described current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
When intra prediction mode is plane mode, according to plane mode and R, obtain the first prediction data piece of described current image block.
In conjunction with first aspect, in the third possible implementation, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
To preset step-length, from the adjacent data of described current image block, obtain the first prediction data of described current image block, wherein, described default step-length is N, and N is more than or equal to 2 integer.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In conjunction with the third or the 4th kind of possible implementation, in the 5th kind of possible implementation, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
According to plane mode and described the first prediction data, obtain the first prediction data piece of described current image block.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, described the first prediction data piece that obtains described current image block according to plane mode and described the first prediction data, comprising:
According to the ratio of the size of described current image block and described default step-length, obtain the first prediction data piece of described current image block.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of first aspect or first aspect, in the 7th kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
Described the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece;
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with the third of first aspect, to any possible implementation in the 6th kind of possible implementation, in the 8th kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the first prediction data piece of described current image block, obtain the second prediction data piece, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length;
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with the third of first aspect, to any possible implementation in the 6th kind of possible implementation, in the 9th kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the first prediction data piece, obtain the second prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece,
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of first aspect or first aspect, in the tenth kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
Described the second Image Reconstruction piece is carried out to up-sampling and obtain the 3rd Image Reconstruction piece, wherein, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of first aspect, to any possible implementation in the 6th kind of possible implementation, in the 11 kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in described the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of first aspect, to any possible implementation in the 6th kind of possible implementation, in the 12 kind of possible implementation, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, described the second Image Reconstruction piece is comprised of M sample point, described the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in described the 3rd Image Reconstruction piece a 4th Image Reconstruction piece is according to M the series arrangement that sample point is identical with described the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in described the 4th Image Reconstruction piece is the sample value of arranging with described the 4th Image Reconstruction piece the sample point that sequence number is identical in the second Image Reconstruction piece, the size of wherein said the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of first aspect to any possible implementation in the 6th kind of possible implementation, in the 13 kind of possible implementation, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In conjunction with the third of first aspect to any possible implementation in the 6th kind of possible implementation, in the 14 kind of possible implementation, the default step-length of described default step-length for obtaining from code stream.
In conjunction with the third of first aspect, to any possible implementation in the 6th kind of possible implementation, in the 15 kind of possible implementation, described default step-length is the default step-length of decoding end.
In conjunction with any possible implementation in 15 kinds of possible implementations of the first to the of first aspect or first aspect, in the 16 kind of possible implementation, described maximum predicted is of a size of and obtains from code stream, or is the default numerical value of decoding end.
In conjunction with any possible implementation in 16 kinds of possible implementations of the first to the of first aspect or first aspect, in the 17 kind of possible implementation, before the size of described definite current image block and maximum predicted size, also comprise:
Determine and adopt simplification depth coding Mode S DC to decode.
Embodiment of the present invention second aspect provides a kind of coding method of image, comprising:
Determine size and the maximum predicted size of current image block;
When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block;
According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block;
According to the first prediction data piece of described current image block, encode.
In conjunction with second aspect, in the possible implementation of the first, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
From the adjacent data of described current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
When intra prediction mode is plane mode, according to plane mode and R, obtain the first prediction data piece of described current image block.
In conjunction with second aspect, in the third possible implementation, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
To preset step-length, from the adjacent data of described current image block, obtain the first prediction data of described current image block, wherein, described default step-length is N, and N is more than or equal to 2 integer.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In conjunction with the third or the 4th kind of possible implementation, in the 5th kind of possible implementation, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
According to plane mode and described the first prediction data, obtain the first prediction data piece of described current image block.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, described the first prediction data piece that obtains described current image block according to plane mode and described the first prediction data, comprising:
According to the ratio of the size of described current image block and described default step-length, obtain the first prediction data piece of described current image block.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of second aspect or second aspect, in the 7th kind of possible implementation, described the first prediction data piece according to described current image block is encoded, and comprising:
Described the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece, the size of described the second prediction data piece equals the size of described current image block;
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
In conjunction with the third of second aspect, to any possible implementation in the 6th kind of possible implementation, in the 8th kind of possible implementation, described the first prediction data piece according to described current image block is encoded, and comprising:
According to the first prediction data piece of described current image block, obtain the second prediction data piece, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length;
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
In conjunction with the third of second aspect, to any possible implementation in the 6th kind of possible implementation, in the 9th kind of possible implementation, described the first prediction data piece according to described current image block is encoded, and comprising:
According to the first prediction data piece, obtain the second prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece,
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
In conjunction with the third of second aspect to any possible implementation in the 6th kind of possible implementation, in the tenth kind of possible implementation, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In conjunction with the third of second aspect, to any possible implementation in the 6th kind of possible implementation, in the 11 kind of possible implementation, described default step-length is that coding side is determined according to preset rules;
Described method also comprises: the described default step-length of encoding.
In conjunction with the third of second aspect, to any possible implementation in the 6th kind of possible implementation, in the 12 kind of possible implementation, described default step-length is the default step-length of coding side.
In conjunction with any possible implementation in 12 kinds of possible implementations of the first to the of second aspect or second aspect, in the 13 kind of possible implementation, the described maximum predicted size of encoding.
In conjunction with any possible implementation in 13 kinds of possible implementations of the first to the of second aspect or second aspect, in the 14 kind of possible implementation, before the size of described definite current image block and maximum predicted size, also comprise:
Determine and adopt simplification depth coding Mode S DC to encode.
The embodiment of the present invention third aspect provides a kind of decoding device of image, comprising:
Determination module, for determining size and the maximum predicted size of current image block;
Acquisition module while being greater than described maximum predicted size for the size when described current image block, obtains the first prediction data of described current image block from the adjacent data of described current image block by down-sampling mode;
Processing module, for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data;
Decoder module, decodes for the first prediction data piece according to described current image block.
In conjunction with the third aspect, in the possible implementation of the first, described acquisition module is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described acquisition module is specifically for when intra prediction mode is plane mode, obtains the first prediction data piece of described current image block according to plane mode and R.
In conjunction with the third aspect, in the third possible implementation, described acquisition module specifically for obtaining the first prediction data of described current image block, wherein from the adjacent data of described current image block to preset step-length, described default step-length is N, and N is more than or equal to 2 integer.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In conjunction with the third or the 4th kind of possible implementation, in the 5th kind of possible implementation, described processing module is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, described processing module is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of the third aspect or the third aspect, in the 7th kind of possible implementation, described decoder module obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 8th kind of possible implementation, described decoder module obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 9th kind of possible implementation, described decoder module is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of the third aspect or the third aspect, in the tenth kind of possible implementation, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; Described the second Image Reconstruction piece is carried out to up-sampling and obtain the 3rd Image Reconstruction piece, wherein, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 11 kind of possible implementation, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in described the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 12 kind of possible implementation, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block, according to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, described the second Image Reconstruction piece is comprised of M sample point, described the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in described the 3rd Image Reconstruction piece a 4th Image Reconstruction piece is according to M the series arrangement that sample point is identical with described the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in described the 4th Image Reconstruction piece is the sample value of arranging with described the 4th Image Reconstruction piece the sample point that sequence number is identical in the second Image Reconstruction piece, the size of wherein said the 3rd Image Reconstruction piece and described current image block measure-alike.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 13 kind of possible implementation, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In conjunction with the third of the third aspect to any possible implementation in the 6th kind of possible implementation, in the 14 kind of possible implementation, the default step-length of described default step-length for obtaining from code stream.
In conjunction with the third of the third aspect, to any possible implementation in the 6th kind of possible implementation, in the 15 kind of possible implementation, described default step-length is the default step-length of decoding end.
In conjunction with any possible implementation in 15 kinds of possible implementations of the first to the of the third aspect or the third aspect, in the 16 kind of possible implementation, described maximum predicted is of a size of and obtains from code stream, or is the default numerical value of decoding end.
In conjunction with any possible implementation in 16 kinds of possible implementations of the first to the of the third aspect or the third aspect, in the 17 kind of possible implementation, described determination module, also, for before determining the size and maximum predicted size of current image block, determine and adopt simplification depth coding Mode S DC to decode.
Embodiment of the present invention fourth aspect provides a kind of code device of image, comprising:
Determination module, for determining size and the maximum predicted size of current image block;
Acquisition module while being greater than described maximum predicted size for the size when described current image block, obtains the first prediction data of described current image block from the adjacent data of described current image block by down-sampling mode;
Processing module, for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data;
Coding module, encodes for the first prediction data piece according to described current image block.
In conjunction with fourth aspect, in the possible implementation of the first, described acquisition module is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described acquisition module is specifically for when intra prediction mode is plane mode, obtains the first prediction data piece of described current image block according to plane mode and R.
In conjunction with fourth aspect, in the third possible implementation, described acquisition module specifically for obtaining the first prediction data of described current image block, wherein from the adjacent data of described current image block to preset step-length, described default step-length is N, and N is more than or equal to 2 integer.
In conjunction with the third possible implementation, in the 4th kind of possible implementation, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In conjunction with the third or the 4th kind of possible implementation, in the 5th kind of possible implementation, described processing module is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, described processing module is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
In conjunction with any possible implementation in six kinds of possible implementations of the first to the of fourth aspect or fourth aspect, in the 7th kind of possible implementation, described coding module obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling, and the size of described the second prediction data piece equals the size of described current image block; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
In conjunction with the third of fourth aspect to any possible implementation in the 6th kind of possible implementation, in the 8th kind of possible implementation, described coding module obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
In conjunction with the third of fourth aspect to any possible implementation in the 6th kind of possible implementation, in the 9th kind of possible implementation, described coding module is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to described current image block and described the second prediction data piece, obtain the residual values of described current image block,
The residual values of the described current image block of encoding.
In conjunction with the third of fourth aspect to any possible implementation in the 6th kind of possible implementation, in the tenth kind of possible implementation, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In conjunction with the third of fourth aspect, to any possible implementation in the 6th kind of possible implementation, in the 11 kind of possible implementation, described default step-length is that coding side is determined according to preset rules;
Described coding module is also for the described default step-length of encoding.
In conjunction with the third of fourth aspect, to any possible implementation in the 6th kind of possible implementation, in the 12 kind of possible implementation, described default step-length is the default step-length of coding side.
In conjunction with any possible implementation in 12 kinds of possible implementations of the first to the of fourth aspect or fourth aspect, in the 13 kind of possible implementation, described coding module is also for the described maximum predicted size of encoding.
In conjunction with any possible implementation in 13 kinds of possible implementations of the first to the of fourth aspect or fourth aspect, in the 14 kind of possible implementation, described determination module, also, for before determining the size and maximum predicted size of current image block, determine and adopt simplification depth coding Mode S DC to encode.
The decoding method of the image that the embodiment of the present invention provides and device, by determining size and the maximum predicted size of current image block, when the size of current image block is greater than maximum predicted size, by down-sampling mode, from the adjacent data of current image block, obtain the first prediction data of described current image block, according to the intra prediction mode of current image block and the first prediction data, obtain the first prediction data piece of described current image block, according to the first prediction data piece, encode, owing to obtaining the first prediction data of the first prediction data piece of described current image block, be to obtain from the adjacent data of current image block by down-sampling mode, , be equivalent to reduce the number of sample point in the prediction data of the first prediction data piece that obtains described current image block, therefore, the size decreases of the first prediction data piece obtaining, thereby the size that makes the first prediction data piece equals maximum predicted size, meet the requirement of the maximum predicted size of system permission, without increasing design overhead.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, 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.
Fig. 1 is the schematic flow sheet of the coding method embodiment mono-of image of the present invention;
Fig. 2 is the schematic flow sheet of the coding/decoding method embodiment mono-of image of the present invention;
Fig. 3 is the structural representation of the decoding device embodiment mono-of image of the present invention;
Fig. 4 is the structural representation of the code device embodiment mono-of image of the present invention;
Fig. 5 is according to another embodiment of the present invention for the schematic block diagram of the equipment of the decoding of image;
Fig. 6 is according to another embodiment of the present invention for the schematic block diagram of the equipment of the coding of image.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Main thought of the present invention is that the size for current image block is while being greater than maximum predicted size, when obtaining prediction data, mode by down-sampling is obtained prediction data from the adjacent data of current image block, so that in the scope allowing in system according to the size that obtains the prediction data piece of prediction data acquisition, then, the prediction data piece obtaining is carried out to up-sampling, so that size and the current image block of the prediction data after conversion is measure-alike, thereby can adopt SDC to carry out encoding and decoding without increase design overhead; Or, the prediction data piece obtaining is carried out to SDC encoding and decoding, thereby then the Image Reconstruction piece obtaining is carried out to up-sampling, obtain with the measure-alike Image Reconstruction piece of current image block without increasing design overhead.Current image block described in the present invention refers to current image block to be encoded or to be decoded.In addition, above-mentioned maximum predicted size can be maximum infra-frame prediction size.Wherein, down-sampling refers to that from the first set, with certain rule, obtaining second gathers, and the data element of described the second set is less than the data element in the first set.Up-sampling refers to from the 3rd set and obtains the 4th set with certain rule, and the data element of described the 3rd set is more than the data element in the 4th set.
With embodiment particularly, technical scheme of the present invention is described in detail below.
Fig. 1 is the schematic flow sheet of the coding method embodiment mono-of image of the present invention, and the executive agent of the present embodiment is code device, and the method for the present embodiment is as follows:
S101: size and the maximum predicted size of determining current image block.
Wherein, maximum predicted size refers to the size of the maximum predicted data block that coding/decoding system allows.
S102: when the size of current image block is greater than maximum predicted size, obtain the first prediction data of current image block by down-sampling mode from the adjacent data of current image block.
As the first implementation, from the adjacent data of current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.From the adjacent data of current image block, obtain R sample data as the first prediction data, refer to from each limit of the adjacent edge of having encoded of current image block and obtain R sample data, the size of current image block refers to the number of the sample point on each limit, for example: 4 * 4 image block is of a size of 4.As the second implementation, to preset step-length, from the adjacent data of current image block, obtain the first prediction data of described current image block.Wherein, default step-length is N, and N is more than or equal to 2 integer.The value of N can be determined according to the ratio of the size of current image block and maximum predicted size; Or system is the identical default step-length of coding side and decoding end configuration, when coding, can obtain default step-length from the configuration parameter of coding side; Or, the default step-length that coding side is determined according to preset rules, when coding, this default step-length that also needs to encode, so that decoding end can be known the default step-length that coding side adopts; For definite method of N value, the present invention is not restricted this.The adjacent data of current image block is coded data.
S103: according to the first prediction data piece of the intra prediction mode of current image block and the first prediction data acquisition current image block.
Wherein, intra prediction mode can be plane (Planar) pattern, when the first implementation in adopting S102 is obtained the first prediction data of described current image block, when intra prediction mode is plane mode, the first prediction data piece that obtains described current image block according to plane mode and the first prediction data can be for obtaining the first prediction data piece of described current image block according to plane mode and R.
When the first implementation in adopting S102 is obtained the first prediction data of described current image block, according to plane mode and the first prediction data, obtain the first prediction data piece of described current image block for obtain the first prediction data piece of described current image block according to the ratio of the size of current image block and default step-length, the size of the first prediction data piece equals the ratio of size and the default step-length of current image block.
Suppose that current image block is of a size of S * S, the first prediction data piece obtaining in conjunction with the step of S102 and S103 is of a size of (S/N) * (S/N).The method that with a concrete example, the step in conjunction with S102 and S103 is obtained to the first prediction data piece of described current image block below describes, current image block adopts the coding method of SDC, adopt the intra prediction mode of Planar, if current image block is of a size of 64 * 64, the maximum intra-frame prediction block that system allows is of a size of 32 * 32, current image block adopts the coding method of SDC, determine that default step-length is 2(64/32=2), to preset step-length 2, from the adjacent data blocks of current image block, obtain the first prediction data of described current image block, the step-length of take is obtained the first prediction data of described current image block as 2 from the top row of current image block and the adjacent data of left-hand column, according to the intra prediction mode of Planar, adopt the first prediction data to obtain the first prediction data piece of described current image block, because the first prediction data is to preset step-length 2 to obtain from the adjacent data of current image block, be equivalent to carry out down-sampling processing to obtaining the prediction data of the first prediction data piece of described current image block, therefore, size and the maximum predicted of the first prediction data piece obtaining are measure-alike, 32 * 32.Particularly, can adopt following code to realize this process:
Wherein, predSamples[x] [y] be that in the first prediction data piece, abscissa is that x ordinate is the sample value of the sample point of y, p[x] [y] represent that in adjacent data, abscissa is that x ordinate is the sample value of y, x and y represent the position of each sample point in adjacent data, the coordinate figure of x and y increases progressively with step-length 2, thereby the sampling process of realization, i.e. the number of the sample point of the prediction data of the first prediction data piece of the described current image block of minimizing acquisition.While obtaining due to the first prediction data piece, passed through sampling processing, its piece size becomes 32 * 32, and therefore, the value of nT becomes 5 from 64 values that become 32, Log2 (nT) from 6.
S104: encode according to the first prediction data piece.
Comprise following several implementation, the first implementation, the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece, up-sampling can be to carry out up-sampling with 1:N, up-sampling filter in can processing by image is realized, and the size of the second prediction data piece equals the size of current image block.According to current image block and the second prediction data piece, obtain the residual values of current image block; The residual values of coding current image block.
The second implementation, according to the first prediction data piece, obtain the second prediction data piece, in the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in the first prediction piece, the sample value of sample point y), wherein, N is the value of default step-length; According to current image block and the second prediction data piece, obtain the residual values of current image block; The residual values of coding current image block.
The third implementation, according to the first prediction data piece, obtain the second prediction data piece, wherein, the first prediction data piece is comprised of M sample point, the second prediction piece is comprised of M the 3rd prediction data piece, M in the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in the 3rd prediction data piece is in the first prediction data piece, to arrange the sample value of the sample point that sequence number is identical with the 3rd prediction data piece.For instance, the first prediction data piece is comprised of 9 sample points, and putting in order of 9 sample points is as follows: wherein, 1,2,3,4,5,6,7,8,9 represent respectively the arrangement sequence number of each sample point;
1 2 3
4 5 6
7 8 9
The second prediction data piece is comprised of 9 the 3rd prediction data pieces, and each the 3rd prediction data piece is comprised of 2*2 identical sample point, as follows:
1 1 2 2 3 3
1 1 2 2 3 3
4 4 5 5 6 6
4 4 5 5 6 6
7 7 8 8 9 9
7 7 8 8 9 9
The sample value of 2 * 2 identical sample points in the 3rd prediction data piece is in the first prediction data piece, to arrange the sample value of the sample point that sequence number is identical with the 3rd prediction data piece; For example, the sample value of arranging sequence number in the first prediction data piece and be 1 sample point is A, in the second prediction data piece, arranges sequence number and be 1 the 3rd prediction data piece
1 1
1 1
In the sample value of each sample point be also A.The process of obtaining the second prediction data piece according to the first prediction data piece can realize by the method for up-sampling, being about to sample value in the first prediction data piece is filled in the second prediction data piece in corresponding the 3rd prediction data piece, or conventional up-sampling filter is realized in processing by image.
After obtaining the second prediction data piece, adopt the SDC coding method processing of encoding, according to current image block and the second prediction data piece, obtain residual values, above-mentioned residual values is encoded, so that decoding end obtains the reconstructed image piece of current image block according to above-mentioned residual values.Wherein a kind of method of obtaining residual values according to current image block and the second prediction data piece is to obtain a steady state value according to the initial data of current image block, according to the sample value of each sample point of the second prediction data piece, obtain a steady state value, using the difference of two steady state values as residual values.
In the present embodiment, by determining size and the maximum predicted size of current image block, when the size of current image block is greater than maximum predicted size, by down-sampling mode, from the adjacent data of current image block, obtain the first prediction data of described current image block, according to the intra prediction mode of current image block and the first prediction data, obtain the first prediction data piece of described current image block, according to the first prediction data piece, encode, owing to obtaining the first prediction data of the first prediction data piece of described current image block, be to obtain from the adjacent data of current image block by down-sampling mode, , be equivalent to reduce the number of sample point in the prediction data of the first prediction data piece that obtains described current image block, therefore, the size decreases of the first prediction data piece obtaining, thereby the size that makes the first prediction data piece equals maximum predicted size, meet the requirement of the maximum predicted size of system permission, without increasing design overhead.
Alternatively, also comprise in the above-described embodiments coding maximum predicted size.
When the embodiment of the present invention is applied to adopt SDC coding mode, therefore, when system adopts Multi-encoding pattern, before carrying out S101, also comprise: determine and adopt SDC to encode.
Fig. 2 is the schematic flow sheet of the coding/decoding method embodiment mono-of image of the present invention, and the executive agent of the present embodiment is decoding device, and the method for the present embodiment is as follows:
S201: size and the maximum predicted size of determining current image block.
Decoding end can be obtained and beat predicted size most from default numerical value.
The maximum predicted size if coding side has been encoded, decoding end also can be obtained maximum predicted size from code stream.
S202: when the size of current image block is greater than maximum predicted size, obtain the first prediction data of current image block by down-sampling mode from the adjacent data of current image block.
As the first implementation, from the adjacent data of current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
As the second implementation, to preset step-length, from the adjacent data of current image block, obtain the first prediction data of described current image block.Wherein, default step-length is N, and N is more than or equal to 2 integer.The value of N can be determined according to the ratio of the size of current image block and maximum predicted size; Or system is the identical default step-length of coding and decoding end configuration, when decoding, can from the configuration parameter of decoding end, obtain default step-length; Or, the default step-length of obtaining from code stream; To definite method of N value, the present invention is not restricted this.
The size of the first prediction data piece equals the ratio of size and the default step-length of current image block.
S203: according to the first prediction data piece of the intra prediction mode of current image block and the first prediction data acquisition current image block.
Wherein, the intra prediction mode of current image block is plane mode, when the first implementation in adopting S202 is obtained the first prediction data of described current image block, when intra prediction mode is plane mode, the first prediction data piece that obtains described current image block according to plane mode and the first prediction data can be for obtaining the first prediction data piece of described current image block according to plane mode and R.
When the first implementation in adopting S202 is obtained the first prediction data of described current image block, the first prediction data piece that obtains described current image block according to plane mode and the first prediction data refers to the first prediction data piece that obtains described current image block according to the ratio of the size of current image block and default step-length.
The step of S202 and S203 is identical with step S103 with the step S102 in embodiment illustrated in fig. 1, and the detailed description referring to the S102 in Fig. 1 and S103, does not repeat them here.
S204: decode according to the first prediction data piece.
This step comprises following several implementation, the first implementation, the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece, up-sampling can be to carry out up-sampling with 1:N, up-sampling filter in can processing by image is realized, and the size of the second prediction data piece equals the size of current image block.According to the residual values of the second prediction data piece and current image block, obtain the first Image Reconstruction piece, the size of the first Image Reconstruction piece equals the size of current image block.
The second implementation, according to the first prediction data piece, obtain the second prediction data piece, wherein, in the second prediction data piece, coordinate figure is (N * x, N * y) to the sample value of the sample point of (N * x+N-1, N * y+N-1), equal the sample value of the sample point that in the first prediction piece, coordinate figure is (x, y), wherein, N is the value of default step-length; According to the residual values of the second prediction data piece and current image block, obtain the first Image Reconstruction piece, the size of the first Image Reconstruction piece equals the size of current image block.
The third implementation, according to the first prediction data piece, obtain the second prediction data piece, wherein, the first prediction data piece is comprised of M sample point, the second prediction piece is comprised of M the 3rd prediction data piece, M in the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, the size of the second prediction data piece and current image block measure-alike, the corresponding description of the process that obtains the second prediction data piece according to the first prediction data piece in also can embodiment shown in Figure 1, no longer describes in detail inferior.According to the residual values of the second prediction data piece and current image block, obtain the first Image Reconstruction piece.
The 4th kind of implementation, obtains the second Image Reconstruction piece according to the residual values of the first prediction data piece and current image block; The second Image Reconstruction piece is carried out to up-sampling and obtains the 3rd Image Reconstruction piece, up-sampling can be to carry out up-sampling with 1:N, the up-sampling filter in can processing by image is realized, the size of the 3rd Image Reconstruction piece and current image block measure-alike.
The 5th kind of implementation, obtains the second Image Reconstruction piece according to the residual values of the first prediction data piece and current image block; According to the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of the 3rd Image Reconstruction piece and current image block measure-alike.
The 6th kind of implementation, according to the residual values of the first prediction piece and current image block, obtain the second Image Reconstruction piece, the size of the second Image Reconstruction piece and the first prediction data piece measure-alike, after obtaining the second Image Reconstruction piece, according to the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, the second Image Reconstruction piece is comprised of M sample point, the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in a 3rd Image Reconstruction piece quadruple building block is according to M the series arrangement that sample point is identical with the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in the 4th Image Reconstruction piece is in the second Image Reconstruction piece, to arrange the sample value of the sample point that sequence number is identical with the 4th Image Reconstruction piece.The size of the 3rd Image Reconstruction piece and current image block measure-alike.According to the second image block, obtain the process of the 3rd Image Reconstruction piece and embodiment illustrated in fig. 1 middle according to the first prediction data piece, to obtain the process of the second prediction data piece similar, at this, no longer illustrate.
In the present embodiment, by determining size and the maximum predicted size of current image block, when the size of current image block is greater than maximum predicted size, by down-sampling mode, from the adjacent data of current image block, obtain the first prediction data of described current image block, according to the intra prediction mode of current image block and the first prediction data, obtain the first prediction data piece of described current image block, according to the first prediction data piece, decode, owing to obtaining the first prediction data of the first prediction data piece of described current image block, be to obtain from the adjacent data of current image block by down-sampling mode, , be equivalent to reduce the number of sample point in the prediction data of the first prediction data piece that obtains described current image block, therefore, the size decreases of the first prediction data piece obtaining, thereby the size that makes the first prediction data piece equals maximum predicted size, meet the requirement of the maximum predicted size of system permission, without increasing design overhead.
When the embodiment of the present invention is applied to adopt SDC encoding/decoding mode, therefore, when system adopts multiple encoding/decoding mode, before carrying out S201, also comprise: determine and adopt SDC to decode.
Fig. 3 is the structural representation of the decoding device embodiment mono-of image of the present invention, the device of the present embodiment comprises determination module 301, acquisition module 302, processing module 303 and decoder module 304, wherein, determination module 301 is for determining size and the maximum predicted size of current image block; When acquisition module 302 is greater than described maximum predicted size for the size when described current image block, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block; Processing module 303 is for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data; Decoder module 304 is decoded for the first prediction data piece according to described current image block.
In the above-described embodiments, described acquisition module 302 is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, and wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In the above-described embodiments, described acquisition module 302 is specifically for when intra prediction mode is plane mode, obtains the first prediction data piece of described current image block according to plane mode and R.
In the above-described embodiments, described acquisition module 302 specifically for obtaining the first prediction data of described current image block from the adjacent data of described current image block to preset step-length, and wherein, described default step-length is N, and N is more than or equal to 2 integer.
In the above-described embodiments, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In the above-described embodiments, described processing module 303 is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
In the above-described embodiments, described processing module 303 is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
In the above-described embodiments, described decoder module 304 obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In the above-described embodiments, described decoder module 304 obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to the sample value of the sample point of (N * x+N-1, N * y+N-1), equal the sample value of the sample point that in described the first prediction piece, coordinate figure is (x, y), wherein, the value that N is described default step-length; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In the above-described embodiments, described decoder module 304 is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
In the above-described embodiments, described decoder module 304 is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; Described the second Image Reconstruction piece is carried out to up-sampling and obtain the 3rd Image Reconstruction piece, wherein, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In the above-described embodiments, described decoder module 304 is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in described the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
In the above-described embodiments, described decoder module 304 is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block, according to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, described the second Image Reconstruction piece is comprised of M sample point, described the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in described the 3rd Image Reconstruction piece a 4th Image Reconstruction piece is according to M the series arrangement that sample point is identical with described the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in described the 4th Image Reconstruction piece is the sample value of arranging with described the 4th Image Reconstruction piece the sample point that sequence number is identical in the second Image Reconstruction piece, the size of wherein said the 3rd Image Reconstruction piece and described current image block measure-alike.
In the above-described embodiments, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In the above-described embodiments, the default step-length of described default step-length for obtaining from code stream.
In the above-described embodiments, described default step-length is the default step-length of decoding end.
In the above-described embodiments, described maximum predicted is of a size of and obtains from code stream, or is the default numerical value of decoding end.
In the above-described embodiments, described determination module 301, also for before determining the size and maximum predicted size of current image block, is determined and is adopted simplification depth coding Mode S DC to decode.
The device of above-described embodiment, corresponding can execution graph 2 shown in the technical scheme of embodiment of the method, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 4 is the structural representation of the code device embodiment mono-of image of the present invention, as shown in Figure 4, the device of the present embodiment comprises determination module 401, acquisition module 402, processing module 403 and coding module 404, wherein, determination module 401 is for determining size and the maximum predicted size of current image block; When acquisition module 402 is greater than described maximum predicted size for the size when described current image block, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block; Processing module 403 is for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data; Coding module 404 is encoded for the first prediction data piece according to described current image block.
In the above-described embodiments, described acquisition module 402 is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, and wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
In the above-described embodiments, described acquisition module 402 is specifically for when intra prediction mode is plane mode, obtains the first prediction data piece of described current image block according to plane mode and R.
In the above-described embodiments, described acquisition module 402 specifically for obtaining the first prediction data of described current image block from the adjacent data of described current image block to preset step-length, and wherein, described default step-length is N, and N is more than or equal to 2 integer.
In the above-described embodiments, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
In the above-described embodiments, described processing module 403 is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
In the above-described embodiments, described processing module 403 is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
In the above-described embodiments, described coding module 404 obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling, and the size of described the second prediction data piece equals the size of described current image block; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
In the above-described embodiments, described coding module 404 obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to the sample value of the sample point of (N * x+N-1, N * y+N-1), equal the sample value of the sample point that in described the first prediction piece, coordinate figure is (x, y), wherein, the value that N is described default step-length; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
In the above-described embodiments, described coding module 404 is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to described current image block and described the second prediction data piece, obtain the residual values of described current image block, the residual values of the described current image block of encoding.
In the above-described embodiments, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
In the above-described embodiments, described default step-length is that coding side is determined according to preset rules; Described coding module 404 is also for the described default step-length of encoding.
In the above-described embodiments, described default step-length is the default step-length of coding side.
In the above-described embodiments, described coding module 404 is also for the described maximum predicted size of encoding.
In the above-described embodiments, described determination module 401, also for before determining the size and maximum predicted size of current image block, is determined and is adopted simplification depth coding Mode S DC to encode.
The device of above-described embodiment, can be used for the technical scheme of embodiment of the method shown in execution graph 1 accordingly, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 5 is according to another embodiment of the present invention for the schematic block diagram of the equipment of the decoding of image.An example of the equipment 400 of Fig. 5 is decoder.Equipment 400 comprises memory 410 and processor 420.Memory 410 can comprise random asccess memory, flash memory, read-only memory, programmable read only memory, nonvolatile memory or register etc.Processor 420 can be central processing unit (Central Processing Unit, CPU).Memory 410 is for stores executable instructions.Processor 420 can execute store 410 in the executable instruction of storage, for example, processor 420 can be used for determining size and the maximum predicted size of current image block; When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block; According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block; According to the first prediction data piece of described current image block, decode.
Alternatively, as an embodiment, processor 420 can be used for obtaining R sample data from the adjacent data of described current image block as the first prediction data, and wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
Alternatively, as another embodiment, processor 420 can be used for from obtain the first prediction data of described current image block from the adjacent data of described current image block to preset step-length, and wherein, described default step-length is N, and N is more than or equal to 2 integer.
Other function of the equipment 400 of Fig. 5 and operation can, with reference to the process of the embodiment of the method for Fig. 2 above, for fear of repetition, repeat no more herein.
Fig. 6 is according to another embodiment of the present invention for the schematic block diagram of the equipment of the coding of image.An example of the equipment 500 of Fig. 6 is encoder.Equipment 500 comprises memory 510 and processor 420.Memory 410 can comprise random asccess memory, flash memory, read-only memory, programmable read only memory, nonvolatile memory or register etc.Processor 520 can be central processing unit (Central Processing Unit, CPU).Memory 510 is for stores executable instructions.Processor 520 can execute store 510 in the executable instruction of storage, for example, processor 520 can be used for determining size and the maximum predicted size of current image block; When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block; According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block; According to the first prediction data piece of described current image block, encode.
Alternatively, as an embodiment, processor 520 can be used for obtaining R sample data from the adjacent data of described current image block as the first prediction data, and wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
Alternatively, as another embodiment, processor 520 can be used for presetting the first prediction data that step-length is obtained described current image block from the adjacent data of described current image block, and wherein, described default step-length is N, and N is more than or equal to 2 integer.
Other function of the equipment 500 of Fig. 6 and operation can, with reference to the process of the embodiment of the method for Fig. 1 above, for fear of repetition, repeat no more herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (66)

1. a coding/decoding method for image, is characterized in that, comprising:
Determine size and the maximum predicted size of current image block;
When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block;
According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block;
According to the first prediction data piece of described current image block, decode.
2. method according to claim 1, is characterized in that, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
From the adjacent data of described current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
3. method according to claim 2, is characterized in that, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
When intra prediction mode is plane mode, according to plane mode and R, obtain the first prediction data piece of described current image block.
4. method according to claim 1, is characterized in that, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
To preset step-length, from the adjacent data of described current image block, obtain the first prediction data of described current image block, wherein, described default step-length is N, and N is more than or equal to 2 integer.
5. method according to claim 4, is characterized in that, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
6. according to the method described in claim 4 or 5, it is characterized in that, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
According to plane mode and described the first prediction data, obtain the first prediction data piece of described current image block.
7. method according to claim 6, is characterized in that, described the first prediction data piece that obtains described current image block according to plane mode and described the first prediction data, comprising:
According to the ratio of the size of described current image block and described default step-length, obtain the first prediction data piece of described current image block.
8. according to the method described in claim 1~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
Described the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece;
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
9. according to the method described in claim 4~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the first prediction data piece of described current image block, obtain the second prediction data piece, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length;
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
10. according to the method described in claim 4~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the first prediction data piece, obtain the second prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece,
According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
11. according to the method described in claim 1~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
Described the second Image Reconstruction piece is carried out to up-sampling and obtain the 3rd Image Reconstruction piece, wherein, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
12. according to the method described in claim 4~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in described the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
13. according to the method described in claim 4~7 any one, it is characterized in that, described the first prediction data piece according to described current image block is decoded, and comprising:
According to the residual values of the first prediction data piece of described current image block and described current image block, obtain the second Image Reconstruction piece;
According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, described the second Image Reconstruction piece is comprised of M sample point, described the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in described the 3rd Image Reconstruction piece a 4th Image Reconstruction piece is according to M the series arrangement that sample point is identical with described the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in described the 4th Image Reconstruction piece is the sample value of arranging with described the 4th Image Reconstruction piece the sample point that sequence number is identical in the second Image Reconstruction piece, the size of wherein said the 3rd Image Reconstruction piece and described current image block measure-alike.
14. according to the method described in claim 4~7 any one, it is characterized in that, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
15. according to the method described in claim 4~7 any one, it is characterized in that the default step-length of described default step-length for obtaining from code stream.
16. according to the method described in claim 4~7 any one, it is characterized in that, described default step-length is the default step-length of decoding end.
17. according to the method described in claim 1~16 any one, it is characterized in that, described maximum predicted is of a size of and obtains from code stream, or is the default numerical value of decoding end.
18. according to the method described in claim 1~17, it is characterized in that, before the size of described definite current image block and maximum predicted size, also comprises:
Determine and adopt simplification depth coding Mode S DC to decode.
The coding method of 19. 1 kinds of images, is characterized in that, comprising:
Determine size and the maximum predicted size of current image block;
When the size of described current image block is greater than described maximum predicted size, by down-sampling mode, from the adjacent data of described current image block, obtain the first prediction data of described current image block;
According to the intra prediction mode of described current image block and described the first prediction data, obtain the first prediction data piece of described current image block;
According to the first prediction data piece of described current image block, encode.
20. methods according to claim 19, is characterized in that, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
From the adjacent data of described current image block, obtain R sample data as the first prediction data, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
21. methods according to claim 20, is characterized in that, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
When intra prediction mode is plane mode, according to plane mode and R, obtain the first prediction data piece of described current image block.
22. methods according to claim 19, is characterized in that, described the first prediction data of obtaining described current image block by down-sampling mode from the adjacent data of described current image block, comprising:
To preset step-length, from the adjacent data of described current image block, obtain the first prediction data of described current image block, wherein, described default step-length is N, and N is more than or equal to 2 integer.
23. methods according to claim 22, is characterized in that, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
24. according to the method described in claim 22 or 23, it is characterized in that, described the first prediction data piece that obtains described current image block according to the intra prediction mode of described current image block and described the first prediction data, comprising:
According to plane mode and described the first prediction data, obtain the first prediction data piece of described current image block.
25. methods according to claim 24, is characterized in that, described the first prediction data piece that obtains described current image block according to plane mode and described the first prediction data, comprising:
According to the ratio of the size of described current image block and described default step-length, obtain the first prediction data piece of described current image block.
26. according to the method described in claim 19~25 any one, it is characterized in that, described the first prediction data piece according to described current image block is encoded, and comprising:
Described the first prediction data piece is carried out to up-sampling and obtain the second prediction data piece, the size of described the second prediction data piece equals the size of described current image block;
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
27. according to the method described in claim 22~25 any one, it is characterized in that, described the first prediction data piece according to described current image block is encoded, and comprising:
According to the first prediction data piece of described current image block, obtain the second prediction data piece, wherein, in described the second prediction data piece, coordinate figure is (N * x, N * y) to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length;
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
28. according to the method described in claim 22~25 any one, it is characterized in that, described the first prediction data piece according to described current image block is encoded, and comprising:
According to the first prediction data piece, obtain the second prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece,
According to described current image block and described the second prediction data piece, obtain the residual values of described current image block;
The residual values of the described current image block of encoding.
29. according to the method described in claim 22~25 any one, it is characterized in that, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
30. according to the method described in claim 22~25 any one, it is characterized in that, described default step-length is that coding side is determined according to preset rules;
Described method also comprises: the described default step-length of encoding.
31. according to the method described in claim 22~25 any one, it is characterized in that, described default step-length is the default step-length of coding side.
32. according to the method described in claim 19~31 any one, it is characterized in that, described method also comprises: the described maximum predicted size of encoding.
33. according to the method described in claim 19~32, it is characterized in that, before the size of described definite current image block and maximum predicted size, also comprises:
Determine and adopt simplification depth coding Mode S DC to encode.
The decoding device of 34. 1 kinds of images, is characterized in that, comprising:
Determination module, for determining size and the maximum predicted size of current image block;
Acquisition module while being greater than described maximum predicted size for the size when described current image block, obtains the first prediction data of described current image block from the adjacent data of described current image block by down-sampling mode;
Processing module, for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data;
Decoder module, decodes for the first prediction data piece according to described current image block.
35. devices according to claim 34, it is characterized in that, described acquisition module is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
36. devices according to claim 35, is characterized in that, described acquisition module is specifically for when intra prediction mode is plane mode, obtain the first prediction data piece of described current image block according to plane mode and R.
37. devices according to claim 34, it is characterized in that, described acquisition module specifically for obtaining the first prediction data of described current image block, wherein from the adjacent data of described current image block to preset step-length, described default step-length is N, and N is more than or equal to 2 integer.
38. according to the device described in claim 37, it is characterized in that, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
39. according to the device described in claim 37 or 38, it is characterized in that, described processing module is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
40. according to the device described in claim 39, it is characterized in that, described processing module is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
41. according to the device described in claim 34~40 any one, it is characterized in that, described decoder module obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
42. according to the device described in claim 37~40 any one, it is characterized in that, described decoder module obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is that (N * x, N * y) is to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length; According to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
43. according to the device described in claim 37~40 any one, it is characterized in that, described decoder module is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to the residual values of described the second prediction data piece and described current image block, obtain the first Image Reconstruction piece, the size of described the first Image Reconstruction piece equals the size of described current image block.
44. according to the device described in claim 34~40 any one, it is characterized in that, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; Described the second Image Reconstruction piece is carried out to up-sampling and obtain the 3rd Image Reconstruction piece, wherein, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
45. according to the device described in claim 37~40 any one, it is characterized in that, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block; According to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, in described the 3rd Image Reconstruction piece, coordinate figure is (N * x, N * y) to (N * x+N-1, the sample value of sample point N * y+N-1) equals the sample value of the sample point that in the second Image Reconstruction piece, coordinate figure is (x, y), wherein, N is the value of described default step-length, the size of described the 3rd Image Reconstruction piece and described current image block measure-alike.
46. according to the device described in claim 37~40 any one, it is characterized in that, described decoder module is specifically for obtaining the second Image Reconstruction piece according to the residual values of the first prediction data piece of described current image block and described current image block, according to described the second Image Reconstruction piece, obtain the 3rd Image Reconstruction piece, wherein, described the second Image Reconstruction piece is comprised of M sample point, described the 3rd Image Reconstruction piece is comprised of M the 4th Image Reconstruction piece, M in described the 3rd Image Reconstruction piece a 4th Image Reconstruction piece is according to M the series arrangement that sample point is identical with described the second Image Reconstruction piece, each the 4th Image Reconstruction piece is comprised of N * N sample point, the sample value of N * N sample point in described the 4th Image Reconstruction piece is the sample value of arranging with described the 4th Image Reconstruction piece the sample point that sequence number is identical in the second Image Reconstruction piece, the size of wherein said the 3rd Image Reconstruction piece and described current image block measure-alike.
47. according to the device described in claim 37~40 any one, it is characterized in that, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
48. according to the device described in claim 37~40 any one, it is characterized in that the default step-length of described default step-length for obtaining from code stream.
49. according to the device described in claim 37~40 any one, it is characterized in that, described default step-length is the default step-length of decoding end.
50. according to the device described in claim 34~49 any one, it is characterized in that, described maximum predicted is of a size of and obtains from code stream, or is the default numerical value of decoding end.
51. according to the device described in claim 34~50, it is characterized in that described determination module, also for before determining the size and maximum predicted size of current image block, is determined and adopted simplification depth coding Mode S DC to decode.
The code device of 52. 1 kinds of images, is characterized in that, comprising:
Determination module, for determining size and the maximum predicted size of current image block;
Acquisition module while being greater than described maximum predicted size for the size when described current image block, obtains the first prediction data of described current image block from the adjacent data of described current image block by down-sampling mode;
Processing module, for obtaining the first prediction data piece of described current image block according to the intra prediction mode of described current image block and described the first prediction data;
Coding module, encodes for the first prediction data piece according to described current image block.
53. according to the device described in claim 52, it is characterized in that, described acquisition module is specifically for obtaining R sample data as the first prediction data the adjacent data from described current image block, wherein, R is more than or equal to 1 and be less than the integer of the size of described current image block.
54. according to the device described in claim 53, it is characterized in that, described acquisition module is specifically for when intra prediction mode is plane mode, obtains the first prediction data piece of described current image block according to plane mode and R.
55. according to the device described in claim 52, it is characterized in that, described acquisition module specifically for obtaining the first prediction data of described current image block, wherein from the adjacent data of described current image block to preset step-length, described default step-length is N, and N is more than or equal to 2 integer.
56. according to the device described in claim 55, it is characterized in that, the size of described the first prediction data piece equals the ratio of size and the described default step-length of described current image block.
57. according to the device described in claim 55 or 56, it is characterized in that, described processing module is specifically for obtaining the first prediction data piece of described current image block according to plane mode and described the first prediction data.
58. according to the device described in claim 57, it is characterized in that, described processing module is specifically for obtaining the first prediction data piece of described current image block according to the ratio of the size of described current image block and described default step-length.
59. according to the device described in claim 52~58 any one, it is characterized in that, described coding module obtains the second prediction data piece specifically for described the first prediction data piece is carried out to up-sampling, and the size of described the second prediction data piece equals the size of described current image block; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
60. according to the device described in claim 55~58 any one, it is characterized in that, described coding module obtains the second prediction data piece specifically for the first prediction data piece according to described current image block, wherein, in described the second prediction data piece, coordinate figure is that (N * x, N * y) is to (N * x+N-1, it is (x that the sample value of sample point N * y+N-1) equals coordinate figure in described the first prediction piece, the sample value of sample point y), wherein, the value that N is described default step-length; According to described current image block and described the second prediction data piece, obtain the residual values of described current image block; The residual values of the described current image block of encoding.
61. according to the device described in claim 55~58 any one, it is characterized in that, described coding module is specifically for obtaining the second prediction data piece according to the first prediction data piece, wherein, described the first prediction data piece is comprised of M sample point, described the second prediction piece is comprised of M the 3rd prediction data piece, M in described the second prediction data piece a 3rd prediction data piece is according to M the series arrangement that sample point is identical with described the first prediction data piece, each the 3rd prediction data piece is comprised of N * N sample point, the sample value of N * N sample point in described the 3rd prediction data piece is the sample value of arranging with described the 3rd prediction data piece the sample point that sequence number is identical in the first prediction data piece, according to described current image block and described the second prediction data piece, obtain the residual values of described current image block,
The residual values of the described current image block of encoding.
62. according to the device described in claim 55~58 any one, it is characterized in that, described default step-length is to determine according to the ratio of the size of described current image block and described maximum predicted size.
63. according to the device described in claim 55~58 any one, it is characterized in that, described default step-length is that coding side is determined according to preset rules;
Described coding module is also for the described default step-length of encoding.
64. according to the device described in claim 55~58 any one, it is characterized in that, described default step-length is the default step-length of coding side.
65. according to the device described in claim 52~64 any one, it is characterized in that, described coding module is also for the described maximum predicted size of encoding.
66. according to the device described in claim 52~65, it is characterized in that described determination module, also for before determining the size and maximum predicted size of current image block, is determined and adopted simplification depth coding Mode S DC to encode.
CN201310495231.XA 2013-10-18 2013-10-18 Encoding and decoding method and device for image Active CN103533331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310495231.XA CN103533331B (en) 2013-10-18 2013-10-18 Encoding and decoding method and device for image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310495231.XA CN103533331B (en) 2013-10-18 2013-10-18 Encoding and decoding method and device for image

Publications (2)

Publication Number Publication Date
CN103533331A true CN103533331A (en) 2014-01-22
CN103533331B CN103533331B (en) 2017-01-11

Family

ID=49934949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310495231.XA Active CN103533331B (en) 2013-10-18 2013-10-18 Encoding and decoding method and device for image

Country Status (1)

Country Link
CN (1) CN103533331B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306940A (en) * 2015-10-27 2016-02-03 北京中星微电子有限公司 Boundary compensation mode processing method in offset compensation of video encoding and decoding sample value
CN107909026A (en) * 2016-11-30 2018-04-13 深圳奥瞳科技有限责任公司 Age and gender assessment based on the small-scale convolutional neural networks of embedded system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394565A (en) * 2008-10-20 2009-03-25 成都九洲电子信息系统有限责任公司 Intra-frame prediction method
CN101710990A (en) * 2009-11-10 2010-05-19 华为技术有限公司 Video image encoding and decoding method, device and encoding and decoding system
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
US20130108181A1 (en) * 2011-10-28 2013-05-02 Samsung Electronics Co., Ltd. Method and apparatus for encoding image and method and appartus for decoding image
CN103237216A (en) * 2013-04-12 2013-08-07 华为技术有限公司 Encoding and decoding method and encoding and decoding device for depth image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394565A (en) * 2008-10-20 2009-03-25 成都九洲电子信息系统有限责任公司 Intra-frame prediction method
CN101710990A (en) * 2009-11-10 2010-05-19 华为技术有限公司 Video image encoding and decoding method, device and encoding and decoding system
US20130108181A1 (en) * 2011-10-28 2013-05-02 Samsung Electronics Co., Ltd. Method and apparatus for encoding image and method and appartus for decoding image
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN103237216A (en) * 2013-04-12 2013-08-07 华为技术有限公司 Encoding and decoding method and encoding and decoding device for depth image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306940A (en) * 2015-10-27 2016-02-03 北京中星微电子有限公司 Boundary compensation mode processing method in offset compensation of video encoding and decoding sample value
CN105306940B (en) * 2015-10-27 2019-10-18 中星技术股份有限公司 A kind of boundary compensation mode treatment method in coding and decoding video sample value migration
CN107909026A (en) * 2016-11-30 2018-04-13 深圳奥瞳科技有限责任公司 Age and gender assessment based on the small-scale convolutional neural networks of embedded system
CN107909026B (en) * 2016-11-30 2021-08-13 深圳奥瞳科技有限责任公司 Small-scale convolutional neural network based age and/or gender assessment method and system

Also Published As

Publication number Publication date
CN103533331B (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN103067716B (en) The decoding method of depth image and coding and decoding device
CN112272298B (en) Method and device for coding and decoding conversion coefficient
FI3793200T3 (en) Low delay picture coding
JP2018523376A5 (en)
JP2018523373A5 (en)
CN103067715A (en) Encoding and decoding methods and encoding and decoding device of range image
CN103220510A (en) Flexible band offset mode in sample adaptive offset in HEVC
BR102013001124B1 (en) Method of decoding an encoded video bitstream, encoder to encode a non-transient processor-readable video and media bitstream
CN104065964A (en) Coding-decoding method of region-of-interest information and video coding-decoding device
CN109891886A (en) The method for video coding and device divided using any type of piece
CN103096056A (en) Matrix coding method and coding device and matrix decoding method and decoding device
CN103975599A (en) Method, device, and program for coding and decoding of images
CN102883161A (en) Video encoding and decoding processing method and device
CN102595119B (en) Stripe coding method and device thereof as well as stripe decoding method and device thereof
CN103533331A (en) Encoding and decoding method and device for image
EP3151559A1 (en) Method for coding and decoding a plurality of picture blocks and corresponding devices
US11962801B2 (en) Image decoding device, image decoding method, and program
CN116982313A (en) Method and apparatus for encoding video for machine vision
CN101389030B (en) Encoding method, system and video encoder
EP3494699B1 (en) Processing apparatuses
CN102685473A (en) Intra-frame prediction method and device
KR20200028019A (en) Method and apparatus for coding and decoding mode information, and electronic device
CN110933444B (en) Bit width value storage method and device
CN103702129A (en) Video coding method and video coding device
US9549193B2 (en) Video encoding method and video encoding 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
GR01 Patent grant
GR01 Patent grant