WO2016197334A1 - 图像编解码方法和设备 - Google Patents
图像编解码方法和设备 Download PDFInfo
- Publication number
- WO2016197334A1 WO2016197334A1 PCT/CN2015/081102 CN2015081102W WO2016197334A1 WO 2016197334 A1 WO2016197334 A1 WO 2016197334A1 CN 2015081102 W CN2015081102 W CN 2015081102W WO 2016197334 A1 WO2016197334 A1 WO 2016197334A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image block
- conversion function
- function parameter
- parameter
- adjacent image
- Prior art date
Links
Images
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/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/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/12—Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
-
- 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/124—Quantisation
-
- 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/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
-
- 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/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/167—Position within a video image, e.g. region of interest [ROI]
-
- 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/46—Embedding additional information in the video signal during the compression process
-
- 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/46—Embedding additional information in the video signal during the compression process
- H04N19/463—Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
-
- 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/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
Definitions
- Embodiments of the present invention relate to the field of information technology, and, more particularly, to an image encoding and decoding method and apparatus.
- HDR High Dynamic Range
- the HDR image employs an image representation format different from the conventional integer bit (N bit) in order to record more image luminance information, and uses 16-bit or 32-bit floating-point numbers for recording luminance information. Since the representation format of an image is different from the traditional integer bit representation, HDR video coding requires a specific pre- and post-processing flow.
- the HDR video finally needs to be quantized into integer bit data and then encoded, considering that the dynamic range of the HDR is much larger than the integer bit data, direct linear quantization may result in a great loss of information of the HDR source. Therefore, it is necessary to use a conversion function to convert an HDR video represented by a floating-point number.
- the conversion can be in the form of a non-linear conversion to protect the luminance segments that need to be protected, or other forms of conversion, such as tone mapping ( English: Tone Mapping) and so on.
- Figure 1 is a flow chart of a typical HDR video pre-processing and encoding.
- the HDR video first represented by a floating point number is processed by a conversion function to obtain R'G'B'. Then, R'G'B' is converted into an image of 4:4:4 YCbCr format, and the floating point number is converted into an integer by the quantization module.
- R'G'B' is converted into an image of 4:4:4 YCbCr format
- the floating point number is converted into an integer by the quantization module.
- it is generally quantized into fixed-length bit integer data. For example, 10-bit integer data, and finally convert 4:4:4 YCbCr data into 4:2:0 YCbCr data to complete the pre-processing.
- the pre-processed floating-point HDR data has been converted into the traditional video-encoded integer data (such as 10 bits) 4:2:0 YCbCr data, and then the encoded code stream is obtained by the encoder encoding by the conventional video coding technique.
- the fixed-length bit integer may be 16 bits, 12 bits, 10 bits, and 8 bits. For the sake of simplicity, 10 bits are taken as an example for description.
- FIG. 2 is a flow chart of corresponding decoding and post processing.
- the coded code stream is encoded by a decoder using a conventional video decoding technique to obtain reconstructed 4:2:0 10-bit YCbCr data, and then subjected to 10-bit inverse quantization to obtain 16-bit or
- the data in 32-bit floating point format is then converted to the R'G'B format, and finally processed by the inverse conversion function to obtain an HDR image video.
- the conversion function adopted by the existing HDR coding technology is a global function, that is, a video uses a unified conversion function for nonlinear processing. Since the video contains images in different brightness range, and the brightness information range of different areas of an image is not the same, the global single conversion function cannot balance the brightness characteristics of all the images in the video and all the areas in the image. Affects the effect of HDR video codec.
- a 10-bit integer codec method is adopted in order to ensure that the HDR signal source distortion is as small as possible. The design cost and complexity of the 10-bit integer codec are larger than the 8-bit integer codec method, which brings a certain cost overhead for the implementation of the HDR video codec.
- the embodiments of the present invention provide an image coding and decoding method and device, which can reduce code stream overhead and improve coding efficiency.
- an embodiment of the present invention provides an image encoding method, including: determining a conversion function parameter of a current image block; determining a conversion function parameter of a neighboring image block corresponding to the current image block; according to the current image block Determining a correlation between a conversion function parameter and a conversion function parameter of the adjacent image block, determining whether the parameter of the conversion function of the current image block is combined with the conversion function parameter of the adjacent image block, and determining a first indication, The first indication is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded; encoding the first indication.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function. .
- the conversion parameter according to the current image block and a conversion function parameter of the adjacent image block Correlation, determining whether to combine the parameters of the conversion function of the current image block with the conversion function parameters of the adjacent image block, including: if determining the conversion function parameter of the current image block and the conversion of the adjacent image block The function parameters are identical, then the current image block is determined The conversion function parameter is combined with the conversion function parameter of the adjacent image block; if it is determined that the conversion function parameter of the current image block is not exactly the same as the conversion function parameter of the adjacent image block, then determining that the current image block is not The conversion function parameter is combined with the conversion function parameter of the adjacent image block; in the case that it is determined that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block, the method further includes Determining first encoding information, wherein the first encoding information is encoding information that encodes a conversion function
- the conversion parameter according to the current image block is Determining, by the correlation of the conversion function parameters of the adjacent image block, whether to combine the parameters of the conversion function of the current image block with the conversion function parameters of the adjacent image block, including: if the conversion function parameter of the current image block If there is at least one of the same parameters as the conversion function parameter of the adjacent image block, determining to combine the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block; if the current image block is converted The function parameter is different from the parameter in the conversion function parameter of the adjacent image block, and then determining that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block; In the case where the conversion function parameter of the current image block is combined and encoded with the conversion function parameter of the adjacent image block, the method further includes Determining first encoding information, wherein the first encoding information is
- the method further includes: determining M coding flag bits, the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth coding flag bit of the M coding flag bits is used for indicating Whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; encoding the M coding flag bits; determining the second Encoding information, the second encoding information is encoding information that encodes a conversion function parameter of the current image block and a parameter different from a conversion function parameter of the adjacent image block, and the conversion function parameter of the current image block is determined by the current
- the conversion function parameter of the image block is composed of the same parameter and different parameters in the conversion function parameter of the adjacent image block;
- determining a conversion function of the current image block and a conversion function of the adjacent image block further includes: determining M coding flag bits, the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth coding flag of the M coding flag bits Bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; encoding the M coding flag bits , wherein the M parameters of the conversion function parameters of the current image block are the same as the M parameters of the conversion function parameters of the adjacent image block.
- the determining, according to the conversion function parameter of the adjacent image block of the current image block includes Determining the adjacent image block from the plurality of candidate neighboring image blocks and determining a transfer function parameter of the adjacent image block; the method further comprising: determining a position of the adjacent image block and determining a second indication, the second An indication is used to indicate a location of the adjacent image block; the second indication is encoded.
- the adjacent image block is any one of the following adjacent image blocks of the current image block. Or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, an upper left adjacent image block, an upper right adjacent image block, a lower left adjacent image block, and a time domain adjacent image block.
- an embodiment of the present invention provides an image decoding method, where the method includes: acquiring a first indication in a code stream, where the first indication is used to indicate whether a conversion function parameter of a current image block is adjacent to an adjacent image block.
- the conversion function parameter performs merge decoding; according to the first indication, the conversion function parameter of the current image block is obtained.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function .
- the obtaining, according to the first indication, the conversion function parameter of the current image block includes: Determining, in the case that the first indication is used to indicate that the conversion function parameter of the current image block is combined and decoded with the conversion function parameter of the adjacent image block, determining a conversion function parameter of the current image block and conversion of the adjacent image block The function parameters are the same.
- the current indication is obtained according to the first indication
- the conversion function parameter of the image block includes: determining that the first indication is used to indicate that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and decoded.
- the M decoding flag bits are obtained, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag bit of the M decoding flag bits is used to indicate the conversion of the current image block.
- m is 1, ..., M; determining the conversion function parameter of the current image block according to the M decoding flag bits The same parameter as the conversion function parameter of the adjacent image block; acquiring second decoding information, the second decoding information being a parameter different from the conversion function parameter of the current image block and the conversion function parameter of the image block Decoding the decoding information; decoding the second decoding information according to the M decoding flag bits to determine a parameter of the conversion function parameter of the current image block different from a conversion function parameter of the adjacent image block, wherein the current image
- the conversion function parameter of the block is composed of the same parameter and different parameters of the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block.
- the current indication is obtained according to the first indication
- the conversion function parameter of the image block includes: acquiring M decoding flag bits when determining that the first indication is used to indicate that the conversion function parameter of the current image block is combined and decoded with the conversion function parameter of the adjacent image block, wherein The M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag bit of the M decoding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the adjacent Whether the mth parameter of the conversion function parameter of the image block is the same, m is 1, ..., M; determining, according to the M decoding flag bits, a conversion function parameter of the current image block and a conversion function parameter of the adjacent image block The same parameter, wherein the M parameters of the conversion function parameters of the current image block are the same as the M parameters of the conversion function parameters of the adjacent image block.
- the obtaining, according to the first indication, the conversion function parameter of the current image block comprising: determining that the first indication is used to indicate the current image block Obtaining first decoding information, where the conversion function parameter and the conversion function parameter of the adjacent image block are not combined and decoded, the first decoding information is decoding information for decoding the conversion function parameter of the current image block; The first decoded information is decoded to obtain a conversion function parameter of the current image block.
- the method before the obtaining the conversion function parameter of the current image block according to the first indication The method further includes: obtaining a second indication; determining the phase according to the second indication Neighbor image block.
- the adjacent image block is any one of the following adjacent image blocks of the current image block. Or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, an upper left adjacent image block, an upper right adjacent image block, a lower left adjacent image block, and a time domain adjacent image block.
- an embodiment of the present invention provides an encoding device, where the device includes: a determining unit, configured to determine a conversion function parameter of a current image block; the determining unit is further configured to determine an adjacent image corresponding to the current image block. a conversion function parameter of the block; the determining unit is further configured to determine, according to the correlation between the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block, whether the parameter of the conversion function of the current image block is The conversion function parameters of the adjacent image blocks are combined and encoded, and the first indication is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded; the coding unit, Used to encode the first indication to which it belongs.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function .
- the determining unit is specifically configured to determine a conversion function parameter of the current image block and the If all parameters in the conversion function parameters of the adjacent image blocks are the same, it is determined that the conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block; if the conversion function parameter of the current image block is determined If there is at least one different parameter from the conversion function parameter of the adjacent image block, determining that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block; the coding unit is further used for Determining, by the determining unit, that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block, wherein the first encoding information is a conversion to the current image block Encoded information encoded by function parameters.
- the determining unit is specifically configured to: if the conversion function parameter is M parameters, if the current And determining that at least one of the conversion function parameter of the image block and the conversion function parameter of the adjacent image block have the same parameter, and determining that the conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block; The conversion function parameter of the current image block and the adjacent graph If the parameters in the conversion function parameters of the block are different, it is determined that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block; the coding unit is further used in the determining unit.
- the encoded information is encoded.
- the determining unit is further configured to determine M coding flag bits, the M coding flag bits and the M One-to-one correspondence of parameters, the mth coding flag bit of the M coding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the mth parameter of the conversion function parameter of the adjacent image block Whether the parameters are the same, m is 1, ..., M; the coding unit is further configured to encode the M coding flag bits; the determining unit is further configured to determine second coding information, where the second coding information is the current Encoding information of a conversion function parameter of the image block and a parameter different from a conversion function parameter of the adjacent image block, the conversion function parameter of the current image block being converted by the conversion function parameter of the current image block and the adjacent image block The same parameter and different parameters in the conversion function parameters; the coding unit is also used to encode the second coding information.
- the determining unit is further configured to determine M coding flag bits, the M coding flag bits and the M One-to-one correspondence of parameters, the mth coding flag bit of the M coding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the mth parameter of the conversion function parameter of the adjacent image block Whether the parameters are the same, m is 1, ..., M; the coding unit is further configured to encode the M coding flag bits, wherein the M parameters in the conversion function parameter of the current image block and the conversion of the adjacent image block The M parameters in the function parameters are the same.
- the determining unit is further configured to: determine from multiple candidate neighboring image blocks Determining a conversion function parameter of the adjacent image block; determining a position of the adjacent image block and determining a second indication, the second indication indicating a position of the adjacent image block; the coding unit, Also used to encode the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block. Or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, an upper left adjacent image block, an upper right adjacent image block, a lower left adjacent image block, and a time domain adjacent image block.
- the embodiment of the present invention provides a decoding device, where the device includes: a first acquiring unit, configured to acquire a first indication in a code stream, where the first indication is used to indicate whether a conversion function parameter of a current image block is Combining with the conversion function parameter of the adjacent image block; the second obtaining unit is configured to acquire the conversion function parameter of the current image block according to the first indication.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function. .
- the second acquiring unit is configured to determine, in determining, the first indication In the case where the conversion function parameter of the current image block is combined and decoded with the conversion function parameter of the adjacent image block, it is determined that the conversion function parameter of the current image block is the same as the conversion function parameter of the adjacent image block.
- the second acquiring unit is specifically configured to: when the conversion function parameter is M parameters, Determining that the first indication is used to indicate that the conversion function parameter of the current image block is combined and decoded with the conversion function parameter of the adjacent image block, acquiring M decoding flag bits, wherein the M decoding flag bits and the M The parameter one-to-one correspondence, the mth decoding flag bit of the M decoding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the mth parameter of the conversion function parameter of the adjacent image block Whether the parameters are the same, m is 1, ..., M; determining, according to the M decoding flag bits, the same parameter of the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block; according to the M decoding a flag bit, the second decoding information is decoded to determine a parameter that the conversion function parameter of the current image block is different from the conversion function parameter of
- the second acquiring unit is specifically configured to: when the conversion function parameter is M parameters, Determining that the first indication is used to indicate a conversion function parameter of the current image block and an adjacent image In the case that the conversion function parameter of the block is combined and decoded, M decoding flag bits are obtained, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag bit of the M decoding flag bits Whether the mth parameter indicating the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding flag bits, Determining a conversion function parameter of the current image block and a same parameter in a conversion function parameter of the adjacent image block, wherein the M parameters in the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are The M parameters are the same.
- the second acquiring unit is configured to determine, in determining, the first indication In a case where the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are not combined and decoded, the first decoding information is obtained, and the first decoding information is a decoding for decoding the conversion function parameter of the current image block. Information; decoding the first decoded information to obtain a conversion function parameter of the current image block.
- the device further includes: a third acquiring unit, configured to acquire the second indication according to The second indication determines the location of the adjacent image block.
- the adjacent image block is any one of the following adjacent image blocks of the current image block. Or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, an upper left adjacent image block, an upper right adjacent image block, a lower left adjacent image block, and a time domain adjacent image block.
- the above technical solution can reduce the code stream overhead and improve the coding efficiency by combining and encoding the current image block and the conversion function parameters of the adjacent image blocks.
- Figure 1 is a flow chart of a typical HDR video pre-processing and encoding.
- FIG. 2 is a flow chart of corresponding decoding and post processing.
- FIG. 3 is a structural block diagram of an image encoding method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of an image decoding method according to an embodiment of the present invention.
- FIG. 5 is a structural block diagram of an encoding apparatus according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a decoding apparatus according to an embodiment of the present invention.
- FIG. 7 is a structural block diagram of an encoding apparatus according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of a decoding device according to an embodiment of the present invention.
- FIG. 3 is a structural block diagram of an image encoding method according to an embodiment of the present invention.
- a first indication is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded.
- the code stream overhead can be reduced, and the coding efficiency can be improved.
- the correlation between the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block refers to whether at least one parameter is the same in the conversion function of the current image block and the adjacent image block.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- determining, according to the correlation between the conversion parameter of the current image block and the conversion function parameter of the adjacent image block determining whether the parameter of the conversion function of the current image block and the adjacent image block The conversion function parameter is combined and encoded, including: if it is determined that the conversion function parameter of the current image block is identical to the conversion function parameter of the adjacent image block, determining a conversion function parameter of the current image block and the adjacent image block The conversion function parameters are combined and encoded; If the conversion function parameter of the current image block is not exactly the same as the conversion function parameter of the adjacent image block, it is determined that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are not combined and encoded.
- the method further includes: determining the first encoding information, wherein the first encoding information is for the current The coding function of the image block's conversion function parameters. It can be understood that after determining that the conversion function parameter of the current image block is combined and encoded with the conversion function parameter of the adjacent image block, the corresponding value of the first indication may be determined. Similarly, in determining that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block, the value of the corresponding first indication may be determined.
- the conversion function parameter is M parameters
- determining whether to use the conversion parameter of the current image block and the conversion function parameter of the adjacent image block The parameter of the conversion function of the current image block is combined with the conversion function parameter of the adjacent image block: if the conversion function parameter of the current image block and at least one of the conversion function parameters of the adjacent image block have the same parameter, then Determining, by combining the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block; if the conversion function parameter of the current image block is different from the parameter of the conversion function parameter of the adjacent image block, Then, it is determined that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block.
- the method further includes: determining the first encoding information, wherein the first encoding information is for the current The coding function of the image block's conversion function parameters. It can be understood that, after the encoding device determines that the conversion function parameter of the current image block is combined and encoded with the conversion function parameter of the adjacent image block, the corresponding value of the first indication may be determined. Similarly, after determining that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block, the encoding device may determine a value of the corresponding first indication.
- the method further includes: determining M coding flag bits, where The M coding flag bits are in one-to-one correspondence with the M parameters, and the mth coding flag bit of the M coding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the adjacent image Whether the mth parameter parameter of the conversion function parameter of the block is the same, m is 1, ..., M; encoding the M coding flag bits; determining second coding information, the second coding information is a conversion function for the current image block
- the parameter and the conversion function parameter of the adjacent image block are not Coding information encoded by the same parameter, the conversion function parameter of the current image block is composed of the same parameter and different parameters of the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block; Two encoding information.
- the method further includes: determining M coding flag bits, The M coding flag bits are in one-to-one correspondence with the M parameters, and the mth coding flag bit of the M coding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the adjacent Whether the mth parameter parameter of the conversion function parameter of the image block is the same, m is 1, ..., M; encoding the M coding flag bits, wherein the M parameters of the conversion function parameter of the current image block and the adjacent image The M parameters in the block's conversion function parameters are the same.
- determining the transfer function parameter corresponding to the adjacent image block of the current image block comprises: determining the adjacent image block from the plurality of candidate adjacent image blocks and determining a transfer function parameter of the adjacent image block.
- the method also includes determining a location of the neighboring image block and determining a second indication for indicating a location of the neighboring image block; encoding the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image block, The upper right adjacent image block, the lower left adjacent image block, and the time domain adjacent image block.
- determining whether to combine the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block and confirming the first indication may also be implemented by the following method;
- the corresponding decoding end may determine the conversion function parameter corresponding to the current image block from the conversion function parameters of the adjacent block according to the correlation of the luminance, without the encoding end generating the first indication.
- FIG. 4 is a schematic flowchart of an image decoding method according to an embodiment of the present invention.
- the current image block after the combination and the conversion function parameters of the adjacent image block can be decoded, which can reduce the code stream overhead and improve the decoding efficiency.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- the obtaining, according to the first indication, the conversion function parameter of the current image block comprising: determining the first indication to indicate a conversion function parameter of the current image block and an adjacent image block In the case where the conversion function parameter is combined and decoded, it is determined that the conversion function parameter of the current image block is the same as the conversion function parameter of the adjacent image block.
- the acquiring the conversion function parameter of the current image block according to the first indication includes: determining the first indication to indicate a conversion function parameter of the current image block and adjacent
- M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag of the M decoding flag bits Bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding flags And determining a parameter of the conversion function parameter of the current image block and a conversion function parameter of the adjacent image block; acquiring second decoding information, where the second decoding information is a conversion function parameter of the current image block Decoding information for decoding by different parameters in a conversion function parameter of an adjacent image block, wherein a conversion function parameter of the current image block is converted by
- the acquiring the conversion function parameter of the current image block according to the first indication includes: determining the first indication to indicate a conversion function parameter of the current image block and adjacent
- M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag of the M decoding flag bits Bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding flags Bit, determining a conversion function parameter of the current image block and a same parameter in a conversion function parameter of the adjacent image block, wherein the conversion function of the current image block
- the M parameters of the number parameters are the same as the M parameters of the conversion function parameters of the adjacent image block.
- the acquiring the conversion function parameter of the current image block according to the first indication includes: determining the first indication to indicate a conversion function parameter of the current image block and an adjacent image
- the first decoding information is obtained by decoding the conversion function parameter of the current image block, and decoding the first decoding information, Get the conversion function parameters of the current image block.
- the method before acquiring the conversion function parameter of the current image block according to the first indication, the method further includes: acquiring a second indication; and determining, according to the second indication, the adjacent image block.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of the following adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image.
- the conversion function and the inverse conversion function are introduced.
- the conversion process of the encoding device and the specific form of the conversion function PQ_TF used are as follows (1):
- the transfer function parameters m 1 , m 2 , c 1 , c 2 and c 3 are identical to the inverse transfer function parameters m 1 , m 2 , c 1 , c 2 and c 3 . That is to say, the decoding device is different from the function form used by the encoding device, but the decoding device can use the same parameter as the conversion function parameter as the inverse conversion function parameter. Therefore, the encoding device can encode the conversion function parameters, and the decoding device can decode the encoding result to obtain the conversion function parameter as the inverse conversion function parameter.
- the conversion function parameter (inverse conversion function parameter) is determined by taking the parameter of the conversion function (inverse conversion function) as an index value.
- L is an input variable
- m 1 , m 2 , c 1 , c 2 , and c 3 are parameters of a function, and thus m 1 , m 2 , c 1 , c 2 , c 3 , and L can be established.
- the output values of the PQ_TF function are found according to the values of m 1 , m 2 , c 1 , c 2 , c 3 and L.
- the output value of the PQ_TF function may be obtained by setting a lookup table for the variable after the L sampled value.
- N is an input variable
- m 1 , m 2 , c 1 , c 2 , and c 3 are parameters of the function, so m 1 , m 2 , c 1 , c 2 , c 3 and L is a lookup table of variables, and the output values of the inversePQ_TF function are found according to the values of m 1 , m 2 , c 1 , c 2 , c 3 and N.
- the N-sampled value may be used as a variable to set a lookup table to obtain an output value of the invsersePQ_TF function.
- the encoding device needs to determine a conversion function of a neighboring image block corresponding to the current image block.
- the position of the adjacent image block corresponding to the current image block is fixed.
- the encoding device can directly determine the transfer function of the adjacent image blocks located at the fixed position.
- the adjacent image block refers to an adjacent image block that is spatially or temporally adjacent to the current image block. Assuming that the adjacent image block is spatially adjacent to the current image block, the adjacent image block may be an adjacent image block located at a position above, above, or to the left of the current image block. For example, it may be set that an adjacent image block corresponding to the image block is an image block located at the upper left of the current image block.
- adjacent image block corresponding to the image block when the adjacent image block corresponding to the image block is set to be an image block located at the upper left of the current image block, image blocks of some locations (for example, image blocks located at the edge) may not have corresponding neighbors. Image block. At this time, it may be set that adjacent image blocks corresponding to the sub-images follow other rules, for example, the image block on the left side of the image block is an adjacent image block of the image block. Assuming that the adjacent image block is temporally adjacent to the current image block, if the current image block is one image block in the image block of the T frame, adjacent image blocks corresponding to the current image block may be adjacent An image block of a specified position of an image block of a frame.
- the location of the adjacent image block corresponding to the current image block may not be fixed. Since the current image block may have one of a plurality of adjacent image blocks selected as the adjacent image block. A plurality of adjacent image blocks adjacent to the current image block may be referred to as candidate adjacent image blocks.
- the encoding device may determine a conversion function parameter of a neighboring image block corresponding to the current image block according to a conversion function parameter of the multiple candidate neighboring image blocks. The encoding device may compare the conversion function parameter of the plurality of candidate neighboring image blocks with the conversion function parameter of the current image block, and determine that the candidate adjacent image block of the most the same parameter is the adjacent image corresponding to the current image block. Piece.
- the encoding device can be from the multiple Any one of the candidate adjacent image blocks is arbitrarily selected as the adjacent image block.
- the encoding device further needs to determine location information of the adjacent image block and determine a second information indicating location information of the adjacent image block. Instructing and transmitting the second indication to the decoding device.
- the decoding device may determine a location of the neighboring image block according to the second indication and determine a conversion function parameter of the current image block in conjunction with the first indication.
- different values of the second indication can be used to indicate the location of the adjacent image block.
- the encoding device determines that there is one candidate neighboring image block in the plurality of candidate neighboring image blocks, the conversion function parameter of the candidate neighboring image block and the conversion function parameter of the current image block are completely If the same, the candidate adjacent image blocks that are not compared may be stopped for comparison, and the candidate adjacent image blocks are directly determined to be adjacent image blocks corresponding to the current image block.
- the conversion function parameter of the current image block is identical to the conversion function parameter of the adjacent image block, the conversion function parameter of the current image block and the adjacent image block may be determined.
- the joint function parameters are jointly encoded, and it is necessary to determine, from the plurality of candidate neighboring image blocks, candidate adjacent image blocks that are identical to the transfer function parameters of the current image block. If the corresponding candidate neighboring image block does not exist in the plurality of candidate neighboring image blocks, the adjacent image block may be determined as any one of the plurality of reference image candidate adjacent image blocks. Alternatively, it may be considered that the conversion function parameter of the adjacent image block has been determined to have at least one parameter different from the conversion function parameter of the current image block.
- the encoding device and the decoding device need to follow the same manner of determining neighboring image blocks. For example, if the position of the adjacent image block is fixed, the position of the adjacent image block determined by the encoding device and the decoding device is the same. At the same time, the decoding device does not need to acquire a second indication for indicating the position of the adjacent image block. If the location of the neighboring image block is not fixed, the decoding device needs to decode the second indication to determine the location of the neighboring image block based on the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of the following adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image.
- the encoding device may determine whether to convert the conversion function parameter of the current image block according to the transfer function parameter of the current image block and the conversion function parameter of the adjacent image block.
- the conversion function parameters of adjacent image blocks are combined and encoded.
- the decoding device may acquire a conversion function parameter of the current image block according to a first indication parameter for indicating whether to merge the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block.
- the conversion function parameters are jointly encoded. For example, if the current image block parameter transfer function in the three parameters C 1, C 2, C 3 with the transfer function parameters of adjacent image blocks three parameters C 1, C 2, C 3 are identical, the The encoding device determines to combine the current image block with the adjacent image block, determines a corresponding first indication, and encodes the first indication.
- the encoding device determines to associate the current image block with the adjacent image block.
- the image block is combined and encoded to determine a corresponding first indication and encode the first indication. If it is determined that there is at least one parameter different from the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block, determining not to merge the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block coding.
- the encoding device determines that the current image block and the adjacent image block are not correct. Performing merge coding, determining a corresponding first indication and encoding the first indication. In the case where it is determined that the current image block is not combined and encoded with the adjacent image block, the encoding device further needs to determine the first encoding information, which is the encoding information that encodes the conversion function parameter of the current image block.
- the encoding device may determine the first indication according to the determination result and encode the first indication. For example, a value of 1 of the first indication may indicate that the conversion function parameter of the current image block is combined and encoded with the adjacent image block. The value of the first indication of 0 may indicate that the conversion function parameter of the current image block is not combined with the adjacent image block.
- the conversion function parameter of the current image block may be acquired according to the first indication. Specifically, the decoding device decodes the encoded first indication to determine a value of the first indication, and determines, according to the value of the first coding, whether the conversion function parameter of the current image block and the adjacent image block are Perform merge decoding. For example, if the decoding device determines that the first indication is 1 (ie, the conversion function parameter indicating the current image block is combined and decoded with the adjacent image block), determining the conversion function parameter of the current image block and the adjacent image All parameters of the block's conversion function parameters are identical.
- the decoding device determines that the first indication is 0 (ie, indicates the current image block).
- the first decoding information is obtained by decoding the conversion function parameter of the current image block, and the first decoding information is decoded, and the first decoding information is decoded. Decode the information.
- the decoding device can obtain a conversion function parameter of the current image block by decoding the first decoding information.
- the merge code is: if the transfer function parameter of the current image block is identical to the transfer function parameter of the adjacent image block, the first indication may be used to indicate the encoding of the current image block, the first indication The conversion function parameter of the current image block may be indicated to be exactly the same as the conversion function parameter of the adjacent image block; if the decoding device decodes to determine that the first indication is a conversion function parameter indicating the current image block and a conversion function parameter of the adjacent image block If they are identical, it can be determined that the conversion function parameter of the adjacent image block is a conversion function parameter of the current graphics block.
- the encoding device can use an indication to represent the encoding information of the conversion function parameters of the current graphics block without separately encoding the conversion function parameters of the current image block.
- the merge decoding means that the decoding device can perform the decoding, and determine the conversion function parameter of the current image block according to the indication and the conversion function parameter of the corresponding adjacent image block.
- the encoding device also needs to determine the encoding flag.
- the coding flag is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are the same at the corresponding position. Therefore, the number of encoded flag bits is the same as the number of conversion function parameters of the current image block (the number of conversion function parameters of adjacent image blocks).
- the encoding device encodes the different parameters for the different parameters of the conversion function parameters of the current image block and the conversion function parameters of the adjacent image blocks.
- the five coded flag bits are represented by n 1 , n 2 , n 3 , n 4 and n 5 , respectively. n 1, n 2, n 3 , n 4 and n 5 and C 1, C 2, C 3 , C 4 and C 5-one correspondence. It is assumed that the value of the coding flag is 1 when the conversion function parameter of the current image block is the same as the conversion function parameter of the adjacent image block. When the value of the coding flag is 0, the conversion function parameter of the current image block is adjacent to the adjacent image block.
- the transfer function parameters of the image block are different at the corresponding positions, and in this example, the values of n 1 , n 2 , n 3 , n 4 , and n 5 are 1 , 0, 1 , 0, 1 , respectively.
- the encoding device may encode the first indication and the encoded flag bit according to the determination result.
- the encoding device further needs to determine second encoding information, where the encoding information of the current image block is different from the conversion function parameter of the adjacent image block. Encoding information.
- the encoding device needs to encode the conversion function parameters C 2 and C 4 .
- the encoding device determines that the conversion function parameter of the current image block is different from the conversion function parameter of the adjacent image block. If it is determined that the conversion function parameter of the current image block is different from the conversion function parameter of the adjacent image block, determining that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are not jointly encoded Determining a corresponding first indication and encoding the first indication.
- the encoding device also needs to determine first encoding information, which is encoding information that encodes a conversion function parameter of the current image block. For example, a value of 1 of the first indication may indicate that the conversion function parameter of the current image block is combined and encoded with the adjacent image block. The value of the first indication of 0 may indicate that the conversion function parameter of the current image block is not combined with the adjacent image block.
- the conversion function parameter of the current image block may be acquired according to the first indication. Specifically, the decoding device decodes the encoded first indication to determine a value of the first indication, and determines, according to the value of the first coding, whether the conversion function parameter of the current image block and the adjacent image block are Perform merge decoding. For example, if the decoding device determines that the first indication is 1 (ie, the conversion function parameter indicating the current image block is combined and decoded with the adjacent image block), the decoding device may determine the conversion function parameter and phase of the current image block. The conversion function parameters of the adjacent image blocks are combined and decoded.
- the decoding device also decodes the encoded decoding flag bit to obtain a decoding flag bit.
- the decoding device also needs to decode the second decoding information to obtain a parameter that the conversion function parameter of the current image block is different from the conversion function parameter of the adjacent image block.
- the decoding device determines, according to the value of the decoding flag bit, which of the conversion function parameters of the current image block are the same as the parameters of the conversion function parameter of the adjacent image block. In this example, the decoding device can determine that the values of n 1 , n 2 , n 3 , n 4 , and n 5 are 1 , 0, 1 , 0, 1 , respectively, so the decoding device can determine 5 of the current image block.
- parameters C 1, C 2, C 3 , C 4 and C 5 are C 1, C 3 and C 5 and transfer function parameters of adjacent image blocks in five parameters C 1, C 2, C 3 , C 4 , and C 1, C 5 is the same as C 3 and C 5, and determines whether the current image block parameter transfer function in the C 2 and C 4 to the different parameters of the image block adjacent to the transfer function of the C 2 and C 4.
- the decoding device obtains the second decoding information and obtains C 2 and C 4 in the conversion function parameters of the current image block.
- the value of the first indication of 0 may indicate that the conversion function parameter of the current image block is not combined and decoded with the adjacent image block.
- the decoding device may determine that the conversion function parameter of the current image block and the adjacent image block are determined in the case that the first indication is 0 (ie, the conversion function parameter indicating the current image block and the adjacent image block are not combined and decoded).
- the conversion function parameters are not combined and decoded.
- the decoding device acquires first decoding information, which is decoding information for decoding a conversion function parameter of the current image block.
- the decoding device decodes the first decoded information to obtain a conversion function parameter of the current image block.
- the conversion function parameter determined by the decoding device is a conversion function parameter.
- the merge coding is: if the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block have at least one identical parameter, the coding flag is used to indicate the same parameter and different parameters, in the encoding process. It is possible to encode only different parameters. That is, by combining the encoding, the encoding device can use the encoding flag bit to represent the encoding information of the partial parameters of the conversion function parameter of the current graphics block (ie, the conversion function parameter of the current image block is the same as the conversion function of the adjacent image block) The encoding information of the parameters), without having to separately encode these parameters.
- the decoding device can determine decoding information of the same parameter of the conversion function parameter of the current image block and the conversion function of the adjacent image block according to the decoding flag bit and the conversion function parameter of the corresponding adjacent image block. .
- the decoding device may determine, according to the decoding flag bit and the conversion function parameter of the adjacent image block, a conversion function parameter of the current image block (ie, a conversion function parameter of the current image block and a conversion function parameter of the adjacent image block) the same).
- the k parameters may be k parameters in the conversion function parameter of the current graphic, and the k parameters are not combined and encoded with the conversion function parameters of the corresponding adjacent image blocks.
- the k parameters are always encoded separately.
- the encoding of the encoding device corresponds to the decoding of the decoding device.
- the first indication is for the encoding device to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded.
- the decoding device may determine that the first indication is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and decoded.
- the first encoded information is the first decoded information for the decoding device.
- FIG. 5 is a structural block diagram of an encoding apparatus according to an embodiment of the present invention. As shown in FIG. 5, the encoding apparatus 500 includes a determining unit 501 and an encoding unit 502.
- the determining unit 501 is configured to determine a conversion function parameter of the current image block.
- the determining unit 501 is further configured to determine a conversion function corresponding to the adjacent image block of the current image block Number of parameters.
- the determining unit 501 is further configured to determine, according to the correlation between the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block, whether to convert the parameter of the conversion function of the current image block and the conversion of the adjacent image block
- the function parameter performs merge encoding and determines a first indication, which is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded.
- the encoding unit 502 is configured to encode the first indication to which it belongs.
- the code stream overhead can be reduced, and the encoding efficiency can be improved.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- the determining unit 501 is specifically configured to: if it is determined that the conversion function parameter of the current image block is the same as all parameters in the conversion function parameter of the adjacent image block, determine the current image block.
- the conversion function parameter is combined with the conversion function parameter of the adjacent image block; if it is determined that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block have at least one different parameter, it is determined not to The conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block.
- the encoding unit 502 is further configured to: when the determining unit determines not to combine the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block, determine the first encoding information, where the first encoding information Encoded information that encodes the transfer function parameters of the current image block.
- the determining unit 501 is specifically configured to: if the conversion function parameter is M parameters, if the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are If there is at least one of the same parameters, determining that the conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block; if the conversion function parameter of the current image block and the conversion function of the adjacent image block If the parameters in the parameter are different, it is determined that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block.
- the encoding unit 502 is further configured to: when the determining unit 501 determines that the conversion function parameter of the current image block is not combined and encoded with the conversion function parameter of the adjacent image block, determining the first encoding information, where the first encoding The information is coded information that encodes the transfer function parameters of the current image block.
- the determining unit 501 is further configured to determine M coding flag bits,
- the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth coding flag bit of the M coding flag bits is used to indicate the mth parameter of the conversion function parameter of the current image block and the adjacent Whether the mth parameter of the conversion function parameter of the image block is the same, m is 1, ..., M.
- the encoding unit 502 is further configured to encode the M coding flag bits, and the determining unit 501 is further configured to determine second coding information, where the second coding information is a conversion function parameter of the current image block and the adjacent image block.
- coding unit 502 is further configured to encode second coding information.
- the determining unit 501 is further configured to determine M coding flag bits, where the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth of the M coding flag bits
- the coding flag bits are used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, and m is 1, ..., M.
- the encoding unit 502 is further configured to encode the M coding flag bits, where the M parameters of the conversion function parameters of the current image block are the same as the M parameters of the conversion function parameters of the adjacent image block.
- the determining unit 501 is further configured to determine the neighboring image block from the plurality of candidate neighboring image blocks and determine a conversion function parameter of the adjacent image block; determine a location of the adjacent image block and determine a second indication, The second indication is for indicating the location of the adjacent image block.
- the encoding unit 502 is further configured to encode the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image block, The upper right adjacent image block, the lower left adjacent image block, and the time domain adjacent image block.
- FIG. 6 is a structural block diagram of a decoding apparatus according to an embodiment of the present invention. As shown in FIG. 6, the decoding device 600 includes a first obtaining unit 601 and a second acquiring unit 602.
- the first obtaining unit 601 is configured to obtain a first indication in the code stream, where the first indication is used to indicate whether a conversion function parameter of the current image block is combined and decoded with a conversion function parameter of the adjacent image block.
- the second obtaining unit 602 is configured to acquire a conversion function parameter of the current image block according to the first indication.
- the decoding device shown in FIG. 6 can decode the conversion function parameters of the merged current image block and the adjacent image block, which can reduce the code stream overhead and improve the decoding efficiency.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- the second obtaining unit 602 is specifically configured to: when determining that the first indication is used to indicate that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and decoded. And determining that the conversion function parameter of the current image block is the same as the conversion function parameter of the adjacent image block.
- the second obtaining unit 602 is specifically configured to: when the conversion function parameter is M parameters, determine the first indication to indicate a conversion function parameter of the current image block In the case that the conversion function parameters of the adjacent image blocks are combined and decoded, M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth of the M decoding flag bits Decoding flag bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding a flag bit, determining a conversion parameter of the current image block and a parameter in a conversion function parameter of the adjacent image block; acquiring second decoding information, where the second decoding information is a conversion function parameter of the current image block Decoding information of different parameters of the conversion function parameters of the adjacent image block, the conversion function parameter of the current image block is converted by the conversion function parameter of the
- the second obtaining unit 602 is specifically configured to: when the conversion function parameter is M parameters, determine the first indication to indicate a conversion function parameter of the current image block In the case that the conversion function parameters of the adjacent image blocks are combined and decoded, M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth of the M decoding flag bits Decoding flag bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding a flag bit, determining a conversion function parameter of the current image block and a same parameter in a conversion function parameter of the adjacent image block, wherein the M parameters of the conversion function parameter of the current image block and the conversion of the adjacent image block The M parameters in the function parameters are the same.
- the second obtaining unit 602 may further acquire second decoding information, where the second decoding information is a conversion function parameter of the current image block and a conversion function parameter of the adjacent image block.
- the decoding information is decoded by different parameters; and the second decoding information is decoded according to the M decoding flag bits to determine a parameter of the conversion function parameter of the current image block and a conversion function parameter of the adjacent image block.
- the second obtaining unit 602 is specifically configured to: after determining that the first indication is used to indicate that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are not combined and decoded.
- the first decoding information is obtained, and the first decoding information is decoding information for decoding the conversion function parameter of the current image block; and the first decoding information is decoded to obtain a conversion function parameter of the current image block.
- the device further includes: a third obtaining unit 603, configured to acquire the second indication, and determine the adjacent image block according to the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image block, The upper right adjacent image block, the lower left adjacent image block, and the time domain adjacent image block.
- FIG. 7 is a structural block diagram of an encoding apparatus according to an embodiment of the present invention.
- the encoding device 700 shown in FIG. 7 includes a processor 701 and a memory 702.
- bus system 703 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
- bus system 703 various buses are labeled as bus system 703 in FIG.
- Processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in a form of software.
- the processor 701 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read only memory or an electrically erasable programmable memory, a register, etc.
- RAM random access memory
- ROM read-only memory
- programmable read only memory or an electrically erasable programmable memory
- register etc.
- the storage medium is located in the memory 702 for processing
- the 701 reads the instructions in the memory 702 and, in conjunction with its hardware, performs the steps of the above method.
- the processor 701 is configured to determine a conversion function parameter of the current image block.
- the processor 701 is further configured to determine a conversion function parameter of a neighboring image block corresponding to the current image block.
- the processor 701 is further configured to determine, according to the correlation between the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block, whether to convert the parameter of the conversion function of the current image block and the conversion of the adjacent image block
- the function parameter performs merge encoding and determines a first indication, which is used to indicate whether the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are combined and encoded.
- the processor 701 is configured to encode the first indication to which the identifier belongs.
- the encoding apparatus 700 shown in FIG. 7 by combining and encoding the current image block and the conversion function parameters of the adjacent image blocks, the code stream overhead can be reduced, and the encoding efficiency can be improved.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- the processor 701 is specifically configured to: if it is determined that the conversion function parameter of the current image block is the same as all parameters in the conversion function parameter of the adjacent image block, determine the current image block.
- the conversion function parameter is combined with the conversion function parameter of the adjacent image block; if it is determined that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block have at least one different parameter, it is determined not to The conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block.
- the processor 701 is further configured to: when the determining unit determines not to combine the conversion function parameter of the current image block with the conversion function parameter of the adjacent image block, determine the first encoding information, where the first encoding information Encoded information that encodes the transfer function parameters of the current image block.
- the processor 701 is specifically configured to: if the conversion function parameter is M parameters, if the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are If there is at least one of the same parameters, determining that the conversion function parameter of the current image block is combined with the conversion function parameter of the adjacent image block; if the conversion function parameter of the current image block and the conversion function of the adjacent image block If the parameters in the parameter are different, it is determined that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block.
- the processor 701 is further configured to: when the processor 701 determines that the conversion function parameter of the current image block is not combined with the conversion function parameter of the adjacent image block, determine the first encoded signal. Information, wherein the first encoding information is encoding information that encodes a conversion function parameter of the current image block.
- the processor 701 is further configured to determine M coding flag bits, where the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth of the M coding flag bits The coded flag bit is used to indicate whether the mth parameter of the transfer function parameter of the current image block is the same as the mth parameter of the transfer function parameter of the adjacent image block, and m is 1, ..., M.
- the processor 701 is further configured to encode the M coding flag bits, and the processor 701 is further configured to determine second coding information, where the second coding information is a conversion function parameter of the current image block and the adjacent image block.
- the conversion function parameter of the current image block being different from the same parameter in the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block
- the parameter is composed; the processor 701 is further configured to encode the second encoded information.
- the processor 701 is further configured to determine M coding flag bits, where the M coding flag bits are in one-to-one correspondence with the M parameters, and the mth of the M coding flag bits The coding flag bits are used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, and m is 1, ..., M.
- the processor 701 is further configured to encode the M coding flag bits, where the M parameters of the conversion function parameters of the current image block are the same as the M parameters of the conversion function parameters of the adjacent image block.
- the processor 701 is further configured to determine the neighboring image block from the plurality of candidate neighboring image blocks and determine a conversion function parameter of the adjacent image block; determine a location of the adjacent image block and determine a second indication, The second indication is for indicating the location of the adjacent image block.
- the processor 701 is further configured to encode the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image block, The upper right adjacent image block, the lower left adjacent image block, and the time domain adjacent image block.
- FIG. 8 is a structural block diagram of a decoding device according to an embodiment of the present invention.
- the editing device 800 shown in FIG. 8 includes a processor 801 and a memory 802.
- bus system 803 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
- bus system 803 various buses are labeled as bus system 803 in FIG.
- Processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 801 or an instruction in a form of software.
- the processor 801 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read only memory or an electrically erasable programmable memory, a register, etc.
- RAM random access memory
- ROM read-only memory
- programmable read only memory or an electrically erasable programmable memory
- register etc.
- processor 801 reads the instructions in memory 802 and, in conjunction with its hardware, performs the steps of the above method.
- the processor 801 is configured to obtain a first indication in the code stream, where the first indication is used to indicate whether a conversion function parameter of the current image block is combined and decoded with a conversion function parameter of the adjacent image block.
- the processor 801 is configured to acquire a conversion function parameter of the current image block according to the first indication.
- the decoding device shown in FIG. 8 can decode the conversion function parameters of the merged current image block and the adjacent image block, which can reduce the code stream overhead and improve the decoding efficiency.
- the conversion function parameter is M parameters, and M is a positive integer greater than or equal to 1; or, the conversion function parameter is an index value of the conversion function.
- the processor 801 is specifically configured to: when determining that the first indication is used to indicate that the conversion function parameter of the current image block is combined and decoded by a conversion function parameter of an adjacent image block, The conversion function parameter of the current image block is the same as the conversion function parameter of the adjacent image block.
- the processor 801 is specifically configured to: when the conversion function parameter is M parameters, determine the first indication to indicate a conversion function parameter of the current image block and adjacent In the case that the conversion function parameter of the image block is combined and decoded, M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag of the M decoding flag bits Bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding flag bits Determining a conversion function parameter of the current image block and the adjacent image Obtaining the same parameter in the conversion function parameter of the block; acquiring second decoding information, the second decoding information is decoding the different parameters in the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block Decoding information, the conversion function parameter of the current image block is composed of the same parameter and different
- the processor 801 is specifically configured to: when the conversion function parameter is M parameters, determine the first indication to indicate a conversion function parameter of the current image block and adjacent In the case that the conversion function parameter of the image block is combined and decoded, M decoding flag bits are acquired, wherein the M decoding flag bits are in one-to-one correspondence with the M parameters, and the mth decoding flag of the M decoding flag bits Bit is used to indicate whether the mth parameter of the conversion function parameter of the current image block is the same as the mth parameter of the conversion function parameter of the adjacent image block, m is 1, ..., M; according to the M decoding flag bits Determining, by the conversion function parameter of the current image block, the same parameter as the conversion function parameter of the adjacent image block, wherein the M parameter in the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block The M parameters in the same are the same.
- the processor 801 is specifically configured to: when determining that the first indication is used to indicate that the conversion function parameter of the current image block and the conversion function parameter of the adjacent image block are not combined and decoded. And acquiring first decoding information, where the first decoding information is decoding information for decoding a conversion function parameter of the current image block; and decoding the first decoding information to obtain a conversion function parameter of the current image block.
- the device further includes: a processor 801, configured to acquire a second indication and determine the adjacent image block according to the second indication.
- the adjacent image block is any one of the following adjacent image blocks of the current image block or any of a plurality of adjacent image blocks: a left adjacent image block, an upper adjacent image block, and an upper left adjacent image block, The upper right adjacent image block, the lower left adjacent image block, and the time domain adjacent image block.
- the disclosed systems, devices, and methods may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
- the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
Abstract
Description
Claims (32)
- 一种图像编码方法,其特征在于,所述方法包括:确定当前图像块的转换函数参数;确定对应于所述当前图像块的相邻图像块的转换函数参数;根据所述当前图像块的转换函数参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码并确定第一指示,所述第一指示用于指示所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数是否进行合并编码;编码所述第一指示。
- 如权利要求1所述的方法,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,所述转换函数参数为转换函数的索引值。
- 如权利要求1或2所述的方法,其特征在于,所述根据所述当前图像块的转换参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码,包括:若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数完全相同,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不完全相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;在确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
- 如权利要求2所述的方法,其特征在于,在所述转换函数参数为M 个参数的情况下,所述根据所述当前图像块的转换参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码,包括:若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的参数均不相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;在确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
- 如权利要求4所述的方法,其特征在于,在确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;编码所述M个编码标志位;确定第二编码信息,所述第二编码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;编码所述第二编码信息。
- 如权利要求4所述的方法,其特征在于,在确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;编码所述M个编码标志位,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
- 如权利要求1至6中任一项所述的方法,其特征在于,所述确定对应于当前图像块的相邻图像块的转换函数参数,包括:从多个候选相邻图像块中确定所述相邻图像块并确定所述相邻图像块的转换函数参数;所述方法还包括:确定所述相邻图像块的位置并确定第二指示,所述第二指示用于指示所述相邻图像块的位置;编码所述第二指示。
- 如权利要求1至7中任一项所述的方法,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
- 一种图像解码方法,其特征在于,所述方法包括:获取码流中的第一指示,其中所述第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;根据所述第一指示,获取所述当前图像块的转换函数参数。
- 如权利要求9所述的方法,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,所述转换函数参数为转换函数的索引值。
- 如权利要求9或10所述的方法,其特征在于,所述根据所述第一 指示,获取所述当前图像块的转换函数参数,包括:在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数相同。
- 如权利要求10所述的方法,其特征在于,在所述转换函数参数为M个参数的情况下,所述根据所述第一指示,获取所述当前图像块的转换函数参数,包括:在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数;获取第二解码信息,所述第二解码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行解码的解码信息;根据所述M个解码标志位,对所述第二解码信息进行解码以确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不同的参数,其中所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成。
- 如权利要求10所述的方法,其特征在于,在所述转换函数参数为M个参数的情况下,所述根据所述第一指示,获取所述当前图像块的转换函数参数,包括:在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参 数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
- 如权利要求9所述的方法,其特征在于,根据所述第一指示,获取所述当前图像块的转换函数参数,包括:在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,所述第一解码信息为对所述当前图像块的转换函数参数的进行解码的解码信息;对所述第一解码信息进行解码以获取所述当前图像块的转换函数参数。
- 如权利要求9至14中任一项所述的方法,其特征在于,在所述根据所述第一指示,获取所述当前图像块的转换函数参数之前,所述方法还包括:获取第二指示;根据所述第二指示,确定所述相邻图像块。
- 如权利要求9至15中任一项所述的方法,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
- 一种编码设备,其特征在于,所述设备包括:确定单元,用于确定当前图像块的转换函数参数;所述确定单元,还用于确定对应于所述当前图像块的相邻图像块的转换函数参数;所述确定单元,还用于根据所述当前图像块的转换函数参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的 参数与所述相邻图像块的转换函数参数进行合并编码并确定第一指示,所述第一指示用于指示所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数是否进行合并编码;编码单元,用于编码所属第一指示。
- 如权利要求17所述的设备,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,所述转换函数参数为转换函数的索引值。
- 如权利要求17或18所述的设备,其特征在于,所述确定单元,具体用于若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的所有参数均相同,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数存在至少一个不同的参数,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合;所述编码单元,还用于在所述确定单元确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合的情况下,确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
- 如权利要求18所述的设备,其特征在于,所述确定单元,具体用于在所述转换函数参数为M个参数的情况下,若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的参数均不相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;所述编码单元,还用于在所述确定单元确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,确定第 一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
- 如权利要求20所述的设备,其特征在于,所述确定单元,还用于确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;所述编码单元,还用于编码所述M个编码标志位;所述确定单元,还用于确定第二编码信息,所述第二编码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;所述编码单元,还用于编码第二编码信息。
- 如权利要求20所述的设备,其特征在于,所述确定单元,还用于确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;所述编码单元,还用于编码所述M个编码标志位,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
- 如权利要求17至22中任一项所述的设备,其特征在于,所述确定单元,还用于:从多个候选相邻图像块中确定所述相邻图像块并确定所述相邻图像块的转换函数参数;确定所述相邻图像块的位置并确定第二指示,所述第二指示用于指示所述相邻图像块的位置;所述编码单元,还用于编码所述第二指示。
- 如权利要求17至23中任一项所述的设备,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
- 一种解码设备,其特征在于,所述设备包括:第一获取单元,用于获取码流中的第一指示,其中所述第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;第二获取单元,用于根据所述第一指示,获取所述当前图像块的转换函数参数。
- 如权利要求25所述的设备,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,所述转换函数参数为转换函数的索引值。
- 如权利要求25或26所述的设备,其特征在于,所述第二获取单元,具体用于在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数相同。
- 如权利要求26所述的设备,其特征在于,所述第二获取单元,具体用于在所述转换函数参数为M个参数的情况下,在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所 述相邻图像块的转换函数参数中的相同的参数;获取第二解码信息,所述第二解码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;根据所述M个解码标志位,对所述第二解码信息进行解码以确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不同的参数。
- 如权利要求26所述的设备,其特征在于,所述第二获取单元,具体用于在所述转换函数参数为M个参数的情况下,在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
- 如权利要求25或26所述的设备,其特征在于,所述第二获取单元,具体用于在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,所述第一解码信息为对所述当前图像块的转换函数参数的进行解码的解码信息;对所述第一解码信息进行解码以获取所述当前图像块的转换函数参数。
- 如权利要求25至30中任一项所述的设备,其特征在于,所述设备还包括:第三获取单元,用于获取第二指示并根据所述第二指示,确定所述相邻图像块。
- 如权利要求25至31中任一项所述的设备,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
Priority Applications (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP15894604.6A EP3310055A4 (en) | 2015-06-09 | 2015-06-09 | Image encoding/decoding method and apparatus |
CN201580077269.2A CN107431822B (zh) | 2015-06-09 | 2015-06-09 | 图像编解码方法和设备 |
PCT/CN2015/081102 WO2016197334A1 (zh) | 2015-06-09 | 2015-06-09 | 图像编解码方法和设备 |
JP2017564020A JP6532962B2 (ja) | 2015-06-09 | 2015-06-09 | 画像符号化方法、画像復号方法、符号化デバイス、および復号デバイス |
KR1020187000457A KR102206980B1 (ko) | 2015-06-09 | 2015-06-09 | 이미지 인코딩 방법, 이미지 디코딩 방법, 인코딩 장치, 및 디코딩 장치 |
US15/836,827 US10609389B2 (en) | 2015-06-09 | 2017-12-09 | Image encoding method, image decoding method, encoding device, and decoding device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/081102 WO2016197334A1 (zh) | 2015-06-09 | 2015-06-09 | 图像编解码方法和设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/836,827 Continuation US10609389B2 (en) | 2015-06-09 | 2017-12-09 | Image encoding method, image decoding method, encoding device, and decoding device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016197334A1 true WO2016197334A1 (zh) | 2016-12-15 |
Family
ID=57502831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/081102 WO2016197334A1 (zh) | 2015-06-09 | 2015-06-09 | 图像编解码方法和设备 |
Country Status (6)
Country | Link |
---|---|
US (1) | US10609389B2 (zh) |
EP (1) | EP3310055A4 (zh) |
JP (1) | JP6532962B2 (zh) |
KR (1) | KR102206980B1 (zh) |
CN (1) | CN107431822B (zh) |
WO (1) | WO2016197334A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3427478B1 (en) * | 2016-03-07 | 2023-08-23 | Koninklijke Philips N.V. | Encoding and decoding hdr videos |
CN110545432A (zh) * | 2018-05-28 | 2019-12-06 | 深信服科技股份有限公司 | 一种图像编码、解码方法、相关装置及存储介质 |
CN117319681A (zh) | 2019-04-02 | 2023-12-29 | 北京字节跳动网络技术有限公司 | 基于双向光流的视频编解码和解码 |
KR20210152470A (ko) | 2019-04-19 | 2021-12-15 | 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 | 상이한 모션 벡터 정제의 그레디언트 계산 |
WO2020211866A1 (en) * | 2019-04-19 | 2020-10-22 | Beijing Bytedance Network Technology Co., Ltd. | Applicability of prediction refinement with optical flow process |
WO2020211867A1 (en) | 2019-04-19 | 2020-10-22 | Beijing Bytedance Network Technology Co., Ltd. | Delta motion vector in prediction refinement with optical flow process |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101779463A (zh) * | 2007-07-17 | 2010-07-14 | 汤姆森许可贸易公司 | 用于处理图像的方法以及相应的电子设备 |
WO2012097376A1 (en) * | 2011-01-14 | 2012-07-19 | General Instrument Corporation | Spatial block merge mode |
CN102685477A (zh) * | 2011-03-10 | 2012-09-19 | 华为技术有限公司 | 获取用于合并模式的图像块的方法和设备 |
CN103518375A (zh) * | 2012-04-16 | 2014-01-15 | 联发科技股份有限公司 | 用于贯穿条带或图块边界环路滤波的方法及其装置 |
CN103636221A (zh) * | 2012-05-25 | 2014-03-12 | 松下电器产业株式会社 | 图像编码方法、图像解码方法、图像编码装置、图像解码装置以及图像编码解码装置 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8194997B2 (en) | 2006-03-24 | 2012-06-05 | Sharp Laboratories Of America, Inc. | Methods and systems for tone mapping messaging |
JP5188356B2 (ja) * | 2008-02-28 | 2013-04-24 | ミツビシ・エレクトリック・リサーチ・ラボラトリーズ・インコーポレイテッド | 復号器において画像を逆トーンマッピングする方法 |
CN103299623B (zh) * | 2010-11-04 | 2017-03-08 | Ge视频压缩有限责任公司 | 支持区块合并和跳过模式的图像编码 |
WO2012122425A1 (en) * | 2011-03-10 | 2012-09-13 | Dolby Laboratories Licensing Corporation | Bitdepth and color scalable video coding |
US9591331B2 (en) | 2012-03-28 | 2017-03-07 | Qualcomm Incorporated | Merge signaling and loop filter on/off signaling |
CN105324997B (zh) * | 2013-06-17 | 2018-06-29 | 杜比实验室特许公司 | 用于增强动态范围信号的分层编码的自适应整形 |
KR20160031989A (ko) * | 2013-07-12 | 2016-03-23 | 소니 주식회사 | 이미지 처리 장치 및 이미지 처리 방법 |
WO2016172394A1 (en) * | 2015-04-21 | 2016-10-27 | Arris Enterprises Llc | Adaptive perceptual mapping and signaling for video coding |
US10397585B2 (en) * | 2015-06-08 | 2019-08-27 | Qualcomm Incorporated | Processing high dynamic range and wide color gamut video data for video coding |
-
2015
- 2015-06-09 WO PCT/CN2015/081102 patent/WO2016197334A1/zh active Application Filing
- 2015-06-09 KR KR1020187000457A patent/KR102206980B1/ko active IP Right Grant
- 2015-06-09 EP EP15894604.6A patent/EP3310055A4/en not_active Withdrawn
- 2015-06-09 JP JP2017564020A patent/JP6532962B2/ja active Active
- 2015-06-09 CN CN201580077269.2A patent/CN107431822B/zh active Active
-
2017
- 2017-12-09 US US15/836,827 patent/US10609389B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101779463A (zh) * | 2007-07-17 | 2010-07-14 | 汤姆森许可贸易公司 | 用于处理图像的方法以及相应的电子设备 |
WO2012097376A1 (en) * | 2011-01-14 | 2012-07-19 | General Instrument Corporation | Spatial block merge mode |
CN102685477A (zh) * | 2011-03-10 | 2012-09-19 | 华为技术有限公司 | 获取用于合并模式的图像块的方法和设备 |
CN103518375A (zh) * | 2012-04-16 | 2014-01-15 | 联发科技股份有限公司 | 用于贯穿条带或图块边界环路滤波的方法及其装置 |
CN103636221A (zh) * | 2012-05-25 | 2014-03-12 | 松下电器产业株式会社 | 图像编码方法、图像解码方法、图像编码装置、图像解码装置以及图像编码解码装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3310055A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP3310055A4 (en) | 2018-06-20 |
KR20180016508A (ko) | 2018-02-14 |
JP6532962B2 (ja) | 2019-06-19 |
JP2018522467A (ja) | 2018-08-09 |
CN107431822A (zh) | 2017-12-01 |
US20180103257A1 (en) | 2018-04-12 |
US10609389B2 (en) | 2020-03-31 |
EP3310055A1 (en) | 2018-04-18 |
CN107431822B (zh) | 2019-11-29 |
KR102206980B1 (ko) | 2021-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016197334A1 (zh) | 图像编解码方法和设备 | |
BR112017004490B1 (pt) | Método para a construção de uma tabela de hash para correspondência de bloco baseada em hash, dispositivo de computação e meio de armazenamento legível por computador | |
KR20160124190A (ko) | 영상 부호화, 복호화 방법 및 장치 | |
JP2017525220A (ja) | ビデオ符号化における構文の2値化とコンテキスト適応型符号化の方法と装置 | |
JP2018142974A (ja) | 後方互換性拡張画像フォーマット | |
JP2019521554A (ja) | ルマ成分と2つのクロマ成分とを含む入力ビデオを符号化する方法であって、前記方法は、再形成関数に基づく前記入力ビデオの再形成を含む、方法 | |
US20170041623A1 (en) | Method and Apparatus for Intra Coding for a Block in a Coding System | |
JP2022500890A (ja) | ビデオ画像成分の予測方法、装置及びコンピュータ記憶媒体 | |
JP4650512B2 (ja) | 画像符号化装置及び集積回路装置 | |
US20130235231A1 (en) | Vector embedded graphics coding | |
JP2017005456A (ja) | 画像圧縮方法、画像圧縮装置及び撮像装置 | |
WO2017063168A1 (zh) | 图像编码方法、装置以及图像处理设备 | |
US10218985B2 (en) | Intra-frame depth map block encoding and decoding methods, and apparatus | |
JP2022523697A (ja) | 適応的な数の領域を伴う幾何学的分割におけるインター予測 | |
JP2014146988A (ja) | 動画像符号化装置 | |
KR20170007467A (ko) | 순방향 변환 행렬을 사용하여 비디오 인코더에 의해 순방향 변환을 수행하는 기술 | |
TWI505717B (zh) | 彩色影像之接合純量嵌入圖形寫碼 | |
KR20180010195A (ko) | 비디오 신호를 컬러 맵핑하기 위한 방법 및 대응하는 디바이스 | |
CN109474826B (zh) | 图片压缩方法、装置、电子设备及存储介质 | |
WO2015196860A1 (zh) | 一种图像处理方法、装置及系统 | |
JP2019502287A (ja) | 共通の情報データセットによって駆動される候補プロセスセットから、ビデオデータに適用されるプロセスを選択するための方法及び装置 | |
CN111131857A (zh) | 图像压缩方法、装置及电子设备 | |
WO2017101137A1 (zh) | 一种高动态范围图像的处理方法、装置及终端设备 | |
CN113099232A (zh) | 视频解码方法、装置、电子设备及计算机存储介质 | |
EP2887667A1 (en) | Coding of high dynamic range images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15894604 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2017564020 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 20187000457 Country of ref document: KR Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2015894604 Country of ref document: EP |