Patent attributes
A method of decoding a bitstream by an electronic device is provided. Encoded data is received for at least one image frame each including one or more regions. A first affine flag is determined from a first syntax structure associated with the at least one image frame when an affine mode including affine tools is enabled in the at least one image frame. A second affine flag is present in the first syntax structure when the first affine flag is equal to one. A third affine flag corresponding to one of the affine tools is present in a second syntax structure associated with a specific one of the one or more region when the second affine flag is equal to one. The specific region is reconstructed based on first candidate modes including the one of the affine tools when the third affine flag is equal to zero.