CA2833893C

Image coding method, image coding apparatus, image decoding method, image decoding apparatus, and image coding and decoding apparatus

Abstract

An image coding method bitstream includes: determining a maximum number of a merging candidate which is a combination of a prediction direction, a motion vector, and a reference picture index for use in coding of a current block (S201); deriving a first merging candidate (S202); determining whether or not a total number of the first merging candidate is smaller than the maximum number (S204); deriving a second merging candidate when it is determined that the total number of the first merging candidate is smaller than the maximum number (S205); selecting a merging candidate for use in the coding of the current block from the first merging candidate and the second merging candidate (S206); and coding, using the maximum number, an index for identifying the selected merging candidate, and attaching the coded index to the bitstream (S207).

CA2833893C, drawing sheet 1
Sheet 1 of 45

Term

5.7 yearsleft in the term

Expires 21 May 2032.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

39 claims: 12 independent, 27 dependent

  1. 1
    The embodiments of the present invention for which an exclusive property or privilege is claimed are defined as follows:1. An image coding method for coding an image on a block-by-block basis to generate a bitstream, the method comprising: determining a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in coding of a current block;deriving at least one first merging candidate;determining whether or not a total number of the at least one first merging candidate is smaller than the maximum number;deriving a second merging candidate when it is determined that the total number of the at least one first merging candidate is smaller than the maximum number, selecting a merging candidate for use in the coding of the current block from the at least one first merging candidate and the second merging candidate;and coding, using the determined maximum number, an index for identifying the selected merging candidate, and attaching the coded index to the bitstream;wherein in the deriving of the second merging candidate, a merging candidate which is different in at least one of the prediction direction, the motion vector, and the reference picture index from the at least one first merging candidate is derived as the second merging candidate.
  2. 2
    The image coding method according to Claim 1, wherein in the deriving of the at least one first merging candidate, the at least one first merging candidate derived has a different combination of the prediction direction, the motion vector, and the reference picture index than the combination of the prediction -92Date Reçue/Date Received 2023-04-18 direction, the motion vector, and the reference picture index of any previously derived first merging candidate.
  3. 3
    The image coding method according to Claim 1 or 2, wherein in the deriving of the at least one first merging candidate, the at least one first merging candidate is derived based on the prediction direction, the motion vector, and the reference picture index used in coding of a block spatially or temporally neighboring the current block.
  4. 4
    The image coding method according to Claim 3, wherein in the deriving of the at least one first merging candidate, the combination of the prediction direction, the motion vector, and the reference picture index is derived as the at least one first merging candidate, the combination of the prediction direction, the motion vector, and the reference picture index having been used in coding of a block among blocks spatially neighboring the current block except a block coded by intra prediction, a block outside a boundary of a slice including the current block or a boundary of a picture including the current block, and a block yet to be coded.
  5. 5
    The image coding method according to any one of Claims 1 to 4, wherein in the coding, information indicating the determined maximum number is further attached to the bitstream.
  6. 6
    The image coding method according to Claim 1, further comprising:switching a coding process between a first coding process conforming to a first standard and a second coding process conforming to a second standard;and -93Date Reçue/Date Received 2023-04-18 attaching, to the bitstream, identification information indicating either the first standard or the second standard to which the coding process after the switching conforms, wherein when the coding process is switched to the first coding process, the determining of the maximum number of merging candidates, the deriving of the at least one first merging candidate, the determining of whether or not the total number of the at least one first merging candidate is smaller than the maximum number, the deriving of the second merging candidate, the selecting, and the coding are performed as the first coding process.
  7. 7
    An image coding apparatus which codes an image on a block-by-block basis to generate a bitstream, the apparatus comprising:a first determination unit configured to determine a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in coding of a current block;a first derivation unit configured to derive at least one first merging candidate;a second determination unit configured to determine whether or not a total number of the at least one first merging candidate is smaller than the maximum number;a second derivation unit configured to derive a second merging candidate when it is determined that the total number of the at least one first merging candidate is smaller than the maximum number;a prediction control unit configured to select a merging candidate for use in the coding of the current block from the at least one first merging candidate and the second merging candidate;and a coding unit configured to code, using the determined maximum number, an index for identifying the selected merging candidate, and attach the coded index to the bitstream;-94Date Reçue/Date Received 2023-04-18 wherein the second merging candidate derived by the second derivation unit is different in at least one of the prediction direction, the motion vector, and the reference picture index from the at least one first merging candidate.
  8. 8
    An image decoding method for decoding, on a block-by-block basis, a coded image included in a bitstream, the method comprising:determining a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in decoding of a current block;deriving at least one first merging candidate;determining whether or not a total number of the at least one first merging candidate is smaller than the maximum number;deriving a second merging candidate when it is determined that the total number of the at least one first merging candidate is smaller than the maximum number;decoding an index coded and attached to the bitstream, using the determined maximum number, the index being for identifying a merging candidate;and selecting, based on the decoded index, a merging candidate for use in the decoding of the current block, the selected merging candidate being selected from the at least one first merging candidate and the second merging candidate;wherein in the deriving of the second merging candidate, the second merging candidate derived is different in at least one of the prediction direction, the motion vector, and the reference picture index from the at least one first merging candidate.
  9. 9
    The image decoding method according to Claim 8, wherein in the deriving of the at least one first merging candidate, the at least one first merging candidate derived has a different combination of the prediction direction, the -95Date Reçue/Date Received 2023-04-18 motion vector, and the reference picture index than the combination of the prediction direction, the motion vector, and the reference picture index of any previously derived first merging candidate.
  10. 10
    The image decoding method according to Claim 8 or 9, wherein in the deriving of the at least one first merging candidate, the at least one first merging candidate is derived based on the prediction direction, the motion vector, and the reference picture index used in decoding of a block spatially or temporally neighboring the current block.
  11. 11
    The image decoding method according to Claim 10, wherein in the deriving of the at least one first merging candidate, the combination of the prediction direction, the motion vector, and the reference picture index is derived as the at least one first merging candidate, the combination of the prediction direction, the motion vector, and the reference picture index having been used in decoding of a block among blocks spatially neighboring the current block except a block decoded by intra prediction, a block outside a boundary of a slice including the current block or a boundary of a picture including the current block, and a block yet to be decoded.
  12. 12
    The image decoding method according to Claim 8, wherein in the determining of a maximum number of merging candidates, the maximum number is determined based on information attached to the bitstream and indicating the maximum number.
  13. 13
    The image decoding method according to Claim 8, further comprising:switching a decoding process between a first decoding process conforming to a first standard and a second decoding process conforming to a second standard, -96Date Reçue/Date Received 2023-04-18 according to identification information which is attached to the bitstream and indicates either the first standard or the second standard, wherein when the decoding process is switched to the first decoding process, the determining of the maximum number of merging candidates, the deriving of the at least one first merging candidate, the determining of whether or not the total number of the at least one first merging candidate is smaller than the maximum number, the deriving of the second merging candidate, the decoding, and the selecting are performed as the first decoding process.
  14. 14
    An image decoding apparatus which decodes, on a block-by-block basis, a coded image included in a bitstream, the apparatus comprising:a first determination unit configured to determine a maximum number of merging candidates, each of which is a candidate which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in decoding of a current block;a first derivation unit configured to derive at least one first merging candidate;a second determination unit configured to determine whether or not a total number of the at least one first merging candidate is smaller than the maximum number, a second derivation unit configured to derive a second merging candidate when it is determined that the total number of the at least one first merging candidate is smaller than the maximum number;a decoding unit configured to decode an index coded and attached to the bitstream, using the determined maximum number, the index being for identifying a merging candidate;and a prediction control unit configured to select, based on the decoded index, a merging candidate for use in the decoding of a current block, a selected merging candidate being selected from the at least one first merging candidate and the second merging candidate;-97Date Reçue/Date Received 2023-04-18 wherein the second merging candidate derived by the second derivation unit is different in at least one of the prediction direction, the motion vector, and the reference picture index from the at least one first merging candidate.
  15. 15
    An image coding and decoding apparatus comprising:an image coding apparatus which codes an image on a block-by-block basis to generate a bitstream, the apparatus comprising: a first determination unit configured to determine a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in coding of a current block;a first derivation unit configured to derive at least one first merging candidate;a second determination unit configured to determine whether or not a total number of the at least one first merging candidate is smaller than the maximum number;a second derivation unit configured to derive a second merging candidate when it is determined that the total number of the at least one first merging candidate is smaller than the maximum number;a prediction control unit configured to select a merging candidate for use in the coding of the current block from the at least one first merging candidate and the second merging candidate;and a coding unit configured to code, using the determined maximum number, an index for identifying the selected merging candidate, and attach the coded index to the bitstream;wherein the second merging candidate derived by the second derivation unit is different in at least one of the prediction direction, the motion vector and the reference picture index from the at least one first merging candidate;and the image decoding apparatus according to Claim 14. -98Date Reçue/Date Received 2023-04-18
  16. 16
    An image decoding method, comprising:decoding information indicative of a fixed candidate number to be used for decoding a plurality of merge-mode blocks;and for a current block among the plurality of merge-mode blocks: deriving a plurality of first merging candidates, wherein each of the plurality of first merging candidates is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block;determining whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number;when the total number of the plurality of first merging candidates is less than the fixed candidate number, deriving at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and decoding a coded index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the coded index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate. -99Date Reçue/Date Received 2023-04-18
  17. 17
    The image decoding method according to Claim 16, further comprising:removing an identical candidate from the plurality of first merging candidates before determining whether or not the total number of the plurality of first merging candidates is less than the fixed candidate number.
  18. 18
    The image decoding method according to Claim 16 or 17, further comprising:removing an unusable-fbr-merging candidate from the plurality of first merging candidates before determining whether or not the total number of the plurality of first merging candidates is less than the fixed candidate number, wherein the unusable-fbrmerging candidate is a merging candidate that has been coded by intra prediction, that is outside a boundary of a slice or a picture including the current block, or that is yet to be coded.
  19. 19
    The image decoding method according to any one of Claims 16 to 18, wherein decoding the coded index using the fixed candidate number is omitted when the fixed candidate number is one.
  20. 20
    The image decoding method according to any one of Claims 16 to 19, wherein decoding the coded index using the fixed candidate number comprises decoding the coded index using variable-length coding based on the fixed candidate number.
  21. 21
    An image decoding apparatus comprising a processor and a memory, the processor, working together with the memory, being configured to:decode information indicative of a fixed candidate number to be used for decoding a plurality of merge-mode blocks;and -100Date Reçue/Date Received 2023-04-18 for a current block among the plurality of merge-mode blocks: derive a plurality of first merging candidates, wherein each of the plurality of first merging candidates is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block;determine whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number;when the total number of the plurality of first merging candidates is less than the fixed candidate number, derive at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and decode a coded index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the coded index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate.
  22. 22
    The image decoding apparatus according to Claim 21, wherein the processor, working together with the memory, is further configured to:remove an identical candidate from the plurality of first merging candidates before determining whether or not the total number of the plurality of first merging candidates is less than the fixed candidate number. -101 Date Reçue/Date Received 2023-04-18
  23. 23
    The image decoding apparatus according to Claim 21 or 22, wherein the processor, working together with the memory, is further configured to:remove an unusable-for-merging candidate from the plurality of first merging candidates before determining whether or not the total number of the plurality of first merging candidates is less than the fixed candidate number, wherein the unusable-formerging candidate is a merging candidate that has been coded by intra prediction, that is outside a boundary of a slice or a picture including the current block, or that is yet to be coded.
  24. 24
    The image decoding apparatus according to any one of Claims 21 to 23, wherein decoding the coded index using the fixed candidate number is omitted when the fixed candidate number is one.
  25. 25
    The image decoding apparatus according to any one of Claims 21 to 24, wherein decoding the coded index using the fixed candidate number comprises decoding the coded index using variable-length coding based on the fixed candidate number.
  26. 26
    An image decoding method, comprising:decoding, from a slice header of a slice, information indicative of a fixed candidate number to be used for decoding a plurality of merge-mode blocks in the slice;and for a current block among the plurality of merge-mode blocks: deriving a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block, and -102Date Reçue/Date Received 2023-04-18 wherein the derivation of the plurality of first merging candidates excludes, from the plurality of first merging candidates, any merging candidate that is an identical candidate, that has been decoded by intra prediction, that is outside a boundary of the slice or a picture including the current block, or that is yet to be decoded;determining whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number;when the total number of the plurality of first merging candidates is less than the fixed candidate number, deriving at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and decoding a coded index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the coded index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate.
  27. 27
    The image decoding method according to Claim 26, wherein decoding the coded index using the fixed candidate number is omitted when the fixed candidate number is one. -103Date Reçue/Date Received 2023-04-18
  28. 28
    The image decoding method according to Claim 26, wherein decoding the coded index using the fixed candidate number comprises decoding the coded index using variable-length coding based on the fixed candidate number.
  29. 29
    An image decoding apparatus comprising a processor and a memory, the processor, working together with the memory, being configured to:decode, from a slice header of a slice, information indicative of a fixed candidate number to be used for decoding a plurality of merge-mode blocks in the slice;and for a current block among the plurality of merge-mode blocks: derive a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block, and wherein the derivation of the plurality of first merging candidates excludes, from the plurality of first merging candidates, any merging candidate that is an identical candidate, that has been decoded by intra prediction, that is outside a boundary of the slice or a picture including the current block, or that is yet to be decoded;determine whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number, when the total number of the plurality of first merging candidates is less than the fixed candidate number, derive at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, -104Date Reçue/Date Received 2023-04-18 wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and decode a coded index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the coded index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate.
  30. 30
    The image decoding apparatus according to Claim 29, wherein decoding the coded index using the fixed candidate number is omitted when the fixed candidate number is one.
  31. 31
    The image decoding apparatus according to Claim 29, wherein decoding the coded index using the fixed candidate number comprises decoding the coded index using variable-length coding based on the fixed candidate number.
  32. 32
    An image encoding method, comprising:encoding, in a slice header of a slice, information indicative of a fixed candidate number used for encoding a plurality of merge-mode blocks in the slice;and for a current block among the plurality of merge-mode blocks: -105Date Reçue/Date Received 2023-04-18 deriving a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to encode a first block, and wherein the derivation of the plurality of first merging candidates excludes, from the plurality of first merging candidates, any merging candidate that is an identical candidate, that has been encoded by intra prediction, that is outside a boundary of the slice or a picture including the current block, or that is yet to be encoded;determining whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number;when the total number of the plurality of first merging candidates is less than the fixed candidate number, deriving at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and encoding an index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate. -106Date Reçue/Date Received 2023-04-18
  33. 33
    The image encoding method according to Claim 32, wherein encoding the index using the fixed candidate number is omitted when the fixed candidate number is one.
  34. 34
    The image encoding method according to Claim 32, wherein encoding the index using the fixed candidate number comprises encoding the index using variable-length coding based on the fixed candidate number.
  35. 35
    An image encoding apparatus comprising a processor and a memory, the processor, working together with the memory, being configured to:encode, in a slice header of a slice, information indicative of a fixed candidate number to be used for encoding a plurality of merge-mode blocks in the slice;and for a current block among the plurality of merge-mode blocks: derive a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to encode a first block, and wherein the derivation of the plurality of first merging candidates excludes, from the plurality of first merging candidates, any merging candidate that is an identical candidate, that has been encoded by intra prediction, that is outside a boundary of the slice or a picture including the current block, or that is yet to be encoded;determine whether or not a total number of the plurality of first merging candidates is less than the fixed candidate number;-107Date Reçue/Date Received 2023-04-18 when the total number of the plurality of first merging candidates is less than the fixed candidate number, derive at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the fixed candidate number, wherein each of the at least one second merging candidate has a different combination of the prediction direction, the motion vector, and the reference picture index from each of the plurality of first merging candidates;and encode an index using the fixed candidate number regardless of the total number of the plurality of first merging candidates, wherein the index corresponds to one of the plurality of first merging candidates or one of the at least one second merging candidate.
  36. 36
    The image encoding apparatus according to Claim 35, wherein encoding the index using the fixed candidate number is omitted when the fixed candidate number is one.
  37. 37
    The image encoding apparatus according to Claim 35, wherein encoding the index using the fixed candidate number comprises encoding the index using variable-length coding based on the fixed candidate number.
  38. 38
    An image decoding method for decoding, on a block-by-block basis, a coded image included in a bitstream, the method comprising:determining a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in decoding of a current block;-108Date Reçue/Date Received 2023-04-18 deriving a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block;determining whether or not a total number of the plurality of first merging candidates is smaller than the maximum number;when the total number of the plurality of first merging candidates is less than the maximum number, deriving at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the maximum number;decoding an index coded and attached to the bitstream, using the determined maximum number, the index being for identifying a merging candidate;and selecting, based on the decoded index, a merging candidate for use in the decoding of the current block, the selected merging candidate being selected from the plurality of first merging candidates and the at least one second merging candidate;wherein in the deriving of the at least one second merging candidate, the at least one second merging candidate derived is different in at least one of the prediction direction, the motion vector, and the reference picture index from the plurality of first merging candidates.
  39. 39
    An image coding method for coding an image on a block-by-block basis to generate a bitstream, the method comprising:determining a maximum number of merging candidates, each of which is a combination of a prediction direction, a motion vector, and a reference picture index, for use in coding of a current block;-109Date Reçue/Date Received 2023-04-18 deriving a plurality of first merging candidates, wherein each merging candidate is derived based on a combination of a prediction direction, a motion vector, and a reference picture index that has been used to decode a first block;determining whether or not a total number of the plurality of first merging candidates is smaller than the maximum number;when the total number of the plurality of first merging candidates is less than the maximum number, deriving at least one second merging candidate that is different from each of the plurality of first merging candidates until the total number of the plurality of first merging candidates and the at least one second merging candidate is equal to the maximum number;selecting a merging candidate for use in the coding of the current block from the plurality of first merging candidates and the at least one second merging candidate;and coding, using the determined maximum number, an index for identifying the selected merging candidate, and attaching the coded index to the bitstream;wherein in the deriving of the at least one second merging candidate, a merging candidate which is different in at least one of the prediction direction, the motion vector, and the reference picture index from the plurality of first merging candidates is derived as the at least one second merging candidate. -110 Date Reçue/Date Received 2023-04-18
Independent claims39