A method of decoding a bitstream by an electronic device, the method comprising: receiving an image frame of the bitstream; determining a block unit having a block width and a block height from the received image frame; determining whether a geometric partitioning mode is disabled for the block unit based on a comparison between the block width and the block height, wherein: the geometric partitioning mode is disabled for the block unit when the comparison indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value, the geometric partitioning mode is not disabled when the comparison indicates that the ratio value is less than the threshold value, the block width is compared with a first magnified value generated by multiplying the block height by the threshold value, the block height is compared with a second magnified value generated by multiplying the block width by the threshold value, wherein the threshold value used to generate the first magnified value and the second magnified value is equal to 8, the comparison indicates that the ratio value is less than the threshold value when the block width is less than the first magnified value and the block height is less than the second magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block width is greater than or equal to the first magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block height is greater than or equal to the second magnified value, and the block unit is divided to generate a plurality of sub-blocks predicted by different merge candidates of the block unit when the geometric partitioning mode is applied on the block unit; generating a predicted block by predicting the block unit based on a prediction mode different from the geometric partitioning mode when the geometric partitioning mode is disabled for the block unit; and reconstructing the block unit based on the predicted block. receiving an image frame of the bitstream; determining a block unit having a block width and a block height from the received image frame; determining whether a geometric partitioning mode is disabled for the block unit based on a comparison between the block width and the block height, wherein: the geometric partitioning mode is disabled for the block unit when the comparison indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value, the geometric partitioning mode is not disabled when the comparison indicates that the ratio value is less than the threshold value, the block width is compared with a first magnified value generated by multiplying the block height by the threshold value, the block height is compared with a second magnified value generated by multiplying the block width by the threshold value, wherein the threshold value used to generate the first magnified value and the second magnified value is equal to 8, the comparison indicates that the ratio value is less than the threshold value when the block width is less than the first magnified value and the block height is less than the second magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block width is greater than or equal to the first magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block height is greater than or equal to the second magnified value, and the block unit is divided to generate a plurality of sub-blocks predicted by different merge candidates of the block unit when the geometric partitioning mode is applied on the block unit; the geometric partitioning mode is disabled for the block unit when the comparison indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value, the geometric partitioning mode is not disabled when the comparison indicates that the ratio value is less than the threshold value, the block width is compared with a first magnified value generated by multiplying the block height by the threshold value, the block height is compared with a second magnified value generated by multiplying the block width by the threshold value, wherein the threshold value used to generate the first magnified value and the second magnified value is equal to 8, the comparison indicates that the ratio value is less than the threshold value when the block width is less than the first magnified value and the block height is less than the second magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block width is greater than or equal to the first magnified value, the comparison indicates that the ratio value is greater than or equal to the threshold value when the block height is greater than or equal to the second magnified value, and the block unit is divided to generate a plurality of sub-blocks predicted by different merge candidates of the block unit when the geometric partitioning mode is applied on the block unit; generating a predicted block by predicting the block unit based on a prediction mode different from the geometric partitioning mode when the geometric partitioning mode is disabled for the block unit; and reconstructing the block unit based on the predicted block.