Method for encoding/decoding video and recording medium storing the method for encoding video
A method of encoding video includes encoding a texture image, and encoding metadata for the texture image. A value of a chrominance sample expressed within an original dynamic range in the texture image is changed to a value within a changed dynamic range and encoded.
1 . A method of encoding video, the method comprising:
encoding a texture atlas including patches of a plurality of viewpoint images; and
encoding metadata for the plurality of viewpoint images,
wherein a chrominance sample value represented in an original dynamic range in the texture atlas is encoded by modifying the chrominance sample value to be represented in a changed dynamic range,
wherein the metadata comprises a chrominance component scaling parameter for restoring the modified chrominance sample value represented in the changed dynamic range to the chrominance sample value represented in the original dynamic range, and
wherein the chrominance component scaling parameter is encoded for each of the viewpoint images.
2 . The method according to claim 1 , wherein the chrominance component scaling parameter comprises maximum value information of a chrominance component indicating a maximum value of chrominance sample values represented in the original dynamic range and minimum value information of a chrominance component indicating a minimum value of the chrominance sample values represented in the original dynamic range.
3 . A method of decoding video, the method comprising:
decoding a texture atlas including patches of a plurality of viewpoint images; and
decoding metadata for the plurality of viewpoint images,
wherein the metadata comprises a chrominance component scaling parameter to modify a value of a chrominance sample decoded from the texture atlas to a value represented in an original dynamic range, and
wherein the chrominance component scaling parameter is decoded for each of the plurality of viewpoint images.
4 . The method according to claim 3 , wherein the chrominance component scaling parameter comprises maximum value information indicating a maximum value of chrominance component sample values represented in the original dynamic range of a viewpoint image and minimum value information indicating a minimum value of the chrominance component sample values represented in the original dynamic range of the viewpoint image.
5 . The method according to claim 4 , wherein the modified value of the chrominance sample is determined by scaling a value derived by multiplying the decoded value of the chrominance sample by a difference between the maximum value and the minimum value and then adding the minimum value thereto.
6 . The method according to claim 5 , wherein:
the scaling is performed based on a scaling parameter, and
the metadata further comprises a value indicating the scaling parameter.
7 . A non-transitory computer-readable recording medium storing instructions that, when executed by a computer, cause the computer to carry out:
encoding a texture atlas including patches of a plurality of viewpoint images; and
encoding metadata for the plurality of viewpoint images,
wherein a chrominance sample value represented in an original dynamic range in the texture atlas is encoded by modifying the chrominance sample value to be represented in a changed dynamic range, and
wherein the metadata comprises a chrominance component scaling parameter for restoring the modified chrominance sample value represented in the changed dynamic range to the chrominance sample value represented in the original dynamic range, and
wherein the chrominance component scaling parameter is encoded for each of the viewpoint images.