CN108574845A - Dynamic uses the data compression method and device of a variety of sample formats - Google Patents
Dynamic uses the data compression method and device of a variety of sample formats Download PDFInfo
- Publication number
- CN108574845A CN108574845A CN201710143888.8A CN201710143888A CN108574845A CN 108574845 A CN108574845 A CN 108574845A CN 201710143888 A CN201710143888 A CN 201710143888A CN 108574845 A CN108574845 A CN 108574845A
- Authority
- CN
- China
- Prior art keywords
- encoding
- decoding
- sample
- sample format
- coding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/86—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Abstract
The present invention provides a kind of dynamics using a variety of(I.e. two kinds or more)The data compression method and device of sample format:Data set and each encoding and decoding block have K(K>1)A version for being respectively provided with K kind difference sample formats;When carrying out encoding and decoding to an encoding and decoding block, according to the inherent data characteristic of the encoding and decoding block, selection carries out encoding and decoding to one of described K version of the encoding and decoding block.
Description
Technical field
It data is damaged or the encoding and decoding system of lossless compression, especially image and is regarded the present invention relates to a kind of
The method and apparatus of the encoding and decoding of frequency evidence.
Background technology
As human society enters big data, cloud computing, mobile computing, cloud-mobile computing, ultra high-definition(4K)With special superelevation
Clearly(8K)Video image resolution ratio, 4G/5G communications, virtual reality epoch, to various data, including big data, image data,
Video data, carrying out the data compression of superelevation compression ratio and very high-quality becomes essential technology.
Data set is by data element(Such as:Byte, bit, pixel)The set of composition.It is arranged in a setting to one
Shape and have certain element number(There is certain sample format)Data set(Such as:One file, a frame image, one
Video sequence)Carry out the coding of data compression(And corresponding decoding)When, usually this data set is divided into several with pre-
Determine shapes and sizes(That is element number)Block subset, referred to as encoding block(From decoded angle i.e. decoding block, it is referred to as
Encoding and decoding block), as unit of encoding and decoding block, one piece of one piece of progress encoding or decoding.At any one time, the volume encoded
Code block is known as present encoding block.At any one time, the decoding block decoded is known as current decoding block.Present encoding block is worked as
Preceding decoding block is referred to as current codec block or referred to as current block.Data element just in encoding or decoding(Referred to as
Element)Referred to as current encoded data element or current decoded data element, are referred to as current data element, referred to as current member
Element.Element is by N number of component(Usual 1≤N≤5)Composition, therefore data set and encoding and decoding block are also all made of N number of component.For example,
Element, that is, pixel arrangement of one frame image is in a rectangular shape, has 1920(Width)x 1080(Highly)Size(Resolution ratio),
It is made of 3 components:G(Green)Component, B(Blue)Component, R(It is red)Component or Y(Brightness)Component, U(Cb colorations)Component,
V(Cr colorations)Component.
In the prior art, all only have as the data set of coded object and encoding and decoding block a kind of fixed sample format and
Size.For example, for the image containing figure and word that computer generates, generally use one kind being known as 4:4:4 sample format,
Being exactly 3 components of data set all has same sample rate and size(That is the number of component sample value).Video camera is absorbed
Natural image and video, generally use one kind being known as 4:2:0 sample format exactly has rectangular shape and 3 components
Data set(Such as image or video)2 components(D components and E components)Sample rate and size be another component respectively(F points
Amount)A quarter.In this situation, a D components D [i] [j] and an E components E [i] [j] correspond to four(2 × 2)
F component Fs [2i] [2j], F [2i+1] [2j], F [2i] [2j+1], F [2i+1] [2j+1].If the resolution ratio of F components be 2M ×
The F components of 2N, i.e. data set are F={ F [i] [j]:I=0~2M-1, j=0~2N-1 }, then D components and E components
Resolution ratio is all M × N respectively, i.e., the D components of data set and E components are D={ D [i] [j] respectively:I=0~M-1, j=0
~N-1 } and E={ E [i] [j]:I=0~M-1, j=0~N-1 }.It is also a kind of to be known as 4:2:2 sample format is exactly
Data set with rectangular shape and 3 components(Such as image or video)2 components(D components and E components)Sample rate and
Size is another component respectively(F components)Half.In this situation, in data set(Such as image or video)Level
Direction, a D components D [i] [j] and an E components E [i] [j] correspond to two(2 × 1)F component Fs [2i] [j] and F [2i+
1][j].If the resolution ratio of F components is 2M × N, i.e. the F components of data set are F={ F [i] [j]:I=0~2M-1, j=
0~N-1 }, then the resolution ratio of D components and E components is all M × N respectively, i.e., the D components of data set and E components be respectively D=
{D[i][j]:I=0~M-1, j=0~N-1 } and E={ E [i] [j]:I=0~M-1, j=0~N-1 }.It is using
In the image and video of YUV color formats, F, D, E component described above is Y, U, V component respectively.Using rgb color format
Image and video in, F, D, E component described above is G, B, R component respectively.
Different sample formats refer to data set and/or encoding and decoding block at least one component have different sample rates and
Size(That is the number of component sample value).Different sample rates and size is usually turned mutually by up-sampling operation or down-sampling operation
It changes.Up-sampling operation is the operation for the number for increasing sample value.Down-sampling operation is the operation for the number for reducing sample value.Therefore, no
Same sample format i.e. data set and/or at least one component of encoding and decoding block have different sample value numbers.
For example, 4:4:4 sample formats, 4:2:2 sample formats, 4:2:0 sample format is three kinds of different sample formats.
In the prior art, even if in certain situations, as coded object data set and encoding and decoding block there are many sampling
Format and size, when being encoded to the coded object of these different sample formats and size, using same coding staff
Formula or different coding modes, always encode the coded object of single sample format and size.
For data set made of the content mix by multifrequency nature, for example, by computer generate figure and word with take the photograph
The image and video of screen content image and video, virtual reality, single made of the natural image and video mix of camera intake
One sample format and size, substantially single coding mode, significantly impact the raising of efficiency of data compression.
Invention content
In order to solve the problems, such as this in the compression to data set made of the content mix by multifrequency nature, the present invention carries
A kind of dynamic has been supplied to use a variety of(I.e. two kinds or more)The data compression method and device of sample format:Data set and each volume solution
Code block has K(K>1)A version for being respectively provided with K kind difference sample formats;When carrying out encoding and decoding to an encoding and decoding block, according to
The inherent data characteristic of the encoding and decoding block, selection carry out encoding and decoding to one of described K version of the encoding and decoding block.
The primary technical characteristic of the present invention is that dynamic uses a variety of sample formats(I.e. a variety of data versions with different sample formats
This)One-to-one a encoding and decoding block carry out encoding and decoding.
In the present invention, it is preferable that carry out encoding and decoding using one-to-one a encoding and decoding block of two kinds of sample formats.
In the present invention, it is preferable that data set and its element are made of 3 components.
In the present invention, it is preferable that data set is the image for having rectangular shape.
In the present invention, it is preferable that data set is the sequence of the image with rectangular shape.
In the present invention, it is preferable that the image that data set is made of 3 components.
In the present invention, it is preferable that the image sequence that data set is made of 3 components.
In the present invention, it is preferable that the video that data set is made of 3 components.
In the present invention, it is preferable that the image that data set is made of R component, G components, B component.
In the present invention, it is preferable that the video that data set is made of R component, G components, B component.
In the present invention, it is preferable that the image that data set is made of Y luminance components, U chromatic components, V chromatic components.
In the present invention, it is preferable that the video that data set is made of Y luminance components, U chromatic components, V chromatic components.
In the present invention, it is preferable that two kinds of sample formats are 4:4:4 sample formats and 4:2:0 sample format.
In the present invention, it is preferable that two kinds of sample formats are 4:4:4 sample formats and 4:2:2 sample formats.
In the present invention, it is preferable that two kinds of sample formats are 4:2:0 sample format and 4:2:2 sample formats.
In the present invention, it is preferable that in a variety of sample formats one is main sample formats, and other sample formats are then institutes
It states main sample format and passes through the sample format that down-sampling operates.
In the present invention, it is preferable that a kind of versions of data of the sample format generated in encoding and decoding turns by sample format
Change the versions of data that operation is converted to other sample formats.
In the present invention, it is preferable that sample format conversion operation include re-sampling operations and/or up-sampling operation and/or under
Sampling operation.
The coding method of the present invention or the most basic peculiar technical characteristic of device be according to the characteristic of a present encoding block from
It is adaptively encoded, is generated at least containing sample format using a pair present encoding block of scheduled a variety of sample formats
The compressed data code stream of the other information needed when the information of identification code and its corresponding decoding.Fig. 1 is the coding staff of the present invention
One schematic diagram of method or device.Preferably, it is encoded using one-to-one a encoding block of two kinds of sample formats.Preferably,
Data set and its element are made of 3 components.Preferably, data set is the image for having rectangular shape.Preferably, data set is
The sequence of image with rectangular shape.Preferably, the image that data set is made of 3 components.Preferably, data set be by
The image sequence of 3 components composition.Preferably, the video that data set is made of 3 components.Preferably, data set is by R points
The image of amount, G components, B component composition.Preferably, the video that data set is made of R component, G components, B component.Preferably,
The image that data set is made of Y luminance components, U chromatic components, V chromatic components.Preferably, data set be by Y luminance components,
The video of U chromatic components, V chromatic components composition.Preferably, two kinds of sample formats are 4:4:4 sample formats and 4:2:0 sampling lattice
Formula.Preferably, two kinds of sample formats are 4:4:4 sample formats and 4:2:2 sample formats.Preferably, two kinds of sample formats are 4:
2:0 sample format and 4:2:2 sample formats.Preferably, in a variety of sample formats one is main sample formats, and other sample
Format is then the sample format that the main sample format passes through that down-sampling operates.Preferably, the one kind generated in coding
The versions of data of sample format is converted to the versions of data of other sample formats by sample format conversion operation.Preferably, it adopts
Sample format conversion operation includes re-sampling operations and/or up-sampling operation and/or down-sampling operation.
The coding/decoding method of the present invention or the most basic peculiar technical characteristic of device are parsing compressed data code streams, obtain sampling lattice
The information of formula is carried out according to the information of the sample format using one-to-one current decoding block of scheduled a variety of sample formats
Decoding.Fig. 2 is the coding/decoding method of the present invention or a schematic diagram of device.Preferably, using the one-to-one of two kinds of sample formats
A decoding block is decoded.Preferably, data set and its element are made of 3 components.Preferably, data set is with rectangle shape
The image of shape.Preferably, data set is the sequence of the image with rectangular shape.Preferably, data set is made of 3 components
Image.Preferably, the image sequence that data set is made of 3 components.Preferably, data set is made of 3 components
Video.Preferably, the image that data set is made of R component, G components, B component.Preferably, data set is divided by R component, G
The video of amount, B component composition.Preferably, the image that data set is made of Y luminance components, U chromatic components, V chromatic components.
Preferably, the video that data set is made of Y luminance components, U chromatic components, V chromatic components.Preferably, two kinds of sample formats
It is 4:4:4 sample formats and 4:2:0 sample format.Preferably, two kinds of sample formats are 4:4:4 sample formats and 4:2:2 samplings
Format.Preferably, two kinds of sample formats are 4:2:0 sample format and 4:2:2 sample formats.Preferably, in a variety of sample formats
One is main sample format, and other sample formats are then the sampling lattice that the main sample format passes through that down-sampling operates
Formula.Preferably, a kind of versions of data of the sample format generated in decoding is converted to other by sample format conversion operation
The versions of data of sample format.Preferably, sample format conversion operation include re-sampling operations and/or up-sampling operation and/or
Down-sampling operates.
According to an aspect of the invention, there is provided a kind of coding method compressed to data or device, have included at least
The step of at following function and operating or module:
Encoding block of a kind of sample format pair among the scheduled a variety of sample formats of dynamic select encodes, and generates at least
The compressed data code stream of information and its syntactic element containing sample format.
According to another aspect of the present invention, a kind of coding/decoding method or device compressed to data is additionally provided, is at least wrapped
Include the step of completing following function and operation or module:
Compressed data code stream is parsed, the information of sample format is obtained, according to the information of the sample format using scheduled a variety of
Decoding block of a kind of sample format pair among sample format is decoded.
The present invention is suitable for carrying out data the coding and decoding of lossy compression, and present invention is equally applicable to data progress is lossless
The coding and decoding of compression.The present invention is suitable for the coding and decoding of one-dimensional data such as string data or byte string data, this
Invention is applied equally to two dimension or the coding and decoding of data above such as image or video data.
In the present invention, data include one or a combination set of data of following classes
1)One-dimensional data;
2)2-D data;
3)Multidimensional data;
4)Image;
5)The sequence of image;
6)Video;
7)Audio;
8)File;
9)Byte;
10)Bit;
11)Pixel.
It is the situation of image, the sequence of image, video etc. in data, encoding block or decoding block are the one of image in the present invention
A coding region or a decoding region, including following scenario described:The subgraph of image, maximum coding unit LCU, is compiled macro block
Code tree unit CTU, the subregion of coding unit CU, CU, predicting unit PU, converter unit TU.
In the present invention, the sample format is one of following sample format:
4:4:4 sample formats;
Or
4:2:2 sample formats;
Or
4:2:0 sample format.
In the present invention, encoding and decoding, the encoding and decoding are carried out using one-to-one a encoding and decoding block of scheduled a variety of code encoding/decoding modes
Mode includes:
1)Intra prediction encoding/decoding mode;
2)Interframe prediction coding and decoding pattern;
3)Encoding/decoding mode is predicted in String matching also referred to as string prediction or general String matching or general string;
4)Dictionary encoding/decoding mode;
5)Palette encoding/decoding mode;
6)Intra block matching is also referred to as intra block prediction or intra block replicates encoding/decoding mode;
7)Block- matching is also referred to as block prediction or block replicates encoding/decoding mode
8)One subpattern of above each pattern.
Illustrate the technical characteristic of the present invention above by several specific specific examples.Those skilled in the art can be by this specification
Revealed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, and the various details in this specification can also be based on different viewpoints and application, without departing substantially from this
Various modifications or alterations are carried out under the spirit of invention.
It is the more implementation details or variant of the present invention below.
Implementation or variant example 1
In the coding method or device or coding/decoding method or device, a variety of sample formats are one of following states:
Two kinds of sample formats;
Or
Three kinds of sample formats;
Or
Four kinds of sample formats.
Implementation or variant example 2
In the coding method or device or coding/decoding method or device, the data are one of data of following classes.
The data being made of 3 components;
Or
Image with rectangular shape;
Or
The sequence of image with rectangular shape;
Or
The image being made of 3 components;
Or
The image sequence being made of 3 components;
Or
The video being made of 3 components;
Or
The image being made of R component, G components, B component;
Or
The image sequence being made of R component, G components, B component;
Or
The video being made of R component, G components, B component;
Or
The image being made of Y luminance components, U chromatic components, V chromatic components;
Or
The image sequence being made of Y luminance components, U chromatic components, V chromatic components;
Or
The video being made of Y luminance components, U chromatic components, V chromatic components;
Or
One encoding and decoding block of the above type data;
Or
The variant of the above type data includes the variant data by one or a combination set of following operation:By the prediction of prediction
Residual error, the transformation numeric field data by transformation, the differential data by calculus of differences, the quantized data by quantization, by inverse
The data of change, the data by block-eliminating effect filtering, the data by sample value migration, are passed through at the data by inverse transformation
The data of adaptive correction filtering.
Implementation or variant example 3
In the coding method or device or coding/decoding method or device, the image that the data are made of 3 components is described
A variety of sample formats are two kinds of sample formats, and described two sample formats are one of following states:
4:4:4 sample formats and 4:2:0 sample format;
Or
4:4:4 sample formats and 4:2:2 sample formats;
Or
4:2:0 sample format and 4:2:2 sample formats.
Implementation or variant example 4
In the coding method or device or coding/decoding method or device, in a variety of sample formats one is main sampling lattice
Formula, and other sample formats are then the sample formats that the main sample format passes through that down-sampling operates.
Implementation or variant example 5
In the coding method or device or coding/decoding method or device, a kind of data of the sample format generated in encoding and decoding
Version is converted to the versions of data of other sample formats by sample format conversion operation.
Implementation or variant example 6
In coding method or device or coding/decoding method or device described in implementation or variant example 5, the sample format conversion operation
Including carrying out re-sampling operations and/or up-sampling operation and/or down-sampling operation to data or its component.
Implementation or variant example 7
In the coding method or device or coding/decoding method or device, the data are prediction residuals, are carried out to prediction residual
Sample format conversion operation, the sample format conversion operation include carrying out following operation to chromatic component:
Re-sampling operations
And/or
Up-sampling operation
And/or
Down-sampling operates
And/or
Down-sampling operation is carried out to original predictive residual error
And/or
Up-sampling operation is carried out to reconstruct prediction residual.
Implementation or variant example 8
In the coding method or device or coding/decoding method or device:
Using scheduled a variety of(Two kinds or more)One-to-one a encoding and decoding block of code encoding/decoding mode carries out encoding and decoding;
It is scheduled several for using(It is one or more of)Code encoding/decoding mode carries out the encoding and decoding block of encoding and decoding, and use is scheduled
One group(Containing two kinds or more)Encoding and decoding block of a kind of sample format pair among sample format carries out encoding and decoding;
For using remaining code encoding/decoding mode to carry out the encoding and decoding block of encoding and decoding, then
Encoding and decoding are carried out to each encoding and decoding block using a kind of scheduled sample format,
Or
Using scheduled second group(Containing two kinds or more)One-to-one a encoding and decoding block of sample format carries out encoding and decoding,
Or
Encoding and decoding are carried out using one-to-one a encoding and decoding block of a variety of sample formats according to other scheduled rules.
Implementation or variant example 9
In the coding method or device or coding/decoding method or device:
At least intra prediction encoding/decoding mode is used to carry out encoding and decoding to encoding and decoding block;
For using intra prediction encoding/decoding mode to carry out the encoding and decoding block of encoding and decoding, among scheduled two kinds of sample formats
A kind of encoding and decoding block of sample format pair carry out encoding and decoding.
Implementation or variant example 10
In the coding method or device or coding/decoding method or device:
At least intra prediction encoding/decoding mode is used to carry out encoding and decoding to encoding and decoding block,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using the encoding and decoding block of intra prediction encoding/decoding mode using any or which kind sample format in a CTU or CU;
And/or
At least interframe prediction coding and decoding pattern is used to carry out encoding and decoding to encoding and decoding block,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using the encoding and decoding block of interframe prediction coding and decoding pattern using any or which kind sample format in a CTU or CU;
And/or
Encoding and decoding at least are carried out to encoding and decoding block using string prediction encoding/decoding mode or the subpattern of one kind,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using string prediction encoding/decoding mode or the encoding and decoding block of one kind subpattern using any or which kind in a CTU or CU
Sample format;
The direct sample format identification code is by one or more of compressed data code stream bit string(Binary symbols string)Institute's group
At.The indirect sample format identification code is other syntactic elements from other codec parameters and/or compressed data code stream
Derived sample format identification code or scheduled identification code default value.The sample format identification code directly mixed indirectly is portion
Divide direct(It is made of one or more of compressed data code stream bit string)Part is indirectly(I.e. from other codec parameters
And/or other syntactic elements export or predetermined default of compressed data code stream)Mixed sample format identification code.
Implementation or variant example 11
In the coding method or device or coding/decoding method or device, at least use intra prediction encoding/decoding mode to encoding and decoding
Block carries out encoding and decoding, the parameter or syntactic element for having following italic to indicate in sequence parameter set or sequence head, for indicating
The sample format of use:
Chroma format chroma_format
If the value of chroma format indicates that the main sample format of sequence is 4:4:4 sample formats or 4:2:2 sample formats, then
{
Intraframe coding sample format 420 indicates intra_chroma_format_420_flag
If the value that intraframe coding sample format 420 indicates is 1,
{
In sequence 4 are all used using the encoding and decoding block of intra prediction encoding/decoding mode:2:0 sample format
}
Otherwise
{
Intraframe coding sample format adaptively indicates intra_chroma_format_adaptive_flag
If the value that intraframe coding sample format adaptively indicates is 0,
{
The main sampling lattice of sequence are all used in sequence using the encoding and decoding block of intra prediction encoding/decoding mode
Formula
}
Otherwise
{
Sample format is by image used by using the encoding and decoding block of intra prediction encoding/decoding mode in sequence
The value of image intraframe coding sample format mark in parameter set or image head provides
}
}
}。
Implementation or variant example 12
In coding method or device or coding/decoding method or device described in implementation or variant example 11, in picture parameter set or image head
In have the parameter or syntactic element that following italic indicates, for indicating used sample format:
Image intraframe coding sample format mark intra_chroma_format_flag
If the value of image intraframe coding sample format mark is 1,
{
In image 4 are all used using the encoding and decoding block of intra prediction encoding/decoding mode:2:0 sample format
}
Otherwise
{
The main sample format of sequence is all used in image using the encoding and decoding block of intra prediction encoding/decoding mode
}。
Implementation or variant example 13
In the coding method or device or coding/decoding method or device, the data have rectangular shape and 3 components
The sequence of image or image, a variety of sample formats are two kinds of sample formats, and described two sample formats are 4:4:4 sampling lattice
Formula and 4:2:0 sample format, 4:2:The D components D420 of the versions of data of 0 sample format={ D420 [i] [j]:I=0~M-
1, j=0~N-1 } and E components E420={ E420 [i] [j]:I=0~M-1, j=0~N-1 }, pass through on following respectively
Sampling operation is converted to 4:4:The D components D444 of the versions of data of 4 sample formats={ D444 [i] [j]:I=0~2M-1, j
=0~2N-1 } and E components E444={ E444 [i] [j]:I=0~2M-1, j=0~2N-1 }:
D444[2i][2j] = D420[i][j]
D444[2i+1][2j] = D420[i][j]
D444[2i][2j+1] = D420[i][j]
D444[2i+1][2j+1] = D420[i][j]
E444[2i][2j] = E420[i][j]
E444[2i+1][2j] = E420[i][j]
E444[2i][2j+1] = E420[i][j]
E444[2i+1][2j+1] = E420[i][j]
Wherein, i=0~M-1, j=0~N-1; 4:4:The D components D444 of the versions of data of 4 sample formats={ D444 [i]
[j]:I=0~2M-1, j=0~2N-1 } and E components E444={ E444 [i] [j]:I=0~2M-1, j=0~2N-
1 }, 4 are converted to by the operation of following down-sampling respectively:2:The D components D420 of the versions of data of 0 sample format={ D420 [i]
[j]:I=0~M-1, j=0~N-1 } and E components E420={ E420 [i] [j]:I=0~M-1, j=0~N-1 }:
D420[i][j] = (D444[2i][2j] + D444[2i+1][2j] + D444[2i][2j+1] + D444[2i+1]
[2j+1] + R) >> 2
E420[i][j] = (E444[2i][2j] + E444[2i+1][2j] + E444[2i][2j+1] + E444[2i+1]
[2j+1] + R) >> 2
Wherein, i=0~M-1, j=0~N-1, R are equal to 0(Intercept method)Or 2(Rounding-off method).
Implementation or variant example 14
In the coding method or device or coding/decoding method or device, in one of following place of the compressed data code stream or
Several places are in the presence of the flag bit for indicating to allow that a variety of sample formats is used to carry out encoding and decoding:
1)Sequence parameter set;It is typically a syntactic element for directly existing or implying derivation for being sequence parameter set;
2)Picture parameter set;Typically directly there is or imply the syntactic element derived in one of picture parameter set;
3)Sequence head;Typically directly there is or imply the syntactic element derived in one of sequence head;
4)Slice header;Typically directly there is or imply the syntactic element derived in one of slice header;
5)Image head;Typically directly there is or imply the syntactic element derived in one of image head;
6)CTU heads;One of typically CTU directly exists or the implicit syntactic element derived;
7)CU heads;One of typically CU directly exists or the implicit syntactic element derived;
8)Encoding and decoding build;Typically directly there is or imply the syntactic element derived in one of encoding and decoding build.
Implementation or variant example 15
In the coding method or device or coding/decoding method or device, in one of following place of the compressed data code stream or
Several places allow in the presence of expression using using 4:4:The flag bit of the encoding and decoding block of 4 sample formats:
1)Sequence parameter set;It is typically a syntactic element for directly existing or implying derivation for being sequence parameter set;
2)Picture parameter set;Typically directly there is or imply the syntactic element derived in one of picture parameter set;
3)Sequence head;Typically directly there is or imply the syntactic element derived in one of sequence head;
4)Slice header;Typically directly there is or imply the syntactic element derived in one of slice header;
5)Image head;Typically directly there is or imply the syntactic element derived in one of image head.
Implementation or variant example 16
In the coding method or device or coding/decoding method or device, scheduled a variety of sample formats are respectively with multiple pre-
Fixed value indicates, a kind of sample format corresponds to scheduled value k, and each encoding and decoding block is in the compressed data code
All there are one the directly or indirectly or directly sample format identification code that mixes indirectly in stream,
If the sample format identification code is equal to k,
{
Encoding and decoding are carried out to the encoding and decoding block using a kind of sample format corresponding with k
}
The direct sample format identification code is by one or more of compressed data code stream bit string(Binary symbols string)Institute's group
At.The indirect sample format identification code is other syntactic elements from other codec parameters and/or compressed data code stream
Derived sample format identification code or scheduled identification code default value.The sample format identification code directly mixed indirectly is portion
Divide direct(It is made of one or more of compressed data code stream bit string)Part is indirectly(I.e. from other codec parameters
And/or other syntactic elements export or predetermined default of compressed data code stream)Mixed sample format identification code.
Implementation or variant example 17
In the coding method or device or coding/decoding method or device, for indicating that the sample format of the encoding and decoding block is adopted
Sample format identifier syntactic element is present in following form in the compressed data code stream of the encoding and decoding block:
Encoding and decoding block header syntactic element, sample format identification code syntactic element, more encoding and decoding block header grammers member
Element, encoding and decoding block data syntax element;
Or
Encoding and decoding block header syntactic element, fractional-sample format identifier syntactic element, more encoding and decoding block header languages
Method element, part encoding and decoding block data syntax element, another part sample format identification code syntactic element, another part encoding and decoding
Block number is according to syntactic element;
Wherein, when sample format identification code takes a value, using that sample format corresponding with described value to the encoding and decoding
Block carries out encoding and decoding.
Claims (10)
1. a kind of coding method compressed to data or device, which is characterized in that include at least and complete following function and behaviour
The step of making or module:
Encoding block of a kind of sample format pair among the scheduled a variety of sample formats of dynamic select encodes, and generates at least
The compressed data code stream of information and its syntactic element containing sample format.
2. a kind of coding/decoding method or device compressed to data, which is characterized in that include at least and complete following function and behaviour
The step of making or module:
Compressed data code stream is parsed, the information of sample format is obtained, according to the information of the sample format using scheduled a variety of
Decoding block of a kind of sample format pair among sample format is decoded.
3. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that:The image or image sequence or video that the data are made of 3 components;Use scheduled a variety of encoding and decoding sides
One-to-one a encoding and decoding block of formula carries out encoding and decoding, and the code encoding/decoding mode includes:
Intra prediction encoding/decoding mode;
Interframe prediction coding and decoding pattern;
Encoding/decoding mode is predicted in String matching also referred to as string prediction or general String matching or general string;
Dictionary encoding/decoding mode;
Palette encoding/decoding mode;
Intra block matching is also referred to as intra block prediction or intra block replicates encoding/decoding mode;
Block- matching is also referred to as block prediction or block replicates encoding/decoding mode
One subpattern of above each pattern.
4. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
Be characterized in that in a variety of sample formats one is main sample formats, and other sample formats are then the main sample formats
The sample format operated by down-sampling.
5. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that, the data are prediction residuals, and sample format conversion operation, the sample format conversion behaviour are carried out to prediction residual
Work includes carrying out following operation to chromatic component:
Re-sampling operations
And/or
Up-sampling operation
And/or
Down-sampling operates
And/or
Down-sampling operation is carried out to original predictive residual error
And/or
Up-sampling operation is carried out to reconstruct prediction residual.
6. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that:
Using scheduled a variety of(Two kinds or more)One-to-one a encoding and decoding block of code encoding/decoding mode carries out encoding and decoding;
It is scheduled several for using(It is one or more of)Code encoding/decoding mode carries out the encoding and decoding block of encoding and decoding, and use is scheduled
One group(Containing two kinds or more)Encoding and decoding block of a kind of sample format pair among sample format carries out encoding and decoding;
For using remaining code encoding/decoding mode to carry out the encoding and decoding block of encoding and decoding, then
Encoding and decoding are carried out to each encoding and decoding block using a kind of scheduled sample format,
Or
Using scheduled second group(Containing two kinds or more)One-to-one a encoding and decoding block of sample format carries out encoding and decoding,
Or
Encoding and decoding are carried out using one-to-one a encoding and decoding block of a variety of sample formats according to other scheduled rules.
7. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that:
At least intra prediction encoding/decoding mode is used to carry out encoding and decoding to encoding and decoding block;
For using intra prediction encoding/decoding mode to carry out the encoding and decoding block of encoding and decoding, among scheduled two kinds of sample formats
A kind of encoding and decoding block of sample format pair carry out encoding and decoding.
8. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that:
At least intra prediction encoding/decoding mode is used to carry out encoding and decoding to encoding and decoding block,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using the encoding and decoding block of intra prediction encoding/decoding mode using any or which kind sample format in a CTU or CU;
And/or
At least interframe prediction coding and decoding pattern is used to carry out encoding and decoding to encoding and decoding block,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using the encoding and decoding block of interframe prediction coding and decoding pattern using any or which kind sample format in a CTU or CU;
And/or
Encoding and decoding at least are carried out to encoding and decoding block using string prediction encoding/decoding mode or the subpattern of one kind,
In sequence parameter set or sequence head or picture parameter set or image head or slice header or CTU or CU, there are one
The sample format identification code directly or indirectly or directly mixed indirectly, indicates a sequence or a frame image or a band or one
Using string prediction encoding/decoding mode or the encoding and decoding block of one kind subpattern using any or which kind in a CTU or CU
Sample format;
The direct sample format identification code is by one or more of compressed data code stream bit string(Binary symbols string)Institute's group
At the indirect sample format identification code is other syntactic elements from other codec parameters and/or compressed data code stream
Derived sample format identification code or scheduled identification code default value, the sample format identification code directly mixed indirectly is portion
Divide direct(It is made of one or more of compressed data code stream bit string)Part is indirectly(I.e. from other codec parameters
And/or other syntactic elements export or predetermined default of compressed data code stream)Mixed sample format identification code.
9. coding method according to claim 1 or device or coding/decoding method according to claim 2 or device,
It is characterized in that, at least intra prediction encoding/decoding mode is used to carry out encoding and decoding to encoding and decoding block, in sequence parameter set or sequence head
In have the parameter or syntactic element that following italic indicates, for indicating used sample format:
Chroma format chroma_format
If the value of chroma format indicates that the main sample format of sequence is 4:4:4 sample formats or 4:2:2 sample formats, then
{
Intraframe coding sample format 420 indicates intra_chroma_format_420_flag
If the value that intraframe coding sample format 420 indicates is 1,
{
In sequence 4 are all used using the encoding and decoding block of intra prediction encoding/decoding mode:2:0 sample format
}
Otherwise
{
Intraframe coding sample format adaptively indicates intra_chroma_format_adaptive_flag
If the value that intraframe coding sample format adaptively indicates is 0,
{
The main sampling lattice of sequence are all used in sequence using the encoding and decoding block of intra prediction encoding/decoding mode
Formula
}
Otherwise
{
Sample format is joined by image used by using the encoding and decoding block of intra prediction encoding/decoding mode in sequence
The value of image intraframe coding sample format mark in manifold or image head provides
}
}
}。
10. coding method according to claim 9 or device or coding/decoding method or device, which is characterized in that in image
There are the parameter or syntactic element that following italic indicates in parameter set or image head, for indicating used sample format:
Image intraframe coding sample format mark intra_chroma_format_flag
If the value of image intraframe coding sample format mark is 1,
{
In image 4 are all used using the encoding and decoding block of intra prediction encoding/decoding mode:2:0 sample format
}
Otherwise
{
The main sample format of sequence is all used in image using the encoding and decoding block of intra prediction encoding/decoding mode
}。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311360929.0A CN117241032A (en) | 2017-03-12 | 2017-03-12 | Image adopting multiple sampling formats, sequence thereof, video compression method and device |
CN201710143888.8A CN108574845A (en) | 2017-03-12 | 2017-03-12 | Dynamic uses the data compression method and device of a variety of sample formats |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710143888.8A CN108574845A (en) | 2017-03-12 | 2017-03-12 | Dynamic uses the data compression method and device of a variety of sample formats |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311360929.0A Division CN117241032A (en) | 2017-03-12 | 2017-03-12 | Image adopting multiple sampling formats, sequence thereof, video compression method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108574845A true CN108574845A (en) | 2018-09-25 |
Family
ID=63578009
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710143888.8A Pending CN108574845A (en) | 2017-03-12 | 2017-03-12 | Dynamic uses the data compression method and device of a variety of sample formats |
CN202311360929.0A Pending CN117241032A (en) | 2017-03-12 | 2017-03-12 | Image adopting multiple sampling formats, sequence thereof, video compression method and device |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311360929.0A Pending CN117241032A (en) | 2017-03-12 | 2017-03-12 | Image adopting multiple sampling formats, sequence thereof, video compression method and device |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN108574845A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385555A (en) * | 2018-12-28 | 2020-07-07 | 上海天荷电子信息有限公司 | Data compression method and device for inter-component prediction of original and/or residual data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1551184A2 (en) * | 2003-12-27 | 2005-07-06 | Samsung Electronics Co., Ltd. | Residue image downsampling and encoding method |
CN101589625A (en) * | 2006-10-25 | 2009-11-25 | 弗劳恩霍夫应用研究促进协会 | Fraunhofer ges forschung |
CN105264888A (en) * | 2014-03-04 | 2016-01-20 | 微软技术许可有限责任公司 | Encoding strategies for adaptive switching of color spaces, color sampling rates and/or bit depths |
CN105704491A (en) * | 2014-11-28 | 2016-06-22 | 同济大学 | Image encoding method, decoding method, encoding device and decoding device |
-
2017
- 2017-03-12 CN CN201710143888.8A patent/CN108574845A/en active Pending
- 2017-03-12 CN CN202311360929.0A patent/CN117241032A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1551184A2 (en) * | 2003-12-27 | 2005-07-06 | Samsung Electronics Co., Ltd. | Residue image downsampling and encoding method |
CN101589625A (en) * | 2006-10-25 | 2009-11-25 | 弗劳恩霍夫应用研究促进协会 | Fraunhofer ges forschung |
CN105264888A (en) * | 2014-03-04 | 2016-01-20 | 微软技术许可有限责任公司 | Encoding strategies for adaptive switching of color spaces, color sampling rates and/or bit depths |
CN105704491A (en) * | 2014-11-28 | 2016-06-22 | 同济大学 | Image encoding method, decoding method, encoding device and decoding device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385555A (en) * | 2018-12-28 | 2020-07-07 | 上海天荷电子信息有限公司 | Data compression method and device for inter-component prediction of original and/or residual data |
Also Published As
Publication number | Publication date |
---|---|
CN117241032A (en) | 2023-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104041035B (en) | Lossless coding and coherent signal method for expressing for composite video | |
CN101867819B (en) | Image encoding method and image decoding method | |
Lin et al. | Mixed chroma sampling-rate high efficiency video coding for full-chroma screen content | |
CN103458243B (en) | Video encoding/decoding method and equipment | |
EP3416389B1 (en) | Encoding and decoding method and device for data compression | |
CN106416257B (en) | Palette size transmits the method transmitted with conditional palette exception mark | |
CN102378991B (en) | Compressed domain system and method for compression gains in encoded data | |
CN107483942A (en) | The decoding of video data compression code stream, the coding method of video data and device | |
CN107950028A (en) | Improved color remaps information Supplemental Enhancement Information Message Processing | |
CN105721881A (en) | Methods and apparatus for using syntax for predictive profile in MPEG-4AVC high level coding | |
CN110602491A (en) | Intra-frame chroma prediction method, device and equipment and video coding and decoding system | |
KR20130023299A (en) | Method and apparatus for encoding and decoding image | |
CN101160972B (en) | Luma and chroma decoding using a common predictor | |
WO2023020560A1 (en) | Video coding and decoding method and apparatus, electronic device and storage medium | |
CN109831668A (en) | Data compression method and apparatus, data encoding/decoding method and device | |
WO2021004153A1 (en) | Image prediction method, coder, decoder, and storage medium | |
CN106973295A (en) | Method for video coding/device and video encoding/decoding method/device | |
CN108702520A (en) | Device and method for the entropy coding based on vector for showing stream compression | |
CN104935945B (en) | The image of extended reference pixel sample value collection encodes or coding/decoding method | |
CN108574845A (en) | Dynamic uses the data compression method and device of a variety of sample formats | |
CN108989819B (en) | Data compression method and device adopting respective corresponding color spaces for modes | |
CN113301339A (en) | Data encoding and decoding method and device | |
CN105007483B (en) | A kind of screen content coding-decoding method compatible with H264 standards | |
CN103237225A (en) | Method for correcting video encoding and decoding errors through utilizing luma and chroma (YUV) and red, green and blue (RGB) space union | |
CN110312136A (en) | A kind of coding and decoding methods of pair of multi-component data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |