A three-dimensional data decoding device that decodes a plurality of encoded three-dimensional points, the device comprising:
- a processor;
- and
- a memory, wherein
- by using the memory, the processor performs:
- decoding a number of encoded prediction modes included in a bitstream;
- decoding one encoded prediction mode in the bitstream in accordance with the number decoded in the decoding, the one encoded prediction mode being among two or more prediction modes each being used to calculate a predicted value of an attribute information item of a first three-dimensional point;
- calculating the predicted value by the one prediction mode decoded in the decoding.