`
`l-l6. (Cancelled).
`
`17. (Currently Amended) An encoding method for encoding a video on a per block basis, the
`
`encoding method comprising:
`
`setting, for each of predetermined units of the video, a quantization matrix set to be used
`
`to perform quantization on a target block, the quantization matrix set including a plurality of
`
`quantization matrices;
`
`performing the quantization on the target block using a quantization matrix selected from
`
`the quantization matrix set which has been set, and
`
`encoding, in a mutually associated manner, the target block which has been subjected to
`
`the quantization and identification information for identifying the quantization matrix set which
`
`has been set,
`
`wherein, in the setting:
`
`a quantization matrix set is selected, for each of the predetermined units of the
`
`video, from (ilan arbitrary quantization matrix set which is arbitrarily specified and is
`
`encoded and @a plurality of default quantization matrix sets which have been
`
`respectively defined in advance and are not encoded, and the selected quantization matrix
`
`set is set as the quantization matrix set to be used to perform the quantization on the
`
`target block, and
`
`each of the plurality of default quantization matrix sets includes at least a first
`
`quantization matrix for inter prediction and a second quantization matrix different from
`
`the first quantization matrix, [[and]]
`
`in the encoding,
`
`when the quantization matrix set which has been set is the arbitrary quantization
`
`matrix set, the arbitrary quantization matrix set is further encoded, and[[.]]
`
`when the plurality of default quantization matrix sets include a first set and a second set,
`
`respectively, as default quantization matrix sets,
`
`a quantization matrix in the first set which corresponds to a block size is different
`
`from a quantization matrix in the second set which corresponds to the block size.
`
`
`
`18. (Previously Presented) The encoding method according to claim 17,
`
`wherein in the performing of quantization,
`
`a quantization matrix suitable for a size of the target block is selected from the
`
`quantization matrix set which has been set, and the quantization is performed using the
`
`quantization matrix which has been selected.
`
`19. (Currently Amended) The encoding method according to claim 18,
`
`
`
`quantization values each corresponding to a same high frequency vary between a
`
`quantization matrix included in the first set and suitable for the size of the target block and a
`
`quantization matrix included in the second set and suitable for the size of the target block.
`
`20. (Previously Presented) The encoding method according to claim 17,
`
`wherein in the setting:
`
`whether the arbitrary quantization matrix set is used or not is determined, and
`
`either the arbitrary quantization matrix set or any one of the plurality of default
`
`quantization matrix sets is selected based on a result of the determination, as the
`
`quantization matrix set to be used to perform the quantization on the target block, and
`
`in the encoding,
`
`switching information indicating the result of the determination is encoded as at
`
`least part of the identification information.
`
`21. (Previously Presented) The encoding method according to claim 17,
`
`wherein in the setting,
`
`a quantization matrix set is selected from the plurality of default quantization
`
`matrix sets according to priority ranks assigned respectively to the plurality of default
`
`quantization matrix sets.
`
`22. (Previously Presented) The encoding method according to claim 21, further comprising
`
`
`
`changing the priority ranks assigned respectively to the plurality of default quantization
`
`matrix sets.
`
`23 — 28. (Cancelled)
`
`29. (Currently Amended) An encoding apparatus which encodes an image on a per block basis,
`
`the encoding apparatus comprising:
`
`a setter which sets a quantization matrix set to be used to perform quantization on a target
`
`block, the quantization matrix set including a plurality of quantization matrices;
`
`a quantizer which performs the quantization on the target block using a quantization
`
`matrix selected from the quantization matrix set which has been set, and
`
`an encoder which encodes, in a mutually associated manner, the target block which has
`
`been subjected to the quantization and identification information for identifying the quantization
`
`matrix set which has been set,
`
`wherein the setter sets a quantization matrix as the quantization matrix set to be used to
`
`perform the quantization on the target block, the quantization matrix set being selected from a
`
`plurality of quantization matrix sets, the plurality of quantization matrix sets including (i)_a first
`
`
`quantization matrix set which is arbitrarily specified and is encoded and @a plurality of second
`
`quantization matrix sets which have been respectively defined in advance and are not encoded,
`
`each of the plurality of second quantization matrix sets includes a quantization matrix
`
`having quantization values different from quantization values of a quantization matrix included
`
`in any other one of the plurality of second quantization matrix sets, [[and]]
`
`when the quantization matrix set which has been set is the first quantization matrix set,
`
`the encoder further encodes the first quantization matrix, and[[.]]
`
`when the plurality of second quantization matrix sets include a first set and a second set,
`
`respectively, as second quantization matrix sets,
`
`a quantization matrix in the first set which corresponds to a block size is different
`
`from a quantization matrix in the second set which corresponds to the block size.
`
`
`
`30. (Currently Amended) An encoding apparatus which encodes an image on a per block basis,
`
`the encoding apparatus comprising:
`
`a processing circuit; and
`
`storage which is electrically connected to the processing circuit,
`
`wherein the processing circuit executes:
`
`setting a quantization matrix set to be used to perform quantization on a target block; the
`
`quantization matrix set including a plurality of quantization matrices;
`
`performing the quantization on the target block using a quantization matrix selected from
`
`the quantization matrix set which has been set; and
`
`encoding; in a mutually associated manner; the target block which has been subjected to
`
`the quantization and identification information for identifying the quantization matrix set which
`
`has been set;
`
`wherein; in the setting:
`
`a quantization matrix set selected from a plurality of quantization matrix sets is
`
`set as the quantization matrix set to be used to perform the quantization on the target
`
`block; the plurality of quantization matrix sets including (ila first quantization matrix set;
`
`
`which is arbitrarily specified and is encoded and @a plurality of second quantization
`
`matrix sets; which have been respectively defined in advance and are not encoded; and
`
`each of the plurality of second quantization matrix sets includes a quantization
`
`matrix having quantization values different from quantization values of a quantization
`
`matrix included in any other one of the plurality of second quantization matrix sets;
`
`[[and]]
`
`in the encoding;
`
`when the quantization matrix set which has been set is the first quantization
`
`matrix set; the first quantization matrix set is further encoded; and[[.]]
`
`when the plurality of second quantization matrix sets include a first set and a second set;
`
`respectively; as second quantization matrix sets;
`
`a quantization matrix in the first set; which corresponds to a block size; is
`
`different from a quantization matrix in the second set; which corresponds to the block
`
`size.
`
`
`
`3 l. (Cancelled)
`
`32. (Cancelled)
`
`33. (Currently Amended) An encoding method for encoding an image in a video on a per block
`
`basis, the encoding method comprising:
`
`setting a quantization matrix set to be used to perform quantization on a target block, the
`
`quantization matrix set including a plurality of quantization matrices;
`
`performing the quantization on the target block using a quantization matrix selected from
`
`the quantization matrix set which has been set, and
`
`encoding, in a mutually associated manner, the target block which has been subjected to
`
`the quantization and identification information for identifying the quantization matrix set which
`
`has been set,
`
`wherein, in the setting:
`
`a quantization matrix set selected from a plurality of quantization matrix sets
`
`which have been respectively defined in advance and are not encoded is set as the
`
`quantization matrix set to be used to perform the quantization on the target block, and
`
`each of the plurality of quantization matrix sets includes a quantization matrix
`
`having quantization values different from quantization values of a quantization matrix
`
`included in any other one of the plurality of second quantization matrix sets, and[[.]]
`
`when the plurality of quantization matrix sets include a first set and a second set,
`
`respectively, as quantization matrix sets,
`
`a quantization matrix in the first set, which corresponds to a block size, is
`
`different from a quantization matrix in the second set, which corresponds to the block
`
`size.
`
`34. (Cancelled)
`
`35. (Previously Presented) The encoding method according to claim 17,
`
`
`
`wherein each of the arbitrary quantization matrix set and the plurality of default
`
`quantization matrix sets includes at least a quantization matrix suitable for a first prediction
`
`mode and a quantization matrix suitable for a second prediction mode.
`
`36. (Cancelled)
`
`