Image data encoding/decoding method and apparatus
A method for decoding a 360-degree image includes: receiving a bitstream obtained by encoding a 360-degree image; generating a prediction image by making reference to syntax information obtained from the received bitstream; combining the generated prediction image with a residual image obtained by dequantizing and inverse-transforming the bitstream, so as to obtain a decoded image; and reconstructing the decoded image into a 360-degree image according to a projection format. Here, generating the prediction image includes: checking, from the syntax information, prediction mode accuracy for a current block to be decoded; determining whether the checked prediction mode accuracy corresponds to most probable mode (MPM) information obtained from the syntax information; and when the checked prediction mode accuracy does not correspond to the MPM information, reconfiguring the MPM information according to the prediction mode accuracy for the current block.
1. A method of decoding an image with a decoding apparatus, comprising:
obtaining a reconstructed image by decoding a bitstream;
performing in-loop filtering for both vertical boundaries and horizontal boundaries between blocks included in the reconstructed image;
obtaining image processing information from the bitstream; and
performing an image processing on the in-loop filtered reconstructed image based on the image processing information,
wherein the image processing comprises padding at least one region to the reconstructed image,
wherein the padding uses a sample inside the reconstructed image for the region to be padded, and
wherein the sample inside the reconstructed image is determined using at least one equation, the equation using a width of the image or a height of the image.
2. A method of encoding an image with an encoding apparatus, comprising:
encoding the image into a bitstream; and
encoding image processing information into the bitstream,
wherein the reconstructed image is obtained by decoding the bitstream,
wherein in-loop filtering is performed for both vertical boundaries and horizontal boundaries between blocks included in the reconstructed image,
wherein an image processing is performed on the in-loop filtered reconstructed image based on the image processing information,
wherein the image processing comprises padding at least one region to the reconstructed image,
wherein the padding uses a sample inside the reconstructed image for the region to be padded, and
wherein the sample inside the reconstructed image is determined using at least one equation, the equation using a width of the image or a height of the image.
3. A non-transitory computer readable recording medium storing a bitstream which is generated by a method of encoding an image, the method of encoding comprises:
encoding the image into a bitstream;
encoding image processing information into the bitstream; and
storing the bitstream in the non-transitory computer readable recording medium,
wherein a reconstructed image is obtained by decoding the bitstream,
wherein in-loop filtering is performed for both vertical boundaries and horizontal boundaries between blocks included in the reconstructed image,
wherein an image processing is performed on the in-loop filtered reconstructed image based on the image processing information,
wherein the image processing comprises padding at least one region to the reconstructed image,
wherein the padding uses a sample inside the reconstructed image for the region to be padded, and
wherein the sample inside the reconstructed image is determined using at least one equation, the equation using a width of the image or a height of the image.
4. A method of transmitting a bitstream, the method comprising:
encoding an image into the bitstream;
encoding image processing information into the bitstream; and
transmitting the bitstream,
wherein a reconstructed image is obtained by decoding the bitstream,
wherein in-loop filtering is performed for both vertical boundaries and horizontal boundaries between blocks included in the reconstructed image,
wherein an image processing is performed on the in-loop filtered reconstructed image based on the image processing information,
wherein the image processing comprises padding at least one region to the reconstructed image,
wherein the padding uses a sample inside the reconstructed image for the region to be padded, and
wherein the sample inside the reconstructed image is determined using at least one equation, the equation using a width of the image or a height of the image.