WO2016197334A1 - 图像编解码方法和设备 - Google Patents

图像编解码方法和设备 Download PDF

Info

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
Application number
PCT/CN2015/081102
Other languages
English (en)
French (fr)
Inventor
郑萧桢
郑建铧
陈海
李蒙
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP15894604.6A priority Critical patent/EP3310055A4/en
Priority to CN201580077269.2A priority patent/CN107431822B/zh
Priority to PCT/CN2015/081102 priority patent/WO2016197334A1/zh
Priority to JP2017564020A priority patent/JP6532962B2/ja
Priority to KR1020187000457A priority patent/KR102206980B1/ko
Publication of WO2016197334A1 publication Critical patent/WO2016197334A1/zh
Priority to US15/836,827 priority patent/US10609389B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/17Methods 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/176Methods 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/12Selection 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods 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/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods 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/167Position within a video image, e.g. region of interest [ROI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods 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

图像编解码方法和设备 技术领域
本发明实施例涉及信息技术领域,并且更具体地,涉及图像编解码方法和设备。
背景技术
近年来,高动态范围(英文:High Dynamic Range,简称:HDR)技术日趋成熟及广泛用于图像和视频编解码技术中。相比普通的图像,可以提供更多的动态范围和图像细节,能够更好的反映出真实环境中的视觉效果。HDR的图像为了记录更多的图像亮度信息采用了不同于传统的整数比特(N比特)的图像表示格式,而采用了16比特或32比特浮点数用于记录亮度信息。由于图像的表示格式不同于传统的整数比特表示方式,HDR视频编码需要经过特定的前后处理流程。
由于HDR视频最终需要被量化为整数比特的数据再进行编码,考虑到HDR的动态范围远大于整数比特的数据,若直接进行线性量化会导致HDR源的信息有极大的损失。因此,需要使用转换函数对采用浮点数表示的HDR视频进行转换,这种转换的形式可以为非线性转换,用于保护需要重点保护的亮度段,也可以为其它形式的转换,例如色调映射(英文:Tone Mapping)等。
图1是一个典型的HDR视频前处理与编码的流程图。
如图1所示,首先采用浮点数表示的HDR视频经过转换函数处理得到R’G’B’。然后,R’G’B’转换成4:4:4 YCbCr格式的图像,再经量化模块将浮点数转换为整数,为了保证HDR源的损失尽可能小,一般会量化为固定长度比特整数数据,例如10比特整数数据,最后将4:4:4 YCbCr数据转化为4:2:0 YCbCr数据完成前处理过程。经前处理后浮点数HDR数据已转换成传统视频编码的所述整数数据(如10比特)4:2:0 YCbCr数据,此时再经采用传统视频编码技术的编码器编码得到编码码流,其中,所述固定长度比特整数,可以为16比特,12比特,10比特,8比特,以下简单起见,以10比特为例进行描述。
图2是对应的解码以及后处理的流程图。
如图2所示,首先,在解码端,编码码流经采用传统视频解码技术的解码器编码得到重构的4:2:0 10比特YCbCr数据,然后经10比特逆量化得到采用16比特或32比特浮点数格式的数据,随后再转换成R’G’B格式,最后经逆转换函数处理得到HDR图像视频。
现有HDR编码技术采用的转换函数为全局函数,即一个视频采用统一的转换函数做非线性处理。由于视频中包含了处于不同亮度区间范围的图像,而一幅图像不同区域的亮度信息范围也不尽相同,采用全局单一的转换函数不能兼顾视频中所有图像、图像中所有区域的亮度特性,从而影响了HDR视频编解码的效果。此外,目前HDR视频编解码方法中为了保证HDR信号源失真尽可能少,采用了10比特整数编解码方法。10比特整数编解码器的设计成本及复杂度均大于8比特整数编解码方法,由此为HDR视频编解码器的实现带来了一定的成本开销。
发明内容
本发明实施例提供图像编解码方法和设备,能够降低码流开销,提高编码效率。
第一方面,本发明实施例提供一种图像编码方法,该方法包括:确定当前图像块的转换函数参数;确定对应于该当前图像块的相邻图像块的转换函数参数;根据该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码并确定第一指示,该第一指示用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码;编码该第一指示。
结合第一方面,在第一方面的第一种可能的实现方式中,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该根据该当前图像块的转换参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码,包括:若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数完全相同,则确定将该当前图像块的 转换函数参数与该相邻图像块的转换函数参数进行合并编码;若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不完全相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,在该转换函数参数为M个参数的情况下,该根据该当前图像块的转换参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码,包括:若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的参数均不相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,在确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;编码该M个编码标志位;确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;编码该第二编码信息。
结合第一方面的第三种可能的实现方式,在第一方面的第五种可能的实现方式中,在确定将该当前图像块的转换函数参数与该相邻图像块的转换函 数参数进行合并编码的情况下,该方法还包括:确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;编码该M个编码标志位,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
结合第一方面或第一方面的上述任一种可能的实现方式,在第一方面的第六种可能的实现方式中,该确定对应于当前图像块的相邻图像块的转换函数参数,包括:从多个候选相邻图像块中确定该相邻图像块并确定该相邻图像块的转换函数参数;该方法还包括:确定该相邻图像块的位置并确定第二指示,该第二指示用于指示该相邻图像块的位置;编码该第二指示。
结合第一方面或第一方面的上述任一种可能的实现方式,在第一方面的第七种可能的实现方式中,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
第二方面,本发明实施例提供一种图像解码方法,该方法包括:获取码流中的第一指示,其中该第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;根据该第一指示,获取该当前图像块的转换函数参数。
结合第二方面,在第二方面的第一种可能的实现方式中,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,该根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同。
结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,在该转换函数参数为M个参数的情况下,该根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情 况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数;获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该图像块的转换函数参数中的不同的参数进行解码的解码信息;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数,其中该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成。
结合第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,在该转换函数参数为M个参数的情况下,该根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
结合第二方面,在第二方面的第五种可能的实现方式中,根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数的进行解码的解码信息;对该第一解码信息进行解码以获取该当前图像块的转换函数参数。
结合第二方面或第二方面的上述任一种可能的实现方式,在第二方面的第六种可能的实现方式中,在该根据该第一指示,获取该当前图像块的转换函数参数之前,该方法还包括:获取第二指示;根据该第二指示,确定该相 邻图像块。
结合第二方面或第二方面的上述任一种可能的实现方式,在第二方面的第七种可能的实现方式中,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
第三方面,本发明实施例提供一种编码设备,该设备包括:确定单元,用于确定当前图像块的转换函数参数;该确定单元,还用于确定对应于该当前图像块的相邻图像块的转换函数参数;该确定单元,还用于根据该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码并确定第一指示,该第一指示用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码;编码单元,用于编码所属第一指示。
结合第三方面,在第三方面的第一种可能的实现方式中,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,该确定单元,具体用于若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的所有参数均相同,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数存在至少一个不同的参数,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合;该编码单元,还用于在该确定单元确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合的情况下,确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
结合第三方面的第一种可能的实现方式,在第三方面的第三种可能的实现方式中,该确定单元,具体用于在该转换函数参数为M个参数的情况下,若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若该当前图像块的转换函数参数与该相邻图 像块的转换函数参数中的参数均不相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;该编码单元,还用于在该确定单元确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
结合第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,该确定单元,还用于确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;该编码单元,还用于编码该M个编码标志位;该确定单元,还用于确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;该编码单元,还用于编码第二编码信息。
结合第三方面的第三种可能的实现方式,在第三方面的第五种可能的实现方式中,该确定单元,还用于确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;该编码单元,还用于编码该M个编码标志位,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
结合第三方面或第三方面的上述任一种可能的实现方式,在第三方面的第六种可能的实现方式中,该确定单元,还用于:从多个候选相邻图像块中确定该相邻图像块并确定该相邻图像块的转换函数参数;确定该相邻图像块的位置并确定第二指示,该第二指示用于指示该相邻图像块的位置;该编码单元,还用于编码该第二指示。
结合第三方面或第三方面的上述任一种可能的实现方式,在第三方面的第七种可能的实现方式中,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
第四方面,本发明实施例提供一种解码设备,该设备包括:第一获取单元,用于获取码流中的第一指示,其中该第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;第二获取单元,用于根据该第一指示,获取该当前图像块的转换函数参数。
结合第四方面,在第四方面的第一种可能的实现方式中,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,该第二获取单元,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同。
结合第四方面的第一种可能的实现方式,在第四方面的第三种可能的实现方式中,该第二获取单元,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数;获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数。
结合第四方面的第一种可能的实现方式,在第四方面的第四种可能的实现方式中,该第二获取单元,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像 块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第五种可能的实现方式中,该第二获取单元,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数的进行解码的解码信息;对该第一解码信息进行解码以获取该当前图像块的转换函数参数。
结合第四方面或第四方面的上述任一种可能的实现方式,在第四方面的第六种可能的实现方式中,该设备还包括:第三获取单元,用于获取第二指示并根据该第二指示,确定该相邻图像块的位置。
结合第四方面或第四方面的上述任一种可能的实现方式,在第四方面的第七种可能的实现方式中,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
上述技术方案通过将当前图像块与相邻图像块的转换函数参数进行合并编码,可以降低码流开销,提高编码效率。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一个典型的HDR视频前处理与编码的流程图。
图2是对应的解码以及后处理的流程图。
图3是根据本发明实施例提供的图像编码方法的结构框图。
图4是根据本发明实施例提供的图像解码方法的示意性流程图。
图5是根据本发明实施例提供的编码设备的结构框图。
图6是根据本发明实施例提供的解码设备的结构框图。
图7是根据本发明实施例提供的编码设备的结构框图。
图8是根据本发明实施例提供的解码设备的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
图3是根据本发明实施例提供的图像编码方法的结构框图。
301,确定当前图像块的转换函数参数。
302,确定对应于该当前图像块的相邻图像块的转换函数参数。
303,根据该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码并确第一指示,该第一指示用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码。
304,编码该第一指示。
根据图3所示的方法通过将当前图像块与相邻图像块的转换函数参数进行合并编码,可以降低码流开销,提高编码效率。
该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性是指是否有至少一个参数在该当前图像块和该相邻图像块的转换函数中是相同的。
可选的,作为一个实施例,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,该根据该当前图像块的转换参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码,包括:若该确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数完全相同,则确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若确 定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不完全相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码。在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。可以理解的是,在确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码后,可以确定对应的该第一指示的值。类似的,在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码,可以确定对应的第一指示的值。
可选的,作为另一个实施例,在该转换函数参数为M个参数的情况下,该根据该当前图像块的转换参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码:若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的参数均不相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码。在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。可以理解的是,该编码设备在确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码后,可以确定对应的该第一指示的值。类似的,该编码设备在确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码后,可以确定对应的第一指示的值。
可选的,作为一个实施例,在确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数参数是否相同,m为1,…,M;编码该M个编码标志位;确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不 同的参数进行编码的编码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;编码该第二编码信息。
可选的,作为另一个实施例,在确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,该方法还包括:确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数参数是否相同,m为1,…,M;编码该M个编码标志位,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
进一步,该确定对应于当前图像块的相邻图像块的转换函数参数,包括:从多个候选相邻图像块中确定该相邻图像块并确定该相邻图像块的转换函数参数。该方法还包括:确定该相邻图像块的位置并确定第二指示,该第二指示用于指示该相邻图像块的位置;编码该第二指示。
进一步,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
作为本发明的一种可选的实施例,确定是否将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码并确第一指示也可以通过如下的方法来实现;
获取与当前图像块相邻的相邻图像块的转换函数参数;
确定所述相邻图像块与当前图像块之间的亮度相关性或者纹理的相关性;
根据所述亮度相关性或者纹理的相关性确定是否将所述当前图像块的转换函数参数与该相邻的图像块的转换函数参数进行合并编码并确定指示。
对应的解码端可以仅根据亮度的相关性将从相邻块的转换函数参数中确定出于当前图像块对应的转换函数参数,而不需要编码端生成所述的第一标示。
图4是根据本发明实施例提供的图像解码方法的示意性流程图。
401,获取码流中的第一指示,其中该第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码。
402,根据该第一指示,获取该当前图像块的转换函数参数。
根据图4所示的方法可以对合并后解码的当前图像块与相邻图像块的转换函数参数进行解码,可以降低码流开销,提高解码效率。
可选的,作为一个实施例,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,该根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同。
可选的,作为另一个实施例,该根据该第一指示,获取该当前图像块的转换函数参数,包括:该在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数;获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,其中该当前图像块的转换函数参数由所述当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数。
可选的,作为另一个实施例,该根据该第一指示,获取该当前图像块的转换函数参数,包括:该在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数,其中该当前图像块的转换函 数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
可选的,作为另一个实施例,该根据该第一指示,获取该当前图像块的转换函数参数,包括:在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数的进行解码的解码信息,对该第一解码信息进行解码以获取该当前图像块的转换函数参数。
进一步,在该根据所述第一指示,获取该当前图像块的转换函数参数之前,该方法还包括:获取第二指示;根据该第二指示,确定该相邻图像块。
可选的,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
为了帮助本领域技术人员更好地理解本发明,下面将结合具体实施例对本发明进行进一步描述。可以理解的是,该具体实施例仅是为了帮助更好地理解本发明,而并非对本发明的限制。
首先,对转换函数和逆转换函数进行介绍。在常用的HDR编码方案中,编码设备的转换过程,以及使用的转换函数PQ_TF的具体形式参见如下公式(1):
Figure PCTCN2015081102-appb-000001
其中:
Figure PCTCN2015081102-appb-000002
Figure PCTCN2015081102-appb-000003
Figure PCTCN2015081102-appb-000004
Figure PCTCN2015081102-appb-000005
Figure PCTCN2015081102-appb-000006
Figure PCTCN2015081102-appb-000007
相应地,解码设备的转换过程,以及使用的逆转换函数inversePQ_FT(PQ_TF的逆函数)的具体形式参见如下公式(2):
Figure PCTCN2015081102-appb-000008
其中:
Figure PCTCN2015081102-appb-000009
Figure PCTCN2015081102-appb-000010
Figure PCTCN2015081102-appb-000011
Figure PCTCN2015081102-appb-000012
Figure PCTCN2015081102-appb-000013
Figure PCTCN2015081102-appb-000014
可以看出,转换函数参数m1、m2、c1、c2和c3与逆转换函数参数m1、m2、c1、c2和c3相同。也就是说,解码设备与编码设备所使用的函数形式不同,但是解码设备可以使用与转换函数参数相同的参数作为逆转换函数参数。因此,编码设备可以对转换函数参数进行编码,解码设备可以对编码结果进行解码以获取转换函数参数做为逆转换函数参数。
此外,在实际的编码和解码系统中为了便于编码和解码实现,上述的函数形式还可以查找表的形式出现。通过将转换函数(逆转换函数)的参数作为索引值确定转换函数参数(逆转换函数参数)。例如,在PQ_TF函数中L为输入变量,m1、m2、c1、c2和c3为函数的参数,因此可以建立以m1、m2、 c1、c2、c3和L为变量的查找表,根据m1、m2、c1、c2、c3和L的数值查找得到PQ_TF函数的输出数值。其中,考虑到L可能具有较大的数值范围,为了减少所述查找表的大小,还可以L采样后的数值为变量设定查找表获得PQ_TF函数的输出数值。同理,在inversePQ_TF函数中N为输入变量,m1、m2、c1、c2和c3为函数的参数,因此可以建立以m1、m2、c1、c2、c3和L为变量的查找表,根据m1、m2、c1、c2、c3和N的数值查找得到inversePQ_TF函数的输出数值。其中,考虑到N可能具有较大的数值范围,为了减少所述查找表的大小,还可以N采样后的数值为变量设定查找表获得invsersePQ_TF函数的输出数值。
编码设备需要确定对应于该当前图像块的相邻图像块的转换函数。
可选的,作为一个实施例,与该当前图像块对应的相邻图像块的位置是固定的。在此情况下,该编码设备可以直接确定位于该固定位置相邻图像块的转换函数。该相邻图像块是指与该当前图像块在空间或时间上相邻的一个相邻图像块。假设该相邻图像块是与该当前图像块在空间上相邻,则该相邻图像块可以是位于当前图像块的上方、左上方或左方等位置的相邻图像块。例如,可以设定与该图像块对应的相邻图像块是位于该当前图像块左上方的图像块。进一步,当设定与该个图像块对应的相邻图像块是位于该当前图像块左上方的图像块时,一些位置的图像块(例如位于边缘的图像块)可能并不存在对应的相邻图像块。此时,可以设定与这些子图像对应的相邻图像块是遵循其他规则,例如,为该图像块左侧的图像块是该图像块的相邻图像块。假设该相邻图像块是与该当前图像块在时间上相邻,则如果当前图像块是T帧的图像块中的一个图像块,对应于该当前图像块的相邻图像块可以是相邻帧的图像块的规定位置一个图像块。
可选的,作为另一个实施例,与该当前图像块对应的相邻图像块的位置可以不是固定的。由于当前图像块可能存在多个相邻图像块中选择一个作为相邻图像块。与该当前图像块相邻的多个相邻图像块可以称为候选相邻图像块。可选的,作为一个实施例,该编码设备可以根据多个候选相邻图像块的转换函数参数确定与该当前图像块对应的相邻图像块的转换函数参数。该编码设备可以将该多个候选相邻图像块的转换函数参数与该当前图像块的转换函数参数进行比较,确定最多相同参数的候选相邻图像块为对应于该当前图像块的相邻图像块。可选的,作为另一个实施例,该编码设备可以从该多 个候选相邻图像块中任意选择一个作为该相邻图像块。在该当前图像块对应的相邻图像块的位置可以不是固定的情况下,该编码设备还需要确定该相邻图像块的位置信息并确定用于指示该相邻图像块的位置信息的第二指示,并将该第二指示发送至该解码设备。该解码设备可以根据该第二指示确定出该相邻图像块的位置并结合第一指示确定该当前图像块的转换函数参数。本领域技术人员可以理解,该第二指示的不同值可以用于表示该相邻图像块的位置。例如,若该第二指示的值为0,则表示该相邻图像块位于该当前图像块的左侧;若该第二指示的值为1,则表示该相邻图像块位于该图像块的上侧。本领域技术人员可以理解,若该编码设备确定出该多个候选相邻图像块中存在一个候选相邻图像块,该候选相邻图像块的转换函数参数与该当前图像块的转换函数参数完全相同,则可以停止与未进行比较的候选相邻图像块进行比较,直接确定该候选相邻图像块为对应于该当前图像块的相邻图像块。本领域技术人员还可理解,如果仅在该当前图像块的转换函数参数与该相邻图像块的转换函数参数完全相同的情况下确定可以将当前图像块的转换函数参数与相邻图像块的转换函数参数进行联合编码,则需要从该多个候选相邻图像块中确定与该当前图像块的转换函数参数完全相同的候选相邻图像块。若该多个候选相邻图像块中不存在相应的候选相邻图像块,则可以确定该相邻图像块为该多个参考图像中的任一个候选相邻图像块。或者,也可以视为已经确定出该相邻图像块的转换函数参数与该当前图像块的转换函数参数中存在至少一个不同的参数。
本领域技术人员可以理解,编码设备与解码设备需要遵循同样的确定相邻图像块的方式。例如,若该相邻图像块的位置是固定的,则编码设备与解码设备确定的相邻图像块的位置是相同的。同时,解码设备不需要获取用于指示相邻图像块位置的第二指示。若该相邻图像块的位置不是固定的,则该解码设备需要解码该第二指示以根据该第二指示确定该相邻图像块的位置。
可选的,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
该编码设备在确定了该相邻图像块的转换函数参数后,可以根据该当前图像块的转函数参数和该相邻图像块的转换函数参数确定是否将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码。对应 的,解码设备可以根据用于指示是否将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的第一指示参数获取该当前图像块的转换函数参数。
可选的,作为一个实施例,仅在该当前图像块的转换函数参数与该相邻图像块的转换函数参数完全相同的情况下,确定将当前图像块的转换函数参数与相邻图像块的转换函数参数进行联合编码。例如,如果当前图像块的转换函数参数中的3个参数C1、C2、C3与相邻图像块的转换函数参数中的3个参数C1、C2、C3完全相同,则该编码设备确定将当前图像块与相邻图像块进行合并编码,确定对应的第一指示并编码该第一指示。再如,如果当前图像块的转换函数参数为索引值为3的参数组且相邻图像块的转换函数参数也为索引值为3的参数组,则该编码设备确定将当前图像块与相邻图像块进行合并编码,确定对应的第一指示并编码该第一指示。如果确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个不同的参数,则确定不将当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并编码。例如,当前图像块的转换函数参数C1、C2、C3中的一个参数与相邻图像块的转换函数参数中对应的参数不同,则该编码设备确定不对当前图像块与相邻图像块进行合并编码,确定对应的第一指示并编码该第一指示。在确定不将当前图像块与相邻图像块进行合并编码的情况下,编码设备还需要确定第一编码信息,该第一编码信息为对当前图像块的转换函数参数进行编码的编码信息。该编码设备在确定了是否对将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码后,可以根据确定结果确定第一指示并编码该第一指示。举例来说,第一指示的值为1可以表示当前图像块的转换函数参数与相邻图像块进行合并编码。第一指示的值为0可以表示当前图像块的转换函数参数与相邻图像块不进行合并编码。
解码设备获取了第一指示后,可以根据该第一指示,获取该当前图像块的转换函数参数。具体地,该解码设备对编码后的第一指示进行解码,以确定该第一指示的值,并根据该第一编是指的值确定该当前图像块的转换函数参数与相邻图像块是否进行合并解码。例如,该解码设备在确定该第一指示为1(即指示当前图像块的转换函数参数与相邻图像块进行合并解码)的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数的所有参数完全相同。该解码设备在确定该第一指示为0(即指示当前图像块 的转换函数参数与相邻图像块不进行合并解码)的情况下,获取第一解码信息并对该第一解码信息进行解码,该第一解码信息为对当前图像块的转换函数参数进行解码的解码信息。该解码设备通过对该第一解码信息进行解码可以获取该当前图像块的转换函数参数。通过上述实施例可知,合并编码是:若当前图像块的转换函数参数与相邻图像块的转换函数参数完全相同,则可以使用第一指示来指示对该当前图像块的编码,该第一指示可以指示该当前图像块的转换函数参数与相邻图像块的转换函数参数完全相同;若解码设备解码确定该第一指示为指示该当前图像块的转换函数参数与相邻图像块的转换函数参数完全相同,则可以确定该相邻图像块的转换函数参数为该当前图形块的转换函数参数。也就是说,通过合并编码,编码设备可以使用一个指示来表示对该当前图形块的转换函数参数的编码信息,而无需再对该当前图像块的转换函数参数进行单独编码。相应的,合并解码是指:解码设备可以该指示进行解码,并根据该指示和对应的相邻图像块的转换函数参数来确定该当前图像块的转换函数参数。
可选的,作为另一个实施例,在该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数的情况下,就可以确定将当前图像块与相邻图像块进行联合编码。在此情况下,该编码设备还需要确定编码标志位。编码标志位用于指示当前图像块的转换函数参数与相邻图像块的转换函数参数在对应位置是否是相同的。因此,编码标志位的个数与当前图像块的转换函数参数的个数(相邻图像块的转换函数参数的个数)相同。对于当前图像块的转换函数参数与相邻图像块的转换函数参数中的不同的参数,编码设备对该不同的参数进行编码。例如,如果当前图像块的转换函数参数中的5个参数C1、C2、C3、C4和C5中C1、C3和C5与相邻图像块的转换函数参数中的5个参数C1、C2、C3、C4和C5中的C1、C3和C5相同,该当前图像块的转换函数参数中的C2和C4与该相邻图像块的转换函数参数中的C2和C4不同,则确定将当前图像块与相邻图像块进行合并编码并确定5个编码标志位。该五个编码标志位与5个参数一一对应。分别用n1、n2、n3、n4和n5表示该5个编码标志位。n1、n2、n3、n4和n5与C1、C2、C3、C4和C5一一对应。假设编码标志位取值为1时表示当前图像块的转换函数参数与相邻图像块的转换函数参数在对应位置相同,编码标志位取值为0时表示当前图像块的转换函数参数与相邻图像块的转换函数参数在对应位置不 同,则在本例中n1、n2、n3、n4和n5的值分别为1、0、1、0、1。该编码设备可以根据确定结果,编码该第一指示以及该编码标志位。此外,在本例中,该编码设备还需要确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同参数进行编码的编码信息。在本例中,该编码设备需要编码的转换函数参数为C2和C4。如果确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中均不相同,则确定可以确定不将当前图像块的转换函数参数与相邻图像块的转换函数参数进行联合编码,确定对应的第一指示并编码该第一指示。在此情况下,该编码设备还需要确定第一编码信息,该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。举例来说,第一指示的值为1可以表示当前图像块的转换函数参数与相邻图像块进行合并编码。第一指示的值为0可以表示当前图像块的转换函数参数与相邻图像块不进行合并编码。
解码设备获取了第一指示后,可以根据该第一指示,获取该当前图像块的转换函数参数。具体地,该解码设备对编码后的第一指示进行解码,以确定该第一指示的值,并根据该第一编是指的值确定该当前图像块的转换函数参数与相邻图像块是否进行合并解码。例如,该解码设备在确定该第一指示为1(即指示当前图像块的转换函数参数与相邻图像块进行合并解码)的情况下,该解码设备可以确定当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码。此时,该解码设备还对编码后的解码标志位进行解码以获取解码标志位。该解码设备还需要对第二解码信息进行解码以获取该当前图像块的转换函数参数与相邻图像块的转换函数参数不同的参数。该解码设备根据解码标志位的值确定该当前图像块的转换函数参数中哪些参数与该相邻图像块的转换函数参数中的参数相同。在本例中,该解码设备可以确定n1、n2、n3、n4和n5的值分别为1、0、1、0、1,因此解码设备可以确定该当前图像块的5个参数C1、C2、C3、C4和C5中C1、C3和C5与相邻图像块的转换函数参数中的5个参数C1、C2、C3、C4和C5中的C1、C3和C5相同,并确定该当前图像块的转换函数参数中的C2和C4与该相邻图像块的转换函数参数中的C2和C4不同。该解码设备解码该第二解码信息后得到的即为该当前图像块的转换函数参数中C2和C4。第一指示的值为0可以表示当前图像块的转换函数参数与相邻图像块不进行合并解码。该解码设备在确定该第一指示为0(即指示当前图像块的转换函数参数与相邻图像块不进行 合并解码)的情况下,可以确定当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码。在此情况下,该解码设备获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数进行解码的解码信息。该解码设备对该第一解码信息进行解码以获取该当前图像块的转换函数参数。本领域技术人员可以理解,该解码设备确定的转换函数参数即为转换函数参数。通过上述实施例可知,合并编码是:若当前图像块的转换函数参数与相邻图像块的转换函数参数存在至少一个相同参数,则使用编码标志位来指示相同参数与不同参数,在编码过程中可以仅对不同参数进行编码。也就是说,通过合并编码,编码设备可以使用编码标志位表示对该当前图形块的转换函数参数的部分参数的编码信息(即当前图像块的转换函数参数与相邻图像块的转换函数的相同参数的编码信息),而无需再对这部分参数进行单独编码。相应的,合并解码是指,解码设备可以根据该解码标志位和相应的相邻图像块的转换函数参数,确定当前图像块的转换函数参数与相邻图像块的转换函数的相同参数的解码信息。本领域技术人员可以理解,若当前图像块的转换数参数与相邻图像块的转换函数参数中的所有参数均相同,则编码设备无需确定第二编码信息。相应的,解码设备可以根据解码标志位和相邻图像块的转换函数参数,确定出该当前图像块的转换函数参数(即该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同)。
可选的,该当前图形看的转换函数参数中还可以存在k个参数,该k个参数始终不与对应的相邻图像块的转换函数参数进行合并编码。换句话说,该k个参数始终是进行单独编码的。
本领域技术人员可以理解,编码设备的编码是与解码设备的解码相对应的。例如,第一指示对于编码设备是用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码。解码设备在接收到第一指示后,可以确定该第一指示是用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并解码。再如,第一编码信息对于解码设备来说就是第一解码信息。
图5是根据本发明实施例提供的编码设备的结构框图。如图5所示,编码设备500包括:确定单元501和编码单元502。
确定单元501,用于确定当前图像块的转换函数参数。
确定单元501,还用于确定对应于该当前图像块的相邻图像块的转换函 数参数。
确定单元501,还用于根据该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码并确定第一指示,该第一指示用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码。
编码单元502,用于编码所属第一指示。
根据图5所示的编码设备500通过将当前图像块与相邻图像块的转换函数参数进行合并编码,可以降低码流开销,提高编码效率。
可选的,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,确定单元501,具体用于若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的所有参数均相同,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数存在至少一个不同的参数,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合。编码单元502,还用于在该确定单元确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合的情况下,确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
可选的,作为另一个实施例,确定单元501,具体用于在该转换函数参数为M个参数的情况下,若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的参数均不相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码。编码单元502,还用于在确定单元501确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
可选的,作为一个实施例,确定单元501,还用于确定M个编码标志位, 该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M。编码单元502,还用于编码该M个编码标志位;确定单元501,还用于确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;编码单元502,还用于编码第二编码信息。
可选的,作为另一个实施例,确定单元501,还用于确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M。编码单元502,还用于编码该M个编码标志位,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
进一步,确定单元501,还用于从多个候选相邻图像块中确定该相邻图像块并确定该相邻图像块的转换函数参数;确定该相邻图像块的位置并确定第二指示,该第二指示用于指示该相邻图像块的位置。该编码单元502,还用于编码该第二指示。
进一步,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
图6是根据本发明实施例提供的解码设备的结构框图。如图6所示,解码设备600包括:第一获取单元601和第二获取单元602。
第一获取单元601,用于获取码流中的第一指示,其中该第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码。
第二获取单元602,用于根据该第一指示,获取该当前图像块的转换函数参数。
根据图6所示的解码设备可以对合并后解码的当前图像块与相邻图像块的转换函数参数进行解码,可以降低码流开销,提高解码效率。
可选的,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,第二获取单元602,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同。
可选的,作为另一个实施例,第二获取单元602,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数;获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数。
可选的,作为另一个实施例,第二获取单元602,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
进一步,第二获取单元602,还可以获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的 不同的参数进行解码的解码信息;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数。
可选的,作为另一个实施例,第二获取单元602,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数的进行解码的解码信息;对该第一解码信息进行解码以获取该当前图像块的转换函数参数。进一步,该设备还包括:第三获取单元603,用于获取第二指示并根据该第二指示,确定该相邻图像块。
进一步,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
图7是根据本发明实施例提供的编码设备的结构框图。图7所示的编码设备700包括:处理器701、存储器702。
编码设备700中的各个组件通过总线系统703耦合在一起,其中总线系统703除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统703。
上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理 器701读取存储器702中的指令,结合其硬件完成上述方法的步骤。
处理器701,用于确定当前图像块的转换函数参数。
处理器701,还用于确定对应于该当前图像块的相邻图像块的转换函数参数。
处理器701,还用于根据该当前图像块的转换函数参数和该相邻图像块的转换函数参数的相关性,确定是否将该当前图像块的转换函数的参数与该相邻图像块的转换函数参数进行合并编码并确定第一指示,该第一指示用于指示该当前图像块的转换函数参数与该相邻图像块的转换函数参数是否进行合并编码。
处理器701,用于编码所属第一指示。
根据图7所示的编码设备700通过将当前图像块与相邻图像块的转换函数参数进行合并编码,可以降低码流开销,提高编码效率。
可选的,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,处理器701,具体用于若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的所有参数均相同,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数存在至少一个不同的参数,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合。处理器701,还用于在该确定单元确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合的情况下,确定第一编码信息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
可选的,作为另一个实施例,处理器701,具体用于在该转换函数参数为M个参数的情况下,若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码;若该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的参数均不相同,则确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码。处理器701,还用于在处理器701确定不将该当前图像块的转换函数参数与该相邻图像块的转换函数参数进行合并编码的情况下,确定第一编码信 息,其中该第一编码信息为对该当前图像块的转换函数参数进行编码的编码信息。
可选的,作为一个实施例,处理器701,还用于确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M。处理器701,还用于编码该M个编码标志位;处理器701,还用于确定第二编码信息,该第二编码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;处理器701,还用于编码第二编码信息。
可选的,作为另一个实施例,处理器701,还用于确定M个编码标志位,该M个编码标志位与该M个参数一一对应,该M个编码标志位中的第m个编码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M。处理器701,还用于编码该M个编码标志位,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
进一步,处理器701,还用于从多个候选相邻图像块中确定该相邻图像块并确定该相邻图像块的转换函数参数;确定该相邻图像块的位置并确定第二指示,该第二指示用于指示该相邻图像块的位置。该处理器701,还用于编码该第二指示。
进一步,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
图8是根据本发明实施例提供的解码设备的结构框图。图8所示的编解设备800包括:处理器801、存储器802。
解码设备800中的各个组件通过总线系统803耦合在一起,其中总线系统803除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统803。
上述本发明实施例揭示的方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在 实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的指令,结合其硬件完成上述方法的步骤。
处理器801,用于获取码流中的第一指示,其中该第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码。
处理器801,用于根据该第一指示,获取该当前图像块的转换函数参数。
根据图8所示的解码设备可以对合并后解码的当前图像块与相邻图像块的转换函数参数进行解码,可以降低码流开销,提高解码效率。
可选的,该转换函数参数为M个参数,M为大于或等于1的正整数;或者,该转换函数参数为转换函数的索引值。
可选的,作为一个实施例,处理器801,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数相同。
可选的,作为另一个实施例,处理器801,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图 像块的转换函数参数中的相同的参数;获取第二解码信息,该第二解码信息为对该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,该当前图像块的转换函数参数由该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数和不同的参数组成;根据该M个解码标志位,对该第二解码信息进行解码以确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数不同的参数。
可选的,作为另一个实施例,处理器801,具体用于在该转换函数参数为M个参数的情况下,在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中该M个解码标志位与该M个参数一一对应,该M个解码标志位中的第m个解码标志位用于指示该当前图像块的转换函数参数的第m个参数与该相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;根据该M个解码标志位,确定该当前图像块的转换函数参数与该相邻图像块的转换函数参数中的相同的参数,其中该当前图像块的转换函数参数中的M个参数与该相邻图像块的转换函数参数中的M个参数相同。
可选的,作为另一个实施例,处理器801,具体用于在确定该第一指示用于指示该当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,该第一解码信息为对该当前图像块的转换函数参数的进行解码的解码信息;对该第一解码信息进行解码以获取该当前图像块的转换函数参数。进一步,该设备还包括:处理器801,用于获取第二指示并根据该第二指示,确定该相邻图像块。
进一步,该相邻图像块为该当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应 过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内,因此本发明的保护范围应以权利要求的保护范围为准。

Claims (32)

  1. 一种图像编码方法,其特征在于,所述方法包括:
    确定当前图像块的转换函数参数;
    确定对应于所述当前图像块的相邻图像块的转换函数参数;
    根据所述当前图像块的转换函数参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码并确定第一指示,所述第一指示用于指示所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数是否进行合并编码;
    编码所述第一指示。
  2. 如权利要求1所述的方法,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,
    所述转换函数参数为转换函数的索引值。
  3. 如权利要求1或2所述的方法,其特征在于,所述根据所述当前图像块的转换参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码,包括:
    若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数完全相同,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不完全相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    在确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:
    确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
  4. 如权利要求2所述的方法,其特征在于,在所述转换函数参数为M 个参数的情况下,所述根据所述当前图像块的转换参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的参数与所述相邻图像块的转换函数参数进行合并编码,包括:
    若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的参数均不相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    在确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
  5. 如权利要求4所述的方法,其特征在于,在确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:
    确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    编码所述M个编码标志位;
    确定第二编码信息,所述第二编码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;
    编码所述第二编码信息。
  6. 如权利要求4所述的方法,其特征在于,在确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,所述方法还包括:
    确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    编码所述M个编码标志位,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
  7. 如权利要求1至6中任一项所述的方法,其特征在于,所述确定对应于当前图像块的相邻图像块的转换函数参数,包括:
    从多个候选相邻图像块中确定所述相邻图像块并确定所述相邻图像块的转换函数参数;
    所述方法还包括:
    确定所述相邻图像块的位置并确定第二指示,所述第二指示用于指示所述相邻图像块的位置;
    编码所述第二指示。
  8. 如权利要求1至7中任一项所述的方法,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
  9. 一种图像解码方法,其特征在于,所述方法包括:
    获取码流中的第一指示,其中所述第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;
    根据所述第一指示,获取所述当前图像块的转换函数参数。
  10. 如权利要求9所述的方法,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,
    所述转换函数参数为转换函数的索引值。
  11. 如权利要求9或10所述的方法,其特征在于,所述根据所述第一 指示,获取所述当前图像块的转换函数参数,包括:
    在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数相同。
  12. 如权利要求10所述的方法,其特征在于,在所述转换函数参数为M个参数的情况下,所述根据所述第一指示,获取所述当前图像块的转换函数参数,包括:
    在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数;
    获取第二解码信息,所述第二解码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行解码的解码信息;
    根据所述M个解码标志位,对所述第二解码信息进行解码以确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不同的参数,其中所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成。
  13. 如权利要求10所述的方法,其特征在于,在所述转换函数参数为M个参数的情况下,所述根据所述第一指示,获取所述当前图像块的转换函数参数,包括:
    在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参 数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
  14. 如权利要求9所述的方法,其特征在于,根据所述第一指示,获取所述当前图像块的转换函数参数,包括:
    在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,所述第一解码信息为对所述当前图像块的转换函数参数的进行解码的解码信息;
    对所述第一解码信息进行解码以获取所述当前图像块的转换函数参数。
  15. 如权利要求9至14中任一项所述的方法,其特征在于,在所述根据所述第一指示,获取所述当前图像块的转换函数参数之前,所述方法还包括:
    获取第二指示;
    根据所述第二指示,确定所述相邻图像块。
  16. 如权利要求9至15中任一项所述的方法,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
  17. 一种编码设备,其特征在于,所述设备包括:
    确定单元,用于确定当前图像块的转换函数参数;
    所述确定单元,还用于确定对应于所述当前图像块的相邻图像块的转换函数参数;
    所述确定单元,还用于根据所述当前图像块的转换函数参数和所述相邻图像块的转换函数参数的相关性,确定是否将所述当前图像块的转换函数的 参数与所述相邻图像块的转换函数参数进行合并编码并确定第一指示,所述第一指示用于指示所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数是否进行合并编码;
    编码单元,用于编码所属第一指示。
  18. 如权利要求17所述的设备,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,
    所述转换函数参数为转换函数的索引值。
  19. 如权利要求17或18所述的设备,其特征在于,所述确定单元,具体用于若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的所有参数均相同,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    若确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数存在至少一个不同的参数,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合;
    所述编码单元,还用于在所述确定单元确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合的情况下,确定第一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
  20. 如权利要求18所述的设备,其特征在于,所述确定单元,具体用于在所述转换函数参数为M个参数的情况下,
    若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中存在至少一个相同的参数,则确定将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    若所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的参数均不相同,则确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码;
    所述编码单元,还用于在所述确定单元确定不将所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数进行合并编码的情况下,确定第 一编码信息,其中所述第一编码信息为对所述当前图像块的转换函数参数进行编码的编码信息。
  21. 如权利要求20所述的设备,其特征在于,所述确定单元,还用于确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    所述编码单元,还用于编码所述M个编码标志位;
    所述确定单元,还用于确定第二编码信息,所述第二编码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行编码的编码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;
    所述编码单元,还用于编码第二编码信息。
  22. 如权利要求20所述的设备,其特征在于,所述确定单元,还用于确定M个编码标志位,所述M个编码标志位与所述M个参数一一对应,所述M个编码标志位中的第m个编码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    所述编码单元,还用于编码所述M个编码标志位,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
  23. 如权利要求17至22中任一项所述的设备,其特征在于,所述确定单元,还用于:
    从多个候选相邻图像块中确定所述相邻图像块并确定所述相邻图像块的转换函数参数;
    确定所述相邻图像块的位置并确定第二指示,所述第二指示用于指示所述相邻图像块的位置;
    所述编码单元,还用于编码所述第二指示。
  24. 如权利要求17至23中任一项所述的设备,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
  25. 一种解码设备,其特征在于,所述设备包括:
    第一获取单元,用于获取码流中的第一指示,其中所述第一指示用于指示当前图像块的转换函数参数是否与相邻图像块的转换函数参数进行合并解码;
    第二获取单元,用于根据所述第一指示,获取所述当前图像块的转换函数参数。
  26. 如权利要求25所述的设备,其特征在于,所述转换函数参数为M个参数,M为大于或等于1的正整数;或者,
    所述转换函数参数为转换函数的索引值。
  27. 如权利要求25或26所述的设备,其特征在于,所述第二获取单元,具体用于在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数相同。
  28. 如权利要求26所述的设备,其特征在于,所述第二获取单元,具体用于在所述转换函数参数为M个参数的情况下,在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所 述相邻图像块的转换函数参数中的相同的参数;
    获取第二解码信息,所述第二解码信息为对所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的不同的参数进行解码的解码信息,所述当前图像块的转换函数参数由所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数和不同的参数组成;
    根据所述M个解码标志位,对所述第二解码信息进行解码以确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数不同的参数。
  29. 如权利要求26所述的设备,其特征在于,所述第二获取单元,具体用于在所述转换函数参数为M个参数的情况下,在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数进行合并解码的情况下,获取M个解码标志位,其中所述M个解码标志位与所述M个参数一一对应,所述M个解码标志位中的第m个解码标志位用于指示所述当前图像块的转换函数参数的第m个参数与所述相邻图像块的转换函数参数的第m个参数是否相同,m为1,…,M;
    根据所述M个解码标志位,确定所述当前图像块的转换函数参数与所述相邻图像块的转换函数参数中的相同的参数,其中所述当前图像块的转换函数参数中的M个参数与所述相邻图像块的转换函数参数中的M个参数相同。
  30. 如权利要求25或26所述的设备,其特征在于,所述第二获取单元,具体用于在确定所述第一指示用于指示所述当前图像块的转换函数参数与相邻图像块的转换函数参数不进行合并解码的情况下,获取第一解码信息,所述第一解码信息为对所述当前图像块的转换函数参数的进行解码的解码信息;
    对所述第一解码信息进行解码以获取所述当前图像块的转换函数参数。
  31. 如权利要求25至30中任一项所述的设备,其特征在于,所述设备还包括:
    第三获取单元,用于获取第二指示并根据所述第二指示,确定所述相邻图像块。
  32. 如权利要求25至31中任一项所述的设备,其特征在于,所述相邻图像块为所述当前图像块的以下任一相邻图像块或以下任意多个相邻图像块:左侧相邻图像块、上侧相邻图像块、左上相邻图像块、右上相邻图像块、左下相邻图像块、时域相邻图像块。
PCT/CN2015/081102 2015-06-09 2015-06-09 图像编解码方法和设备 WO2016197334A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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