CN107483942A - The decoding of video data compression code stream, the coding method of video data and device - Google Patents
The decoding of video data compression code stream, the coding method of video data and device Download PDFInfo
- Publication number
- CN107483942A CN107483942A CN201710424248.4A CN201710424248A CN107483942A CN 107483942 A CN107483942 A CN 107483942A CN 201710424248 A CN201710424248 A CN 201710424248A CN 107483942 A CN107483942 A CN 107483942A
- Authority
- CN
- China
- Prior art keywords
- sample
- decoding
- sample format
- image
- format
- 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
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/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/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/184—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 bits, e.g. of the compressed video stream
-
- 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/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
-
- 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
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention provides a kind of decoding of video data compression code stream, the coding method of video data and device, wherein, the coding/decoding method of video data compression code stream includes:Video data compression code stream is parsed, obtains sample format information and/or decoding process information;According to sample format information and/or decoding process information, among predetermined a variety of sample formats and decoding process, the first sample format and decoding process corresponding with the first sample format are selected;Decoding block is decoded using the first sample format and the first sample format corresponding decoding process.By the present invention, solve in correlation technique using it is single decoded using form and decoding process when the too low technical problem of efficiency.
Description
Technical field
The present invention relates to data processing field, in particular to a kind of decoding of video data compression code stream, video counts
According to coding method and device.
Background technology
As human society enters big data, cloud computing, mobile computing, cloud-mobile computing, ultra high-definition (4K) and special superelevation
(8K) video image resolution ratio, 4G/5G communications, the epoch of virtual reality clearly, to various data, including big data, view data,
Video data, carrying out the data compression of superelevation compression ratio and very high-quality turns into essential technology.
Data set be by data element (such as:Byte, bit, pixel) composition set.A setting is arranged in one
Shape and with certain element number (i.e. with certain sample format) data set (such as:One file, a two field picture, one
Video sequence) when carrying out coding (and corresponding decoding) of data compression, generally this data set be divided into it is some have it is pre-
Determine the subset of the block of shapes and sizes (i.e. element number), referred to as encoding block (from the angle i.e. decoding block of decoding, is referred to as
Encoding and decoding block), in units of encoding and decoding block, one piece one piece is encoded or is decoded.At any one time, the coding encoded
Block is referred to as present encoding block.At any one time, the decoding block decoded is referred to as current decoding block.Present encoding block is current
Decoding block is referred to as current codec block or referred to as current block.Data element (referred to as element) in encoding or decode
Referred to as current encoded data element or current decoded data element, are referred to as current data element, referred to as currentElement.Element
It is made up of N number of component (usual 1≤N≤5), therefore data set and encoding and decoding block are also all made up of N number of component.A for example, frame figure
The element of picture is that pixel arrangement is in a rectangular shape, has 1920 (width) x 1080 (height) size (resolution ratio), by 3 points
Amount composition:G (green) component, B (blueness) component, R (red) components or Y (brightness) component, U (Cb colourities) component, V (Cr colors
Degree) component.
In the related art, as coded object data set and encoding and decoding block all only have a kind of sample format of fixation and
Size.For example, for the image containing figure and word caused by computer, generally use is a kind of to be referred to as 4:4:4 sample format,
It is exactly that 3 components of data set all have same sample rate and size (i.e. the number of component sample value).Absorbed for video camera
Natural image and video, generally use is a kind of to be referred to as 4:2:0 sample format, exactly with rectangular shape and 3 components
The sample rate and size of 2 components (D components and E components) of data set (such as image or video) are (F points of another component respectively
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 ×
2N, i.e. data set F components are F={ F [i] [j]:I=0~2M-1, j=0~2N-1 }, then the resolution of D components and E components
Rate 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 referred to as 4:2:2 sample format, it is exactly with rectangular shape
Sample rate and size with 2 components (D components and E components) of the data set (such as image or video) of 3 components are another respectively
The half of one-component (F components).In this situation, in the horizontal direction of data set (such as image or video), a D divides
Amount 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 F
The resolution ratio of component 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 D
The resolution ratio of component and E components 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 }.Using YUV color formats image and
In video, F, D, E component described above is Y, U, V component respectively.In the image and video using rgb color form, the above
F, D, E component is G, B, R component respectively.In the prior art, even in some situations, the data set as coded object
There are a variety of sample formats and size with encoding and decoding block, when being encoded to the coded object of these different sample formats and size,
Using same coded system, or different coded systems, always to single sample format and the coded object of size
Encoded.Here, different sample formats refers to that at least one component of data set and/or encoding and decoding block has different adopt
Sample rate and size (i.e. the number of component sample value).Different sample rates and size are operated mutually by up-sampling operation or down-sampling
Conversion.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,
Different sample formats i.e. data set and/or at least one component of encoding and decoding block have different sample value numbers.
For the data set formed by the content mix of multifrequency nature, for example, as caused by computer figure and word with taking the photograph
The screen content image and video, the image and video of virtual reality that the natural image and video mix of camera intake form, it is single
One sample format and size, substantially single coded system, significantly impact the raising of efficiency of data compression.
For above mentioned problem present in correlation technique, at present it is not yet found that the solution of effect.
The content of the invention
The embodiments of the invention provide a kind of decoding of video data compression code stream, the coding method of video data and dress
Put, with least solve in correlation technique using it is single decoded using form and decoding process when the too low technology of efficiency ask
Topic.
According to one embodiment of present invention, there is provided a kind of coding/decoding method of video data compression code stream, in addition to:Solution
Video data compression code stream is analysed, obtains sample format information and/or decoding process information;According to the sample format information and/
Or decoding process information, among predetermined a variety of sample formats and decoding process, select the first sample format and with described the
The corresponding decoding process of one sample format;Using first sample format and the corresponding decoding process of the first sample format
Decoding block is decoded.
Alternatively, the video data compression code stream includes the data compression code stream of at least one of information:One dimension
According to, 2-D data, more than the multidimensional data of two dimension, image, the sequence of image, video, audio, file, byte, bit, pixel,
The data being made up of three components, there is the image of rectangular shape, the sequence with the image of rectangular shape, by three component groups
Into image, the image sequence being made up of three components, the video being made up of three components, by R component, G components, B component group
Into image, the image sequence being made up of R component, G components, B component, the video being made up of R component, G components, B component, by one
The image of individual luminance component and two chromatic component compositions, the image sequence being made up of two chromatic components of a luminance component,
The video being made up of two chromatic components of a luminance component, the encoding block of data.
Alternatively, the decoding block is the decoding region of image, wherein, the decoding region includes at least one of:
The subgraph of image, macro block, maximum coding unit LCU, code tree unit CTU, coding unit CU, CU subregion, prediction are single
First PU, converter unit TU.
Alternatively, a variety of sample formats include main sample format and other sample formats, wherein, other described samplings
Form is that the main sample format passes through the sample format that sampling operation obtains.
Alternatively, the video data compression code stream has the image of rectangular shape and three components or the sequence of image
Data compression code stream.
Alternatively, a variety of sample formats are 4:4:4 sample formats and 4:2:0 sample format;Or described a variety of adopt
Sample form is 4:4:4 sample formats and 4:2:2 sample formats;Or a variety of sample formats are 4:2:2 sample formats and 4:
2:0 sample format.
Alternatively, with described 4:2:The corresponding decoding process of 0 sample format includes:Produce 4:2:The data of 0 sample format
Version, to described 4:2:The versions of data of 0 sample format is converted to 4 by up-sampling operation:4:4 or 4:2:2 sample formats
Versions of data, wherein, produce described 4:2:The versions of data method of 0 sample format includes:Work as the neighbouring of decoding block according to described
The operation that pixel carries out infra-frame prediction produces 4:2:The versions of data of 0 sample format, and/or, according to the neighborhood graph of decoding image
As the operation for carrying out inter prediction produces 4:2:The versions of data of 0 sample format;With described 4:4:4 or 4:2:2 sample format phases
The decoding process answered includes:4 are produced according to predicted operation:4:4 or 4:2:The versions of data of 2 sample formats, to described 4:4:4 or
4:2:The versions of data of 2 sample formats is converted to 4 by down-sampling operation:2:The versions of data of 0 sample format, wherein, it is described
Predicted operation includes string predicted operation.
Alternatively, the decoding process includes at least one of:Carried out according to the neighborhood pixels of the decoding block in frame
Prediction;Inter prediction is carried out according to the adjacent image of the decoding image;Frame is carried out according to the adjacent image of the decoding image
Between convert;Scale scaling;General string prediction;Palette decodes;Dictionary decodes;Entropy decoding.
Alternatively, in addition to:The video data compression code stream is parsed, the first mark is obtained from the position of one below
Position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, CTU heads, CU heads, build is decoded, wherein, described the
One flag bit, which is used for instruction, to be allowed to be decoded using a variety of sample formats and/or corresponding decoding mode.
Alternatively, in addition to:The video data compression code stream is parsed, is marked from the position acquisition second of at least one of
Will position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, decoding build, wherein, second flag bit
4 are used for indicating to allow to use:4:The decoding block of 4 sample formats and/or corresponding string prediction decoding mode.
Alternatively, in addition to:The video data compression code stream is parsed, is marked from the position acquisition the 3rd of at least one of
Will position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, decoding build, wherein, the 3rd flag bit
4 are used for indicating to allow to use:2:The decoding block of 2 sample formats and/or corresponding string prediction decoding mode.
Alternatively, a kind of sample format and decoding process in the predetermined a variety of sample formats and decoding process are corresponding
In a predetermined value k, from the video data compression code stream, obtained for the decoding block directly or indirectly or directly indirect
The sample format and corresponding decoding mode identification code of mixing.
Alternatively, directly sample format and the corresponding decoding mode identification code are by the video data compression code stream
One or more bit strings formed;The indirect sample format and corresponding decoding mode identification code are to remove the decoding process
Other decoding parametrics and/or the video data compression code stream outside parameter remove grammer corresponding to the decoding process parameter
Sample format derived from other syntactic elements outside element and corresponding decoding mode identification code;It is described directly mix indirectly adopt
Sample form and corresponding decoding mode identification code are that the sample format that part direct part mixes indirectly and corresponding decoding mode identify
Code.
Alternatively, sample format described in the following position acquisition from the video data compression code stream and the corresponding decoding
The identification code of mode:The decoding block header syntactic element, sample format and corresponding decoding mode identification code syntactic element, volume
Outer decoding block header syntactic element, decoding block data syntax element;Or the decoding block header syntactic element, partly adopt
Sample form and corresponding decoding mode identification code syntactic element, extra decoding block header syntactic element, partial decoding of h block number evidence
Syntactic element, another part sample format and corresponding decoding mode identification code syntactic element, another part decoding block data syntax
Element;Wherein, when the value of the identification code of the identification code syntactic element is equal to designated value, represent to use and the designated value pair
The sample format and corresponding decoding mode answered decode to the decoding block.
According to another embodiment of the invention, there is provided a kind of coding method of video data, including:From predetermined more
The first sample format, and selection and the described first sampling lattice among predetermined a variety of coded systems are selected in kind sample format
Coded system corresponding to formula;The encoding block of video data is carried out using the first sample format of selection and the coded system of selection
Coding produces video data compression code stream, wherein, the video data compression stream packet contains:First sample format and/or coding
Mode, syntactic element corresponding with the first sample format and/or coded system.
Alternatively, the video data includes at least one of:One-dimensional data, 2-D data, more than the multidimensional of two dimension
Data, image, the sequence of image, video, audio, file, byte, bit, pixel, the data being made up of three components, have
The image of rectangular shape, there is the sequence of the image of rectangular shape, the image being made up of three components, be made up of three components
Image sequence, the video being made up of three components, the image being made up of R component, G components, B component, divided by R component, G components, B
Measure the image sequence of composition, the video being made up of R component, G components, B component, by a luminance component and two chromatic component groups
Into image, the image sequence being made up of two chromatic components of a luminance component, by two chromatic components of a luminance component
The video of composition, the encoding block of data.
Alternatively, the encoding block is the coding region of image, wherein, the coding region includes at least one of:
The subgraph of image, macro block, maximum coding unit LCU, code tree unit CTU, coding unit CU, CU subregion, prediction are single
First PU, converter unit TU.
Alternatively, a variety of sample formats include main sample format and other sample formats, wherein, other described samplings
Form is that the main sample format passes through the sample format that sampling operation obtains.
Alternatively, the video data is the sequence of the image or image with rectangular shape and three components.
Alternatively, a variety of sample formats are 4:4:4 sample formats and 4:2:0 sample format;Or described a variety of adopt
Sample form is 4:4:4 sample formats and 4:2:2 sample formats;Or a variety of sample formats are 4:2:2 sample formats and 4:
2:0 sample format.
Alternatively, with described 4:2:The corresponding coded system of 0 sample format includes:Produce 4:2:The data of 0 sample format
Version, to described 4:2:The versions of data of 0 sample format is converted to 4 by up-sampling operation:4:4 or 4:2:2 sample formats
Versions of data, wherein, produce described 4:2:The versions of data method of 0 sample format includes:Work as the neighbouring of encoding block according to described
The operation that pixel carries out infra-frame prediction produces 4:2:The versions of data of 0 sample format, and/or, according to described when coded image
The operation that adjacent image carries out inter prediction produces 4:2:The versions of data of 0 sample format;With described 4:4:4 or 4:2:2 samplings
The corresponding coded system of form includes:4 are produced according to predicted operation:4:4 or 4:2:The versions of data of 2 sample formats, to described
4:4:4 or 4:2:The versions of data of 2 sample formats is converted to 4 by down-sampling operation:2:The versions of data of 0 sample format, its
In, the predicted operation includes string predicted operation.
Alternatively, the coded system includes at least one of:Carried out according to the neighborhood pixels of the encoding block in frame
Prediction;Inter prediction is carried out according to the adjacent image of the coded image;Frame is carried out according to the adjacent image of the coded image
Between convert;Quantify;General string prediction;Palette encodes;Dictionary encoding;Hybrid coding Hybrid coding;Entropy code.
Alternatively, in addition to:The first flag bit is included in the one below part of the video data compression code stream:Sequence
Parameter set, picture parameter set, sequence head, slice header, image head, CTU heads, CU heads, build is encoded, wherein, first mark
Position, which is used for instruction, to be allowed to be encoded using a variety of sample formats and/or corresponding encoded mode.
Alternatively, in addition to:The second flag bit is included at least one of part of the video data compression code stream:
Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding build, wherein, second flag bit is used to refer to
Show to allow to use and use 4:4:The encoding block of 4 sample formats and/or corresponding string predictive coding mode.
Alternatively, in addition to:The 3rd flag bit is included at least one of part of the video data compression code stream:
Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding build, wherein, the 3rd flag bit is used to refer to
Show to allow to use and use 4:2:The encoding block of 2 sample formats and/or corresponding string predictive coding mode.
Alternatively, a kind of sample format in predetermined a variety of sample formats and coded system and coded system are corresponding
In a predetermined value k, the sample format directly or indirectly or directly mixed indirectly and corresponding encoded are set for the encoding block
Mode identification code, the coded system identification code is included in the video data compression code stream.
Alternatively, directly sample format and the corresponding encoded mode identification code are by the video data compression code stream
One or more bit strings formed;The indirect sample format and corresponding encoded mode identification code are the volumes except the selection
Its in addition to institute's syntax elements of other coding parameters and/or the video data compression code stream outside code mode parameter
Sample format derived from his syntactic element and corresponding encoded mode identification code;The directly sample format that mixes indirectly and corresponding
Coded system identification code is the sample format that part direct part mixes indirectly and corresponding encoded mode identification code.
Alternatively, the sample format and the identification code of the corresponding coded system are present in described regard using following manner
Frequency is according in compressed bit stream:The encoding block header syntactic element, sample format and corresponding encoded mode identification code grammer member
Plain, extra encoding block header syntactic element, code block data syntactic element;Or the encoding block header syntactic element,
Fractional-sample form and corresponding encoded mode identification code syntactic element, extra encoding block header syntactic element, code segment
Block number encodes block number according to syntactic element, another part sample format and corresponding encoded mode identification code syntactic element, another part
According to syntactic element;Wherein, when the value of the identification code of the identification code syntactic element is equal to designated value, represent to use and the finger
Sample format corresponding to definite value and corresponding encoded mode encode to the encoding block.
According to another embodiment of the invention, there is provided a kind of decoding apparatus of video data compression code stream, including:Solution
Module is analysed, for parsing video data compression code stream, obtains sample format information and/or decoding process information;Selecting module, use
According to the sample format information and/or decoding process information, among predetermined a variety of sample formats and decoding process, choosing
Select the first sample format and decoding process corresponding with first sample format;Decoder module, for being adopted using described first
Sample form and the corresponding decoding process of the first sample format decode to decoding block.
According to another embodiment of the invention, there is provided a kind of coding method of video data, including:Selecting module,
For selecting the first sample format from predetermined a variety of sample formats, and among predetermined a variety of coded systems selection with
Coded system corresponding to first sample format;Coding module, for the first sample format using selection and the volume of selection
Code mode carries out coding to the encoding block of video data and produces video data compression code stream, wherein, the video data compression code
Stream includes:First sample format and/or coded system, syntactic element corresponding with the first sample format and/or coded system.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:
Video data compression code stream is parsed, obtains sample format information and/or decoding process information;
According to the sample format information and/or decoding process information, in predetermined a variety of sample formats and decoding process
Among, select the first sample format and decoding process corresponding with first sample format;
Decoding block is decoded using first sample format and the first sample format corresponding decoding process.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:
The first sample format is selected from predetermined a variety of sample formats, and is selected among predetermined a variety of coded systems
Select coded system corresponding with first sample format;
Coding generation is carried out to the encoding block of video data using the first sample format of selection and the coded system of selection
Video data compression code stream, wherein, the video data compression stream packet contains:First sample format and/or coded system, with
Syntactic element corresponding to one sample format and/or coded system.
By the present invention, sample format and corresponding decoding are selected among predetermined a variety of sample formats and decoding process
Mode, solve in correlation technique using it is single decoded using form and decoding process when the too low technology of efficiency ask
Topic, improves solution bit rate.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the coding/decoding method of video data compression code stream according to embodiments of the present invention;
Fig. 2 is the flow chart of the coding method of video data according to embodiments of the present invention;
Fig. 3 is the structured flowchart of the decoding apparatus of video data compression code stream according to embodiments of the present invention;
Fig. 4 is the structured flowchart of the code device of video data according to embodiments of the present invention;
Fig. 5 is a schematic diagram of the coding method of the present embodiment;
Fig. 6 is a schematic diagram of the coding/decoding method of the present embodiment.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
A kind of coding/decoding method of video data compression code stream is provided in the present embodiment, and Fig. 1 is implemented according to the present invention
The flow chart of the coding/decoding method of the video data compression code stream of example, as shown in figure 1, the flow comprises the following steps:
Step S102, video data compression code stream is parsed, obtain sample format information and/or decoding process information;
Step S104, according to sample format information and/or decoding process information, in predetermined a variety of sample formats and decoding
Among mode, the first sample format and decoding process corresponding with the first sample format are selected;
Step S106, decoding block is solved using the first sample format and the first sample format corresponding decoding process
Code.
By above-mentioned steps, sample format and corresponding solution are selected among predetermined a variety of sample formats and decoding process
Code mode, solve in correlation technique using it is single decoded using form and decoding process when the too low technology of efficiency ask
Topic, improves solution bit rate.
Alternatively, the executive agent of above-mentioned steps can be decoder, video processing equipment, such as video receiver, video
Display device etc., but not limited to this.
Optionally, video data compression code stream includes the data compression code stream of at least one of information:One-dimensional data, two
Dimension data, more than the multidimensional data of two dimension, image, the sequence of image, video, audio, file, byte, bit, pixel, by three
The data of individual component composition, have the image of rectangular shape, have the sequence of the image of rectangular shape, be made up of three components
Image, the image sequence being made up of three components, the video being made up of three components, it is made up of R component, G components, B component
Image, the image sequence being made up of R component, G components, B component, the video being made up of R component, G components, B component are bright by one
Spend the image of component and two chromatic component compositions, the image sequence being made up of two chromatic components of a luminance component, by one
The video of individual two chromatic component compositions of luminance component, the encoding block of data.
Optionally, decoding block is the decoding region of image, wherein, decoding region includes at least one of:The son of image
Image, macro block, maximum coding unit (The Largest Coding Unit, referred to as LCU), code tree unit (Coding
Tree Unit, referred to as CTU), coding unit (Coding Unit, referred to as CU), CU subregion, predicting unit PU
(Prediction Unit, referred to as PU), converter unit (Transform Unit, referred to as TU).
Optionally, a variety of sample formats include main sample format and other sample formats, wherein, other sample formats are main
Sample format passes through the sample format that sampling operation obtains.
Optionally, video data compression code stream has the data of the image of rectangular shape and three components or the sequence of image
Compressed bit stream.
Optionally, a variety of sample formats are 4:4:4 sample formats and 4:2:0 sample format;Or a variety of sample formats are
4:4:4 sample formats and 4:2:2 sample formats;Or a variety of sample formats are 4:2:2 sample formats and 4:2:0 sample format.
It is corresponding, with 4:2:The corresponding decoding process of 0 sample format includes:Produce 4:2:The versions of data of 0 sample format, to 4:2:0
The versions of data of sample format is converted to 4 by up-sampling operation:4:4 or 4:2:The versions of data of 2 sample formats, wherein, production
Raw 4:2:The versions of data method of 0 sample format includes:Operation according to infra-frame prediction is carried out when the neighborhood pixels of decoding block is produced
Raw 4:2:The versions of data of 0 sample format, and/or, produced according to the operation that inter prediction is carried out when the adjacent image of decoding image
Raw 4:2:The versions of data of 0 sample format;With 4:4:4 or 4:2:The corresponding decoding process of 2 sample formats includes:Grasped according to prediction
Make to produce 4:4:4 or 4:2:The versions of data of 2 sample formats, to 4:4:4 or 4:2:The versions of data of 2 sample formats is adopted under passing through
Sample operation is converted to 4:2:The versions of data of 0 sample format, specifically, the predicted operation can be string predicted operation.
Optionally, decoding process includes at least one of:Infra-frame prediction is carried out according to the neighborhood pixels of decoding block;According to
The adjacent image for decoding image carries out inter prediction;Inter-frame Transformation is carried out according to the adjacent image of decoding image;Scaling
scaling;General string prediction;Palette decodes;Dictionary decodes;Entropy decoding.
Optionally, parsing video data compression code stream also includes:, the first flag bit is obtained from the position of one below:Sequence
Row parameter set, picture parameter set, sequence head, slice header, image head, CTU heads, CU heads, build is decoded, wherein, the first flag bit
For indicating to allow to be decoded using a variety of sample formats and/or corresponding decoding mode.
Optionally, parsing video data compression code stream also includes:, indicate from the position acquisition second of at least one of
Position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, decoding build, wherein, the second flag bit is used to refer to
Show to allow to use and use 4:4:The decoding block of 4 sample formats and/or corresponding string prediction decoding mode.
Optionally, parsing video data compression code stream also includes:, indicate from the position acquisition the 3rd of at least one of
Position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, decoding build, wherein, the 3rd flag bit is used to refer to
Show to allow to use and use 4:2:The decoding block of 2 sample formats and/or corresponding string prediction decoding mode.
Optionally, a kind of sample format and decoding process in predetermined a variety of sample formats and decoding process correspond to one
Individual predetermined value k, from video data compression code stream, the sampling lattice directly or indirectly or directly mixed indirectly are obtained for decoding block
Formula and corresponding decoding mode identification code.
In the present embodiment, direct sample format and corresponding decoding mode identification code is by video data compression code stream
One or more bit strings are formed;Indirect sample format and corresponding decoding mode identification code are in addition to decoding process parameter
Other grammers in addition to syntactic element corresponding to decoding process parameter of other decoding parametrics and/or video data compression code stream
Sample format derived from element and corresponding decoding mode identification code;The sample format and corresponding decoding mode mark directly mixed indirectly
It is the sample format and corresponding decoding mode identification code that part direct part mixes indirectly to know code.
Optionally, from the following position acquisition sample format of video data compression code stream and the mark of corresponding decoding process
Code:
Decoding block header syntactic element, sample format and corresponding decoding mode identification code syntactic element, extra decoding
Build Message Syntax element, decoding block data syntax element;Or
It is decoding block header syntactic element, fractional-sample form and corresponding decoding mode identification code syntactic element, extra
Decoding block header syntactic element, partial decoding of h block number are according to syntactic element, another part sample format and corresponding decoding mode mark
Know code syntactic element, another part decoding block data syntax element;
Wherein, when the value of the identification code of identification code syntactic element is equal to designated value, represent using corresponding with designated value
Sample format and corresponding decoding mode decode to decoding block.
A kind of coding method of video data is provided in the present embodiment, and Fig. 2 is video according to embodiments of the present invention
The flow chart of the coding method of data, as shown in Fig. 2 the flow comprises the following steps:
Step S202, selects the first sample format from predetermined a variety of sample formats, and from predetermined a variety of codings
Coded system corresponding with the first sample format is selected among mode;
Step S204, the encoding block of video data is carried out using the first sample format of selection and the coded system of selection
Coding produces video data compression code stream, wherein, video data compression stream packet contains:First sample format and/or coded system,
Syntactic element corresponding with the first sample format and/or coded system.
Alternatively, the executive agent of above-mentioned steps can be encoder, video processing equipment, such as video sending end, video
Discharge device etc., but not limited to this.
Optionally, video data includes at least one of:One-dimensional data, 2-D data, more than two dimension multidimensional data,
Image, the sequence of image, video, audio, file, byte, bit, pixel, the data being made up of three components, there is rectangle shape
The image of shape, there is the sequence of the image of rectangular shape, the image being made up of three components, the image sequence being made up of three components
Row, the video being made up of three components, the image being made up of R component, G components, B component, are made up of R component, G components, B component
Image sequence, the video being made up of R component, G components, B component, the figure being made up of a luminance component and two chromatic components
Picture, the image sequence being made up of two chromatic components of a luminance component, it is made up of two chromatic components of a luminance component
Video, the encoding block of data.
Optionally, encoding block is the coding region of image, wherein, coding region includes at least one of:The son of image
Image, macro block, maximum coding unit LCU, code tree unit CTU, coding unit CU, CU subregion, predicting unit PU, conversion
Unit TU.
Optionally, a variety of sample formats include main sample format and other sample formats, wherein, other sample formats are main
Sample format passes through the sample format that sampling operation obtains.
Optionally, video data is the sequence of the image or image with rectangular shape and three components,
Optionally, a variety of sample formats are 4:4:4 sample formats and 4:2:0 sample format;Or a variety of sample formats are
4:4:4 sample formats and 4:2:2 sample formats;Or a variety of sample formats are 4:2:2 sample formats and 4:2:0 sample format.
It is corresponding, with 4:2:The corresponding coded system of 0 sample format includes:Produce 4:2:The versions of data of 0 sample format, to 4:2:0
The versions of data of sample format is converted to 4 by up-sampling operation:4:4 or 4:2:The versions of data of 2 sample formats, wherein, production
Raw 4:2:The versions of data method of 0 sample format includes:Operation according to infra-frame prediction is carried out when the neighborhood pixels of encoding block is produced
Raw 4:2:The versions of data of 0 sample format, and/or, produced according to the operation that inter prediction is carried out when the adjacent image of coded image
Raw 4:2:The versions of data of 0 sample format;With 4:4:4 or 4:2:The corresponding coded system of 2 sample formats includes:Grasped according to prediction
Make to produce 4:4:4 or 4:2:The versions of data of 2 sample formats, to 4:4:4 or 4:2:The versions of data of 2 sample formats is adopted under passing through
Sample operation is converted to 4:2:The versions of data of 0 sample format, specifically, the predicted operation can be string predicted operation.
Optionally, coded system includes at least one of:Infra-frame prediction is carried out according to the neighborhood pixels of encoding block;According to
The adjacent image of coded image carries out inter prediction;Inter-frame Transformation is carried out according to the adjacent image of coded image;Quantify;General string
Prediction;Palette encodes;Dictionary encoding;Hybrid coding Hybrid coding;Entropy code.
Optionally, the present embodiment also includes:The first flag bit is included in the one below part of video data compression code stream:
Sequence parameter set, picture parameter set, sequence head, slice header, image head, CTU heads, CU heads, build is encoded, wherein, the first mark
Position, which is used for instruction, to be allowed to be encoded using a variety of sample formats and/or corresponding encoded mode.
Optionally, the present embodiment also includes:The second mark is included at least one of part of video data compression code stream
Will position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding build, wherein, the second flag bit is used for
Instruction, which allows to use, uses 4:4:The encoding block of 4 sample formats and/or corresponding string predictive coding mode.
Optionally, the present embodiment also includes:The 3rd mark is included at least one of part of video data compression code stream
Will position:Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding build, wherein, the 3rd flag bit is used for
Instruction, which allows to use, uses 4:2:The encoding block of 2 sample formats and/or corresponding string predictive coding mode.
Optionally, a kind of sample format in predetermined a variety of sample formats and coded system and coded system correspond to one
Individual predetermined value k, the sample format and corresponding encoded mode that directly or indirectly or directly mix indirectly is set to identify for encoding block
Code, coded system identification code is included in video data compression code stream.
Optionally, direct sample format and corresponding encoded mode identification code by one in video data compression code stream or
Multiple bit strings are formed;Indirect sample format and corresponding encoded mode identification code are in addition to the encoding mode parameter of selection
Sample format derived from the syntactic element of other in addition to syntactic element of other coding parameters and/or video data compression code stream
With corresponding encoded mode identification code;The sample format and corresponding encoded mode identification code directly mixed indirectly is part direct part
The sample format and corresponding encoded mode identification code mixed indirectly.
Optionally, sample format and the identification code of corresponding coded system are present in video data compression code using following manner
In stream:Encoding block header syntactic element, sample format and corresponding encoded mode identification code syntactic element, extra coding build
Message Syntax element, code block data syntactic element;Or encoding block header syntactic element, fractional-sample form and corresponding encoded
Mode identification code syntactic element, extra encoding block header syntactic element, code segment block number are according to syntactic element, another part
Sample format and corresponding encoded mode identification code syntactic element, another part code block data syntactic element;Wherein, identification code language
When the value of the identification code of method element is equal to designated value, represent to use sample format corresponding with designated value and corresponding encoded mode
Encoding block is encoded.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
A kind of decoding apparatus of video data compression code stream, the coding dress of video data are additionally provided in the present embodiment
Put, the device is used to realize above-described embodiment and preferred embodiment, has carried out repeating no more for explanation.Make as following
, term " module " can realize the combination of the software and/or hardware of predetermined function.Although the dress described by following examples
Put and preferably realized with software, but hardware, or software and hardware combination realization and may and be contemplated.
Fig. 3 is the structured flowchart of the decoding apparatus of video data compression code stream according to embodiments of the present invention, such as Fig. 3 institutes
Show, the device includes:
Parsing module 30, for parsing video data compression code stream, obtain sample format information and/or decoding process letter
Breath;
Selecting module 32, for according to sample format information and/or decoding process information, in predetermined a variety of sample formats
Among decoding process, the first sample format and decoding process corresponding with the first sample format are selected;
Decoder module 34, for being entered using the first sample format and the corresponding decoding process of the first sample format to decoding block
Row decoding.
Fig. 4 is the structured flowchart of the code device of video data according to embodiments of the present invention, as shown in figure 4, the device
Including:
Selecting module 40, for selecting the first sample format from predetermined a variety of sample formats, and from predetermined more
Selection coded system corresponding with the first sample format among kind coded system;
Coding module 42, for using the coding of the first sample format of selection and the coded system of selection to video data
Block carries out coding and produces video data compression code stream, wherein, video data compression stream packet contains:First sample format and/or volume
Code mode, syntactic element corresponding with the first sample format and/or coded system.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 3
The present embodiment is the alternative embodiment of the present invention, and the scheme for more the application is supplemented and described in detail:
In order to solve this problem in the compression to the data set formed by the content mix of multifrequency nature, the present embodiment
Provide a kind of using a variety of (i.e. two kinds or more) sample formats and the data compression method and device of corresponding encoded mode:Number
There are K (K according to collection and encoding and decoding block>1) the individual version respectively with K kind difference sample formats, correspondingly has K to cover code encoding/decoding mode;
When carrying out encoding and decoding to an encoding and decoding block, select to compile one of described K version using corresponding code encoding/decoding mode
Decoding.
The primary technical characteristic of the present embodiment is to use a variety of sample formats (i.e. a variety of data with different sample formats
Version) and the one-to-one individual encoding and decoding block of corresponding code encoding/decoding mode carry out encoding and decoding.
Preferably, volume solution is carried out using the one-to-one individual encoding and decoding block of two kinds of sample formats and corresponding code encoding/decoding mode
Code.
Preferably, data set and its element are made up of 3 components.
Preferably, data set is the image for having rectangular shape.
Preferably, data set is the sequence of the image with rectangular shape.
Preferably, the image that data set is made up of 3 components.
Preferably, the image sequence that data set is made up of 3 components.
Preferably, the video that data set is made up of 3 components.
Preferably, the image that data set is made up of R component, G components, B component.
Preferably, the video that data set is made up of R component, G components, B component.
Preferably, the image that data set is made up of Y luminance components, U chromatic components, V chromatic components.
In the present embodiment, it is preferable that the video that data set is made up of Y luminance components, U chromatic components, V chromatic components.
In the present embodiment, it is preferable that two kinds of sample formats are 4:4:4 sample formats and 4:2:0 sample format.
In the present embodiment, it is preferable that two kinds of sample formats are 4:4:4 sample formats and 4:2:2 sample formats.
In the present embodiment, it is preferable that two kinds of sample formats are 4:2:0 sample format and 4:2:2 sample formats.
In the present embodiment, it is preferable that one kind in a variety of sample formats is main sample format, and other sample formats are then
The sample format that the main sample format operates to obtain by down-sampling.
In the present embodiment, it is preferable that caused a kind of versions of data of sample format in encoding and decoding, by sample format
Conversion operation is converted to the versions of data of other sample formats.
In the present embodiment, it is preferable that sample format conversion operation include re-sampling operations and/or up-sampling operation and/or
Down-sampling operates.
In the present embodiment, it is preferable that code encoding/decoding mode corresponding with a kind of sample format includes block predicted operation, and/or
Map function;Code encoding/decoding mode corresponding with another sample format includes string predicted operation.
In the present embodiment, it is preferable that data set is the image for having rectangular shape, corresponding with a kind of sample format to compile solution
Code mode includes carrying out the operation of infra-frame prediction, and/or map function from the neighborhood pixels of current codec block;Adopted with another kind
The corresponding code encoding/decoding mode of sample form may include string predicted operation.
In the present embodiment, it is preferable that data set is the sequence of the image with rectangular shape, corresponding to a kind of sample format
Code encoding/decoding mode include carrying out the operation of infra-frame prediction from the neighborhood pixels of current codec block, and/or from current codec
The adjacent image of image carries out the operation of inter prediction, and/or map function;Encoding and decoding side corresponding with another sample format
Formula may include string predicted operation.
In the present embodiment, it is preferable that data set is the sequence of the image with rectangular shape, with 4:2:0 sample format phase
The code encoding/decoding mode answered includes carrying out the operation of infra-frame prediction from the neighborhood pixels of current codec block, and/or compiles solution from current
The adjacent image of code image carries out the operation of inter prediction, and/or map function;With 4:4:The corresponding encoding and decoding of 4 sample formats
Mode may include string predicted operation.
In the present embodiment, it is preferable that data set is the sequence of the image with rectangular shape, with 4:2:0 sample format phase
The code encoding/decoding mode answered includes carrying out the operation of infra-frame prediction from the neighborhood pixels of current codec block, and/or compiles solution from current
The operation of the adjacent image progress inter prediction of code image, and/or map function, caused 4:2:The data version of 0 sample format
The up-sampling operation of this process is converted to 4:4:The versions of data of 4 sample formats;With 4:4:The corresponding code encoding/decoding mode of 4 sample formats
May include go here and there predicted operation, caused 4:4:The versions of data of 4 sample formats is converted to 4 by down-sampling operation:2:0 sampling lattice
The versions of data of formula.
The coding method of the present embodiment or the most basic peculiar technical characteristic of device are according to a present encoding block
Characteristic is adaptively encoded using a pair of present encoding blocks of predetermined a variety of sample formats and corresponding encoded mode,
Generation at least contains sample format, and/or during with the information of the identification code of sample format corresponding encoded mode and its corresponding decoding
The compressed data code stream of the other information needed.
Fig. 5 is a schematic diagram of the coding method of the present embodiment.Preferably, using two kinds of sample formats and corresponding volume
The one-to-one individual encoding block of code mode is encoded.Preferably, data set and its element are made up of 3 components.Preferably, data
Collection is the image for having rectangular shape.Preferably, data set is the sequence of the image with rectangular shape.Preferably, data set
The image being made up of 3 components.Preferably, the image sequence that data set is made up of 3 components.Preferably, data set is
The video being made up of 3 components.Preferably, the image that data set is made up of R component, G components, B component.Preferably, data
The video that collection is made up of R component, G components, B component.Preferably, data set is by Y luminance components, U chromatic components, V colourities
The image of component composition.Preferably, the video that data set is made up of Y luminance components, U chromatic components, V chromatic components.It is preferred that
Ground, two kinds of sample formats are 4:4:4 sample formats and 4:2:0 sample format.Preferably, two kinds of sample formats are 4:4:4 samplings
Form 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,
One kind in a variety of sample formats is main sample format, and to be then the main sample format grasp other sample formats by down-sampling
Make obtained sample format.Preferably, caused a kind of versions of data of sample format in coding, is changed by sample format
Operation is converted to the versions of data of other sample formats.Preferably, sample format conversion operation include re-sampling operations and/or on
Sampling operation and/or down-sampling operation.Preferably, coded system corresponding with a kind of sample format include block predicted operation and/
Or map function;Coded system corresponding with another sample format includes string predicted operation.Preferably, data set is with square
The image of shape shape, coded system corresponding with a kind of sample format include carrying out in frame in advance from the neighborhood pixels of present encoding block
The operation of survey, and/or map function;Coded system corresponding with another sample format includes string predicted operation.Preferably, number
It is the image sequence with rectangular shape according to collection, coded system corresponding with a kind of sample format includes the neighbour from present encoding block
Nearly pixel carries out the operation of infra-frame prediction, and/or the operation of inter prediction is carried out from the adjacent image of current encoded image, and/
Or map function;Coded system corresponding with another sample format includes string predicted operation.Preferably, data set is with square
The image sequence of shape shape, with 4:2:The corresponding coded system of 0 sample format includes carrying out from the neighborhood pixels of present encoding block
The operation of infra-frame prediction, and/or the operation of the adjacent image progress inter prediction from current encoded image, and/or map function;
With 4:4:The corresponding coded system of 4 sample formats includes string predicted operation.Preferably, data set is the image for having rectangular shape
Sequence, with 4:2:The corresponding coded system of 0 sample format includes carrying out the behaviour of infra-frame prediction from the neighborhood pixels of present encoding block
Make, and/or the operation of inter prediction is carried out from the adjacent image of current encoded image, and/or map function, caused 4:2:0
The versions of data of sample format is converted to 4 by up-sampling operation:4:The versions of data of 4 sample formats;With 4:4:4 sample formats
Corresponding coded system includes string predicted operation, and caused 4:4:The versions of data of 4 sample formats is by down-sampling operation conversion
For 4:2:The versions of data of 0 sample format.
The coding/decoding method of the present embodiment or the most basic peculiar technical characteristic of device are parsing compressed data code streams, are obtained
The information of sample format and/or corresponding encoded mode, according to the information of the sample format and/or corresponding encoded mode using pre-
One-to-one current decoding block of fixed a variety of sample format and corresponding decoding modes is decoded.
Fig. 6 is a schematic diagram of the coding/decoding method of the present embodiment.Preferably, using two kinds of sample formats and corresponding solution
The one-to-one individual decoding block of code mode is decoded.Preferably, data set and its element are made up of 3 components.Preferably, data
Collection is the image for having rectangular shape.Preferably, data set is the sequence of the image with rectangular shape.Preferably, data set
The image being made up of 3 components.Preferably, the image sequence that data set is made up of 3 components.Preferably, data set is
The video being made up of 3 components.Preferably, the image that data set is made up of R component, G components, B component.Preferably, data
The video that collection is made up of R component, G components, B component.Preferably, data set is by Y luminance components, U chromatic components, V colourities
The image of component composition.Preferably, the video that data set is made up of Y luminance components, U chromatic components, V chromatic components.It is preferred that
Ground, two kinds of sample formats are 4:4:4 sample formats and 4:2:0 sample format.Preferably, two kinds of sample formats are 4:4:4 samplings
Form 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,
One kind in a variety of sample formats is main sample format, and to be then the main sample format grasp other sample formats by down-sampling
Make obtained sample format.Preferably, caused a kind of versions of data of sample format in decoding, is changed by sample format
Operation is converted to the versions of data of other sample formats.Preferably, sample format conversion operation include re-sampling operations and/or on
Sampling operation and/or down-sampling operation.Preferably, decoding process corresponding with a kind of sample format include block predicted operation and/
Or map function;Decoding process corresponding with another sample format includes string predicted operation.Preferably, data set is with square
The image of shape shape, decoding process corresponding with a kind of sample format include carrying out in frame in advance from the neighborhood pixels of current decoding block
The operation of survey, and/or map function;Decoding process corresponding with another sample format includes string predicted operation.Preferably, number
It is the image sequence with rectangular shape according to collection, decoding process corresponding with a kind of sample format includes the neighbour from current decoding block
Nearly pixel carries out the operation of infra-frame prediction, and/or the operation of inter prediction is carried out from the adjacent image of current decoding image, and/
Or map function;Decoding process corresponding with another sample format includes string predicted operation.Preferably, data set is with square
The image sequence of shape shape, with 4:2:The corresponding decoding process of 0 sample format includes carrying out from the neighborhood pixels of current decoding block
The operation of infra-frame prediction, and/or the operation of the adjacent image progress inter prediction from current decoding image, and/or map function;
With 4:4:The corresponding decoding process of 4 sample formats includes string predicted operation.Preferably, data set is the image for having rectangular shape
Sequence, with 4:2:The corresponding decoding process of 0 sample format includes carrying out the behaviour of infra-frame prediction from the neighborhood pixels of current decoding block
Make, and/or the operation of inter prediction is carried out from the adjacent image of current decoding image, and/or map function, caused 4:2:0
The versions of data of sample format is converted to 4 by up-sampling operation:4:The versions of data of 4 sample formats;With 4:4:4 sample formats
Corresponding decoding process includes string predicted operation, and caused 4:4:The versions of data of 4 sample formats is by down-sampling operation conversion
For 4:2:The versions of data of 0 sample format.
According to the one side of the present embodiment, there is provided a kind of coding method that data are compressed or device, at least
The step of including completing following function and operation or module:
A kind of sample format for being adaptive selected among predetermined a variety of sample formats and corresponding encoded mode and corresponding
Coded system encodes to an encoding block, produces information and its language at least containing sample format and/or corresponding encoded mode
The compressed data code stream of method element.
The present embodiment additionally provides a kind of coding/decoding method or device being compressed to data, including at least the following work(of completion
The step of and operating or module:Compressed data code stream is parsed, obtains the information of sample format and/or corresponding encoded mode, root
According to the information of the sample format and/or corresponding encoded mode using among predetermined a variety of sample format and corresponding decoding modes
A kind of sample format and corresponding decoding mode one decoding block is decoded.
The present embodiment is applied to carry out data the coding and decoding of lossy compression method, and the present embodiment is applied equally to data
Carry out the coding and decoding of Lossless Compression.The present embodiment is applied to the coding of one-dimensional data such as string data or byte string data
And decoding, the present embodiment are applied equally to the coding and decoding of two dimension or more data such as image or video data.
In the present embodiment, data include one or a combination set of data of following classes:One-dimensional data;2-D data;Multidimensional
Data;Image;The sequence of image;Video;Audio;File;Byte;Bit;Pixel.
It is the situation of image, the sequence of image, video etc. in data, encoding block or decoding block are images in the present embodiment
A coding region or a decoding region, including scenario described below:The subgraph of image, macro block, maximum coding unit LCU,
Code tree unit CTU, coding unit CU, CU subregion, predicting unit PU, converter unit TU.
In the present embodiment, 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 embodiment, the code encoding/decoding mode includes one or a combination set of following operation:
1) infra-frame prediction is carried out from the neighborhood pixels of current codec block;
2) inter prediction is carried out from the adjacent image of current codec image;
3) conversion and corresponding inverse transformation;
4) quantify and corresponding inverse quantization;
5) general string prediction;
6) palette coding and corresponding decoding;
7) dictionary encoding and corresponding decoding;
8)Hybrid coding;
9) entropy code and corresponding entropy decoding.
It is more implementation details or variant of the present embodiment below, including multiple examples.
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.
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 up of 3 components;
Or
Image with rectangular shape;
Or
The sequence of image with rectangular shape;
Or
The image being made up of 3 components;
Or
The image sequence being made up of 3 components;
Or
The video being made up of 3 components;
Or
The image being made up of R component, G components, B component;
Or
The image sequence being made up of R component, G components, B component;
Or
The video being made up of R component, G components, B component;
Or
The image being made up of Y luminance components, U chromatic components, V chromatic components;
Or
The image sequence being made up of Y luminance components, U chromatic components, V chromatic components;
Or
The video being made up of Y luminance components, U chromatic components, V chromatic components;
Or
One encoding and decoding block of any of the above data;
Or
The variant of any of the above data, including the variant data by one or a combination set of following operation:By prediction
Prediction residual, the conversion numeric field data by conversion, the differential data by calculus of differences, the quantized data by quantization, process
The data of inverse quantization, the data by inverse transformation, the data by block-eliminating effect filtering, the data by sample value migration,
The data filtered by adaptive correction.
Example 3
In the coding method or device or coding/decoding method or device, image that the data are made up of 3 components, institute
It is two kinds of sample formats to state a variety 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.
Example 4
In the coding method or device or coding/decoding method or device, one kind in a variety of sample formats is main sampling
Form, and other sample formats are then the sample formats that the main sample format operates to obtain by down-sampling.
Example 5
In the coding method or device or coding/decoding method or device, caused a kind of number of sample format in encoding and decoding
According to version, the versions of data of other sample formats is converted to by sample format conversion operation.
Example 6
In coding method described in example 5 or device or coding/decoding method or device, the sample format conversion operation includes weight
Sampling operation and/or up-sampling operation and/or down-sampling operation.
Example 7
In the coding method or device or coding/decoding method or device, code encoding/decoding mode bag corresponding with a kind of sample format
Include block predicted operation, and/or map function;Code encoding/decoding mode corresponding with another sample format includes string predicted operation.
Example 8
In the coding method or device or coding/decoding method or device, the data are the images for having rectangular shape, with
A kind of corresponding code encoding/decoding mode of sample format includes carrying out the operation of infra-frame prediction from the neighborhood pixels of current codec block,
And/or map function;Code encoding/decoding mode corresponding with another sample format includes string predicted operation.
Example 9
In the coding method or device or coding/decoding method or device, the data are the sequences of the image with rectangular shape
Row, code encoding/decoding mode corresponding with a kind of sample format include carrying out the behaviour of infra-frame prediction from the neighborhood pixels of current codec block
Make, and/or the operation of inter prediction is carried out from the adjacent image of current codec image, and/or map function;Adopted with another kind
The corresponding code encoding/decoding mode of sample form includes string predicted operation.
Example 10
In the coding method or device or coding/decoding method or device, the data are with rectangular shape and 3 components
Image sequence, a variety of sample formats are two kinds of sample formats, and described two sample formats are 4:4:4 sample formats and
4:2:0 sample format, with described 4:2:The corresponding code encoding/decoding mode of 0 sample format includes the neighborhood pixels from current codec block
The operation of infra-frame prediction is carried out, and/or the operation of inter prediction is carried out from the adjacent image of current codec image, and/or is become
Change operation;With described 4:4:The corresponding code encoding/decoding mode of 4 sample formats includes string predicted operation.
Example 11
In the coding method or device or coding/decoding method or device, the data are with rectangular shape and 3 components
Image or image sequence, a variety of sample formats are two kinds of sample formats, and described two sample formats are 4:4:4 samplings
Form and 4:2:0 sample format, with described 4:2:The corresponding code encoding/decoding mode of 0 sample format includes the neighbour from current codec block
Nearly pixel carries out the operation of infra-frame prediction, and/or the operation of inter prediction is carried out from the adjacent image of current codec image,
And/or map function, caused 4:2:The versions of data of 0 sample format is converted to 4 by up-sampling operation:4:4 sample formats
Versions of data;With described 4:4:The corresponding code encoding/decoding mode of 4 sample formats include string predicted operation, caused 4:4:4 samplings
The versions of data of form is converted to 4 by down-sampling operation:2:The versions of data of 0 sample format.
Example 12
In the coding method or device or coding/decoding method or device, the data are with rectangular shape and 3 components
Image or image sequence, a variety of sample formats are two kinds of sample formats, and described two sample formats are 4:4:4 samplings
Form and 4:2:0 sample format, with described 4:2:The corresponding code encoding/decoding mode of 0 sample format includes the neighbour from current codec block
Nearly pixel carries out the operation of infra-frame prediction, and/or the operation of inter prediction is carried out from the adjacent image of current codec image,
And/or map function, caused 4:2:The D components D420={ D420 [i] [j] of the versions of data of 0 sample format:I=0~M-
1, j=0~N-1 } and E components E420={ E420 [i] [j]:I=0~M-1, j=0~N-1 }, respectively by following up-sampling
Operation is converted to 4:4:The D components D444={ D444 [i] [j] of the versions of data of 4 sample formats: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;With described 4:4:It is pre- that the corresponding code encoding/decoding mode of 4 sample formats includes string
Survey and operate, caused 4:4:The D components D444={ D444 [i] [j] of the versions of data of 4 sample formats:I=0~2M-1, j=0
~2N-1 } and E components E444={ E444 [i] [j]:I=0~2M-1, j=0~2N-1 }, operated respectively by following down-sampling
Be converted to 4:2:The D components D420={ D420 [i] [j] of the versions of data of 0 sample format:I=0~M-1, j=0~N-1 } and E
Component 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 methods).
Example 13
In the coding method or device or coding/decoding method or device, in the following place of the video data compression code stream
One of or some places in the presence of the mark for representing to allow to carry out encoding and decoding using a variety of sample formats and/or corresponding code encoding/decoding mode
Position:
1) sequence parameter set;It is typically to be one of sequence parameter set directly to have or imply the syntactic element derived;
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;Typically directly there is or imply the syntactic element derived in one of CTU heads;
7) CU heads;Typically directly there is or imply the syntactic element derived in one of CU heads;
8) encoding and decoding build;Typically directly there is or imply the syntactic element derived in one of encoding and decoding build.
Example 14
In the coding method or device or coding/decoding method or device, in the following place of the video data compression code stream
One of or some places exist expression allow use use 4:4:The volume solution of 4 sample formats and/or corresponding string prediction code encoding/decoding mode
The flag bit of code block:
1) sequence parameter set;It is typically to be one of sequence parameter set directly to have or imply the syntactic element derived;
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;
3) slice header;Typically directly there is or imply the syntactic element derived in one of slice header;
3) image head;Typically directly there is or imply the syntactic element derived in one of image head.
Example 15
In the coding method or device or coding/decoding method or device, predetermined a variety of sample formats and corresponding compile solve
Code mode represents that a kind of sample format and corresponding code encoding/decoding mode correspond to a predetermined value with multiple predetermined values respectively
K, each encoding and decoding block have one directly or indirectly or directly to mix indirectly in the video data compression code stream
Sample format and corresponding code encoding/decoding mode identification code,
If the sample format and corresponding code encoding/decoding mode identification code are equal to k,
{
Using to k corresponding to a kind of sample format and corresponding code encoding/decoding mode encoding and decoding are carried out to the encoding and decoding block
}
Directly sample format and the corresponding code encoding/decoding mode identification code by one in video data compression code stream or
Multiple bit strings (binary symbols string) are formed.The indirect sample format and corresponding code encoding/decoding mode identification code are from other volumes
Sample format derived from other syntactic elements of decoding parametric and/or video data compression code stream and corresponding code encoding/decoding mode mark
Code.The sample format directly mixed indirectly and corresponding code encoding/decoding mode identification code are parts directly (i.e. by video data pressure
One or more of contracting code stream bit string is formed) partly indirectly (i.e. from other codec parameters and/or video data compression code
Stream other syntactic elements export) mixing sample format and corresponding code encoding/decoding mode identification code.
Example 16
In the coding method or device or coding/decoding method or device, for represent the sample format of the encoding and decoding block and
The sample format and corresponding code encoding/decoding mode identification code syntactic element of corresponding code encoding/decoding mode are present in the volume with following form
In the video data compression code stream of decoding block:
It is encoding and decoding block header syntactic element, sample format and corresponding code encoding/decoding mode identification code syntactic element, more
Encoding and decoding block header syntactic element, encoding and decoding block data syntax element;
Or
Encoding and decoding block header syntactic element, fractional-sample form and corresponding code encoding/decoding mode identification code syntactic element, more
More encoding and decoding block header syntactic element, part encoding and decoding block data syntax element, another part sample format and corresponding volumes
Decoding process identification code syntactic element, another part encoding and decoding block data syntax element;
Wherein, when sample format and corresponding code encoding/decoding mode identification code take a value, using it is corresponding with described value that
Sample format and corresponding code encoding/decoding mode carry out encoding and decoding to the encoding and decoding block.
Example 17
In the coding method or device or coding/decoding method or device, code encoding/decoding mode bag corresponding with a kind of sample format
Predicted operation, and/or predictive compensation operation, and/or block-eliminating effect filtering operation are included, and/or sample value migration operates, and/
Or adaptive correction filtering operation;Code encoding/decoding mode corresponding with another sample format includes map function, and/or quantifies behaviour
Make, and/or inverse quantization operation (scaling scaling operations), and/or inverse transformation operation.
Example 18
In the coding method or device or coding/decoding method or device, code encoding/decoding mode bag corresponding with a kind of sample format
Include block predicted operation, and/or string predicted operation, and/or predictive compensation operation;Encoding and decoding side corresponding with another sample format
Formula includes map function, and/or quantization operation, and/or inverse quantization operation, and/or inverse transformation operation.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S1, video data compression code stream is parsed, obtain sample format information and/or decoding process information;
S2, according to the sample format information and/or decoding process information, in predetermined a variety of sample formats and decoding side
Among formula, the first sample format and decoding process corresponding with first sample format are selected;
S3, decoding block is solved using first sample format and the first sample format corresponding decoding process
Code.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs parsing video according to the program code stored in storage medium
Data compression code stream, obtain sample format information and/or decoding process information;
Alternatively, in the present embodiment, processor is performed according to according to the program code stored in storage medium
Sample format information and/or decoding process information, among predetermined a variety of sample formats and decoding process, select the first sampling
Form and decoding process corresponding with first sample format;
Alternatively, in the present embodiment, processor is according to the program code stored in storage medium performs use
First sample format and the corresponding decoding process of the first sample format decode to decoding block.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (34)
1. a kind of coding/decoding method of video data compression code stream, it is characterised in that also include:
Video data compression code stream is parsed, obtains sample format information and/or decoding process information;
According to the sample format information and/or decoding process information, among predetermined a variety of sample formats and decoding process,
Select the first sample format and decoding process corresponding with first sample format;
Decoding block is decoded using first sample format and the first sample format corresponding decoding process.
2. according to the method for claim 1, it is characterised in that the video data compression code stream includes at least one of
The data compression code stream of information:
One-dimensional data, 2-D data, more than two dimension multidimensional data, image, the sequence of image, video, audio, file, byte,
Bit, pixel, the data being made up of three components, there is the image of rectangular shape, the sequence with the image of rectangular shape, by
The image of three component compositions, the image sequence being made up of three components, the video being made up of three components, divided by R component, G
The image of amount, B component composition, the image sequence being made up of R component, G components, B component, is made up of R component, G components, B component
Video, the image being made up of a luminance component and two chromatic components, be made up of two chromatic components of a luminance component
Image sequence, the video being made up of two chromatic components of a luminance component, the encoding block of data.
3. according to the method for claim 1, it is characterised in that the decoding block is the decoding region of image, wherein, it is described
Decoding region includes at least one of:Subgraph, macro block, maximum coding unit LCU, code tree unit CTU, the coding of image
Unit CU, CU subregion, predicting unit PU, converter unit TU.
4. according to the method for claim 1, it is characterised in that a variety of sample formats include main sample format and other
Sample format, wherein, other described sample formats are that the main sample format passes through the sample format that sampling operation obtains.
5. according to the method for claim 1, it is characterised in that the video data compression code stream has rectangular shape and three
The data compression code stream of the image of individual component or the sequence of image.
6. according to the method for claim 1, it is characterised in that a variety of sample formats are 4:4:4 sample formats and 4:
2:0 sample format;Or a variety of sample formats are 4:4:4 sample formats and 4:2:2 sample formats;It is or described a variety of
Sample format is 4:2:2 sample formats and 4:2:0 sample format.
7. according to the method for claim 6, it is characterised in that wherein,
With described 4:2:The corresponding decoding process of 0 sample format includes:Produce 4:2:The versions of data of 0 sample format, to described
4:2:The versions of data of 0 sample format is converted to 4 by up-sampling operation:4:4 or 4:2:The versions of data of 2 sample formats, its
In, produce described 4:2:The versions of data method of 0 sample format includes:Carried out according to the neighborhood pixels to the decoding block in frame
The operation of prediction produces 4:2:The versions of data of 0 sample format, and/or, interframe is carried out according to the adjacent image to decoding image
The operation of prediction produces 4:2:The versions of data of 0 sample format;
With described 4:4:4 or 4:2:The corresponding decoding process of 2 sample formats includes:4 are produced according to predicted operation:4:4 or 4:2:2
The versions of data of sample format, to described 4:4:4 or 4:2:The versions of data of 2 sample formats is converted to 4 by down-sampling operation:
2:The versions of data of 0 sample format.
8. according to the method for claim 7, it is characterised in that the decoding process includes at least one of:According to institute
The neighborhood pixels for stating decoding block carry out infra-frame prediction;Inter prediction is carried out according to the adjacent image of the decoding image;Conversion;Contracting
Put scaling;General string prediction;Palette decodes;Dictionary decodes;Entropy decoding.
9. according to the method for claim 1, it is characterised in that also include:Parse the video data compression code stream, from
One of lower position obtains the first flag bit:Sequence parameter set, picture parameter set, sequence head, slice header, image head, CTU heads,
CU heads, build is decoded, wherein, first flag bit, which is used for instruction, to be allowed to use a variety of sample formats and/or corresponding decoding side
Formula is decoded.
10. according to the method for claim 1, it is characterised in that also include:The video data compression code stream is parsed, from
The flag bit of position acquisition second of at least one of:Sequence parameter set, picture parameter set, sequence head, slice header, image head,
Build is decoded, wherein, second flag bit, which is used for instruction, to be allowed to use using 4:4:4 sample formats and/or corresponding string prediction
The decoding block of decoding process.
11. according to the method for claim 1, it is characterised in that also include:The video data compression code stream is parsed, from
The flag bit of position acquisition the 3rd of at least one of:Sequence parameter set, picture parameter set, sequence head, slice header, image head,
Build is decoded, wherein, the 3rd flag bit, which is used for instruction, to be allowed to use using 4:2:2 sample formats and/or corresponding string prediction
The decoding block of decoding process.
12. according to the method for claim 1, it is characterised in that in the predetermined a variety of sample formats and decoding process
A kind of sample format and decoding process correspond to a predetermined value k, be the solution from the video data compression code stream
Code block obtains the sample format and corresponding decoding mode identification code directly or indirectly or directly mixed indirectly.
13. according to the method for claim 12, it is characterised in that
Directly sample format and the corresponding decoding mode identification code are by one in the video data compression code stream or more
Individual bit string is formed;
The indirect sample format and corresponding decoding mode identification code are other decodings in addition to the decoding process parameter
Other grammers in addition to syntactic element corresponding to the decoding process parameter of parameter and/or the video data compression code stream
Sample format derived from element and corresponding decoding mode identification code;
The directly sample format that mixes indirectly and the corresponding decoding mode identification code are adopting of mixing indirectly of part direct part
Sample form and corresponding decoding mode identification code.
14. according to the method for claim 1, it is characterised in that obtained from the following position of the video data compression code stream
Take the identification code of the sample format and the corresponding decoding process:
The decoding block header syntactic element, sample format and corresponding decoding mode identification code syntactic element, extra decoding
Build Message Syntax element, decoding block data syntax element;Or
It is the decoding block header syntactic element, fractional-sample form and corresponding decoding mode identification code syntactic element, extra
Decoding block header syntactic element, partial decoding of h block number are according to syntactic element, another part sample format and corresponding decoding mode mark
Know code syntactic element, another part decoding block data syntax element;
Wherein, when the value of the identification code of the identification code syntactic element is equal to designated value, represent to use and the designated value pair
The sample format and corresponding decoding mode answered decode to the decoding block.
15. according to the method for claim 7, it is characterised in that the predicted operation includes string predicted operation.
A kind of 16. coding method of video data, it is characterised in that including:
Select the first sample format from predetermined a variety of sample formats, and among predetermined a variety of coded systems selection with
Coded system corresponding to first sample format;
Coding is carried out to the encoding block of video data using the first sample format of selection and the coded system of selection and produces video
Data compression code stream, wherein, the video data compression stream packet contains:First sample format and/or coded system, adopted with first
Syntactic element corresponding to sample form and/or coded system.
17. according to the method for claim 16, it is characterised in that the video data includes at least one of:
One-dimensional data, 2-D data, more than two dimension multidimensional data, image, the sequence of image, video, audio, file, byte,
Bit, pixel, the data being made up of three components, there is the image of rectangular shape, the sequence with the image of rectangular shape, by
The image of three component compositions, the image sequence being made up of three components, the video being made up of three components, divided by R component, G
The image of amount, B component composition, the image sequence being made up of R component, G components, B component, is made up of R component, G components, B component
Video, the image being made up of a luminance component and two chromatic components, be made up of two chromatic components of a luminance component
Image sequence, the video being made up of two chromatic components of a luminance component, the encoding block of data.
18. according to the method for claim 16, it is characterised in that the encoding block is the coding region of image, wherein, institute
Stating coding region includes at least one of:The subgraph of image, macro block, maximum coding unit LCU, code tree unit CTU, volume
Code unit CU, CU subregion, predicting unit PU, converter unit TU.
19. according to the method for claim 16, it is characterised in that a variety of sample formats include main sample format and its
His sample format, wherein, other described sample formats are that the main sample format passes through the sample format that sampling operation obtains.
20. according to the method for claim 16, it is characterised in that the video data is with rectangular shape and three points
The image of amount or the sequence of image.
21. according to the method for claim 16, it is characterised in that a variety of sample formats are 4:4:4 sample formats and
4:2:0 sample format;Or a variety of sample formats are 4:4:4 sample formats and 4:2:2 sample formats;It is or described more
Kind sample format is 4:2:2 sample formats and 4:2:0 sample format.
22. according to the method for claim 21, it is characterised in that
With described 4:2:The corresponding coded system of 0 sample format includes:Produce 4:2:The versions of data of 0 sample format, to described
4:2:The versions of data of 0 sample format is converted to 4 by up-sampling operation:4:4 or 4:2:The versions of data of 2 sample formats, its
In, produce described 4:2:The versions of data method of 0 sample format includes:Carried out according to the neighborhood pixels to the encoding block in frame
The operation of prediction produces 4:2:The versions of data of 0 sample format, and/or, interframe is carried out according to the adjacent image to coded image
The operation of prediction produces 4:2:The versions of data of 0 sample format;
With described 4:4:4 or 4:2:The corresponding coded system of 2 sample formats includes:4 are produced according to predicted operation:4:4 or 4:2:2
The versions of data of sample format, to described 4:4:4 or 4:2:The versions of data of 2 sample formats is converted to 4 by down-sampling operation:
2:The versions of data of 0 sample format.
23. according to the method for claim 22, it is characterised in that the coded system includes at least one of:According to
The neighborhood pixels of the encoding block carry out infra-frame prediction;Inter prediction is carried out according to the adjacent image of the coded image;Conversion;
Quantify;General string prediction;Palette encodes;Dictionary encoding;Hybrid coding Hybrid coding;Entropy code.
24. according to the method for claim 16, it is characterised in that also include:The video data compression code stream with
A lower part includes the first flag bit:Sequence parameter set, picture parameter set, sequence head, slice header, image head, CTU heads, CU
Head, build is encoded, wherein, first flag bit, which is used for instruction, to be allowed to use a variety of sample formats and/or corresponding encoded mode
Encoded.
25. according to the method for claim 16, it is characterised in that also include:The video data compression code stream with
At least one lower part includes the second flag bit:Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding
Build, wherein, second flag bit, which is used for instruction, to be allowed to use using 4:4:4 sample formats and/or corresponding encoded mode
Encoding block.
26. according to the method for claim 16, it is characterised in that also include:The video data compression code stream with
At least one lower part includes the 3rd flag bit:Sequence parameter set, picture parameter set, sequence head, slice header, image head, coding
Build, wherein, the 3rd flag bit, which is used for instruction, to be allowed to use using 4:2:2 sample formats and/or corresponding encoded mode
Encoding block.
27. according to the method for claim 16, it is characterised in that in predetermined a variety of sample formats and coded system
A kind of sample format and coded system correspond to a predetermined value k, for the encoding block set directly or indirectly or directly
The sample format and corresponding encoded mode identification code mixed indirectly, the coded system identification code is included in the video data
In compressed bit stream.
28. according to the method for claim 27, it is characterised in that
Directly sample format and the corresponding encoded mode identification code are by one in the video data compression code stream or more
Individual bit string is formed;
The indirect sample format and corresponding encoded mode identification code are its in addition to the encoding mode parameter of the selection
Adopted derived from other syntactic elements in addition to institute's syntax elements of his coding parameter and/or the video data compression code stream
Sample form and corresponding encoded mode identification code;
The directly sample format that mixes indirectly and the corresponding encoded mode identification code are adopting of mixing indirectly of part direct part
Sample form and corresponding encoded mode identification code.
29. according to the method for claim 16, it is characterised in that the sample format and the mark of the corresponding coded system
Know code using following manner to be present in the video data compression code stream:
The encoding block header syntactic element, sample format and corresponding encoded mode identification code syntactic element, extra coding
Build Message Syntax element, code block data syntactic element;Or
It is the encoding block header syntactic element, fractional-sample form and corresponding encoded mode identification code syntactic element, extra
Encoding block header syntactic element, code segment block number are according to syntactic element, another part sample format and corresponding encoded mode mark
Know code syntactic element, another part code block data syntactic element;
Wherein, when the value of the identification code of the identification code syntactic element is equal to designated value, represent to use and the designated value pair
The sample format and corresponding encoded mode answered encode to the encoding block.
30. according to the method for claim 22, it is characterised in that the predicted operation includes string predicted operation.
A kind of 31. decoding apparatus of video data compression code stream, it is characterised in that including:
Parsing module, for parsing video data compression code stream, obtain sample format information and/or decoding process information;
Selecting module, for according to the sample format information and/or decoding process information, in predetermined a variety of sample formats and
Among decoding process, the first sample format and decoding process corresponding with first sample format are selected;
Decoder module, for using first sample format and the corresponding decoding process of the first sample format to decoding block
Decoded.
A kind of 32. code device of video data, it is characterised in that including:
Selecting module, for selecting the first sample format from predetermined a variety of sample formats, and from predetermined a variety of codings
Coded system corresponding with first sample format is selected among mode;
Coding module, the encoding block of video data is carried out for the first sample format using selection and the coded system of selection
Coding produces video data compression code stream, wherein, the video data compression stream packet contains:First sample format and/or coding
Mode, syntactic element corresponding with the first sample format and/or coded system.
A kind of 33. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, when described program is run
Method any one of perform claim requirement 1 to 30.
A kind of 34. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run
Profit requires the method any one of 1 to 30.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610401154 | 2016-06-08 | ||
CN2016104011540 | 2016-06-08 | ||
CN201710143873 | 2017-03-12 | ||
CN2017101438731 | 2017-03-12 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107483942A true CN107483942A (en) | 2017-12-15 |
CN107483942B CN107483942B (en) | 2023-07-14 |
Family
ID=60578383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710424248.4A Active CN107483942B (en) | 2016-06-08 | 2017-06-07 | Decoding method of video data compressed code stream, encoding method and device of video data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107483942B (en) |
WO (1) | WO2017211306A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063091A (en) * | 2018-07-26 | 2018-12-21 | 成都大学 | Data migration method, data migration device and the storage medium of hybrid coding |
CN109379630A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
CN111314778A (en) * | 2020-03-02 | 2020-06-19 | 北京小鸟科技股份有限公司 | Video coding and decoding fusion processing method based on multiple compression systems |
CN112929624A (en) * | 2021-01-21 | 2021-06-08 | 杭州雾联科技有限公司 | Encoding method, encoding device, electronic equipment and computer readable storage medium |
CN115037927A (en) * | 2022-05-07 | 2022-09-09 | 同济大学 | Image coding and decoding method fusing full chroma and mixed chroma and application thereof |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395515B (en) * | 2021-04-08 | 2022-06-14 | 同济大学 | Coding and decoding method and device for point prediction of component down-sampling format data |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627830A (en) * | 2003-12-10 | 2005-06-15 | 微软公司 | Color space coding framework |
CN101420614A (en) * | 2008-11-28 | 2009-04-29 | 同济大学 | Method for compressing image and device that a kind of hybrid coding and dictionary encoding are integrated |
CN103918269A (en) * | 2012-01-04 | 2014-07-09 | 联发科技(新加坡)私人有限公司 | Method and apparatus of luma-based chroma intra prediction |
US20150124865A1 (en) * | 2013-11-01 | 2015-05-07 | Qualcomm Incorporated | Color residual prediction for video coding |
CN104782135A (en) * | 2012-11-12 | 2015-07-15 | Lg电子株式会社 | Apparatus for transreceiving signals and method for transreceiving signals |
CN104853209A (en) * | 2014-02-16 | 2015-08-19 | 同济大学 | Image coding and decoding method and device |
WO2015120823A1 (en) * | 2014-02-16 | 2015-08-20 | 同济大学 | Image compression method and device using reference pixel storage space in multiple forms |
CN104919804A (en) * | 2012-10-01 | 2015-09-16 | 微软技术许可有限责任公司 | Frame packing and unpacking higher-resolution chroma sampling formats |
CN105264888A (en) * | 2014-03-04 | 2016-01-20 | 微软技术许可有限责任公司 | Encoding strategies for adaptive switching of color spaces, color sampling rates and/or bit depths |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013102293A1 (en) * | 2012-01-04 | 2013-07-11 | Mediatek Singapore Pte. Ltd. | Improvements of luma-based chroma intra prediction |
US8817179B2 (en) * | 2013-01-08 | 2014-08-26 | Microsoft Corporation | Chroma frame conversion for the video codec |
-
2017
- 2017-06-07 CN CN201710424248.4A patent/CN107483942B/en active Active
- 2017-06-07 WO PCT/CN2017/087482 patent/WO2017211306A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627830A (en) * | 2003-12-10 | 2005-06-15 | 微软公司 | Color space coding framework |
CN101420614A (en) * | 2008-11-28 | 2009-04-29 | 同济大学 | Method for compressing image and device that a kind of hybrid coding and dictionary encoding are integrated |
CN103918269A (en) * | 2012-01-04 | 2014-07-09 | 联发科技(新加坡)私人有限公司 | Method and apparatus of luma-based chroma intra prediction |
CN104919804A (en) * | 2012-10-01 | 2015-09-16 | 微软技术许可有限责任公司 | Frame packing and unpacking higher-resolution chroma sampling formats |
CN104782135A (en) * | 2012-11-12 | 2015-07-15 | Lg电子株式会社 | Apparatus for transreceiving signals and method for transreceiving signals |
US20150124865A1 (en) * | 2013-11-01 | 2015-05-07 | Qualcomm Incorporated | Color residual prediction for video coding |
CN104853209A (en) * | 2014-02-16 | 2015-08-19 | 同济大学 | Image coding and decoding method and device |
WO2015120823A1 (en) * | 2014-02-16 | 2015-08-20 | 同济大学 | Image compression method and device using reference pixel storage space in multiple forms |
CN105264888A (en) * | 2014-03-04 | 2016-01-20 | 微软技术许可有限责任公司 | Encoding strategies for adaptive switching of color spaces, color sampling rates and/or bit depths |
Non-Patent Citations (3)
Title |
---|
TAO LIN: "Mixed Chroma Sampling-Rate High Efficiency Video Coding for Full-Chroma Screen Content", 《 IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY ( VOLUME: 23, ISSUE: 1, JAN. 2013)》 * |
张勇;耿欣;: "H.264/AVC在数字安防监控***中的应用", 控制工程 * |
林涛: "面向SOC平台的高效H.264解码架构及实现", 《光电子.激光》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063091A (en) * | 2018-07-26 | 2018-12-21 | 成都大学 | Data migration method, data migration device and the storage medium of hybrid coding |
CN109063091B (en) * | 2018-07-26 | 2021-06-15 | 成都大学 | Data migration method and device for hybrid coding and storage medium |
CN109379630A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
CN111314778A (en) * | 2020-03-02 | 2020-06-19 | 北京小鸟科技股份有限公司 | Video coding and decoding fusion processing method based on multiple compression systems |
CN112929624A (en) * | 2021-01-21 | 2021-06-08 | 杭州雾联科技有限公司 | Encoding method, encoding device, electronic equipment and computer readable storage medium |
CN115037927A (en) * | 2022-05-07 | 2022-09-09 | 同济大学 | Image coding and decoding method fusing full chroma and mixed chroma and application thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2017211306A1 (en) | 2017-12-14 |
CN107483942B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107483942A (en) | The decoding of video data compression code stream, the coding method of video data and device | |
KR100966416B1 (en) | Image encoding device, image decoding device, image decoding method, and image encoding method | |
CN109005426A (en) | A kind of photograph document handling method | |
CN104782125B (en) | To the method, apparatus and system of the change of scale coding and decoding of coding units | |
CN101682764B (en) | Bitrate reduction method and device for image transcoding | |
CN102761738B (en) | Method for compressing image and device based on mixing colourity sample rate | |
CN107087205A (en) | Picture decoding method and use its device | |
CN108271024A (en) | Image coding, coding/decoding method and device | |
CN106170092A (en) | Fast encoding method for lossless coding | |
CN109089162A (en) | A kind of photograph document handling method and system | |
JP2017535218A (en) | Improved palette mode in High Efficiency Video Coding (HEVC) Screen Content Coding (SCC) | |
CN109040789A (en) | A kind of photograph document handling method | |
CN104754362B (en) | Image compression method using fine-divided block matching | |
CN108141591A (en) | For non-4:4:The entropy coding technology of the display stream compression (DSC) of 4 coloration sub-samplings | |
WO2023020560A1 (en) | Video coding and decoding method and apparatus, electronic device and storage medium | |
KR20070009486A (en) | Method and apparatus for encoding and decoding image | |
CN117834922A (en) | Method for decoding or encoding video and method for transmitting data | |
CN104935945B (en) | The image of extended reference pixel sample value collection encodes or coding/decoding method | |
CN108702520A (en) | Device and method for the entropy coding based on vector for showing stream compression | |
CN106028031A (en) | Video coding device, video coding method, video decoding device and video decoding method | |
CN108574845B (en) | Data compression method and device dynamically adopting multiple sampling formats | |
CN107431827A (en) | The method and apparatus of index graph code in video and compression of images | |
CN113973208A (en) | Data encoding and decoding method and device | |
CN113301339A (en) | Data encoding and decoding method and device | |
CN110855990A (en) | Image encoding method, image decoding method, computer device, and image processing system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |