Image quality degradation is suppressed when an encoding method having a restriction on motion vector selection near a slice boundary is used. An estimation means for estimating whether an optimal motion vector can be selected in the vicinity of a slice boundary based on an analysis result of an analysis means and SDR / HDR switching information; and an estimation result of the estimation means The coding structure is based on an SOP structure composed of only pictures with a temporal ID of 0, an SOP structure composed of pictures with a temporal ID of 0 and 1 pictures, a picture with a temporal ID of 0, a picture of 1 and Coding structure determining means 13 for adaptively determining any one of the SOP structure composed of two pictures, the picture whose Temporal ID is 0, the one picture, the two pictures, and the three pictures And transmission means 14 for transmitting the switching information between SDR and HDR to the video decoding side. [Selection] Figure 9
展开▼