An image encoding method, comprising: for a sub-image block obtained by partitioning an image block, determining at least two position parameters, wherein the at least two position parameters comprise a first position parameter and a second position parameter, an absolute value of the first position parameter and an absolute value of the second position parameter each identify a distance from an endpoint of a boundary of the sub-image block to a corresponding reference endpoint, the boundary of the sub-image block is not on a boundary of the image block, the corresponding reference endpoint is an endpoint, being a intersection between boundaries of the image block, on the image block that is located on a same boundary as the endpoint of the boundary of the sub-image block, and a sign of the first position parameter and a sign of the second position parameter jointly identify the position of the sub-image block in the image block; and encoding the at least two position parameters, wherein: when the first position parameter and the second position parameter are both specific numerical values and therefore the image block is divided into two equal triangles, the at least two position parameters further comprise: a third position parameter; the determining at least two position parameters further comprises: determining the third position parameter according to whether a partition manner of the image block is a partition manner from lower left to upper right or a partition manner from lower right to upper left. for a sub-image block obtained by partitioning an image block, determining at least two position parameters, wherein the at least two position parameters comprise a first position parameter and a second position parameter, an absolute value of the first position parameter and an absolute value of the second position parameter each identify a distance from an endpoint of a boundary of the sub-image block to a corresponding reference endpoint, the boundary of the sub-image block is not on a boundary of the image block, the corresponding reference endpoint is an endpoint, being a intersection between boundaries of the image block, on the image block that is located on a same boundary as the endpoint of the boundary of the sub-image block, and a sign of the first position parameter and a sign of the second position parameter jointly identify the position of the sub-image block in the image block; and encoding the at least two position parameters, wherein: when the first position parameter and the second position parameter are both specific numerical values and therefore the image block is divided into two equal triangles, the at least two position parameters further comprise: a third position parameter; the determining at least two position parameters further comprises: determining the third position parameter according to whether a partition manner of the image block is a partition manner from lower left to upper right or a partition manner from lower right to upper left. when the first position parameter and the second position parameter are both specific numerical values and therefore the image block is divided into two equal triangles, the at least two position parameters further comprise: a third position parameter; the determining at least two position parameters further comprises: determining the third position parameter according to whether a partition manner of the image block is a partition manner from lower left to upper right or a partition manner from lower right to upper left. determining the third position parameter according to whether a partition manner of the image block is a partition manner from lower left to upper right or a partition manner from lower right to upper left.