Device and method for coding video data
Abstract
A method of decoding a bitstream by an electronic device is provided. An image frame of the bitstream is received, and a block unit having a block width and a block height is determined from the received image frame. The electronic device determines whether a geometric partitioning mode is disabled for the block unit based on a comparison between the block width and the block height. 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 enabled and applied on the block unit. The predicted block is generated by predicting block unit based on a prediction mode different from the geometric partitioning mode when the geometric partitioning mode is disabled for the block unit. The block unit is reconstructed based on the predicted block.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . 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, the block unit being divided to generate a plurality of sub-blocks predicted by different merge candidates of the block unit when the geometric partitioning mode is enabled and 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.
2 . The method according to claim 1 , further comprising:
determining that the geometric partitioning mode is disabled for the block unit when the comparison between the block width and the block height indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value; and determining that the geometric partitioning mode is not disabled when the comparison between the block width and the block height indicates that the ratio value is less than the threshold value.
3 . The method according to claim 2 , further comprising:
determining a ratio parameter generated based on the block width and the block height; comparing the ratio parameter with a ratio threshold; determining that the comparison between the block width and the block height indicates that the ratio value is greater than or equal to the threshold value when the ratio parameter is greater than or equal to the ratio threshold; and determining that the comparison between the block width and the block height indicates that the ratio value is less than the threshold value when the ratio parameter is less than the ratio threshold.
4 . The method according to claim 3 , wherein:
the ratio parameter is determined by dividing the block width by the block height when the block width is greater than the block height, and the ratio parameter is determined by dividing the block height by the block width when the block height is greater than or equal to the block width.
5 . The method according to claim 3 , wherein the ratio parameter is equal to an absolute value of a difference value generated by subtracting a base-2 logarithm of the block height from a base-2 logarithm of the block width.
6 . The method according to claim 2 , further comprising:
comparing the block width with a first magnified value generated by multiplying the block height by the threshold value; comparing the block height with a second magnified value generated by multiplying the block width by the threshold value; determining that the comparison between the block width and the block height 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; determining that the comparison between the block width and the block height 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; and determining that the comparison between the block width and the block height 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.
7 . The method according to claim 1 , further comprising:
determining a partition index, a first merge index, and a second merge index of the block unit when the block unit is predicted by the geometric partitioning mode; dividing the block unit to generate a first sub-block and a second sub-block based on the partition index; and predicting the first sub-block by a first merge mode selected from a plurality of merge candidates based on the first merge index, and predicting the second sub-block by a second merge mode selected from the plurality of merge candidates based on the second merge index to generate the predicted block.
8 . 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 a comparison between the block width and the block height; generating a predicted block by predicting the block unit based on a first prediction mode different from a geometric partitioning mode when the comparison between the block width and the block height indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value, the block unit being divided to generate a plurality of sub-blocks predicted by different merge candidates of the block unit when the geometric partitioning mode is enabled and applied on the block unit; and reconstructing the block unit based on the predicted block.
9 . The method according to claim 8 , further comprising:
determining a ratio parameter generated based on the block width and the block height; comparing the ratio parameter with a ratio threshold; and determining that the comparison between the block width and the block height indicates that the ratio value is greater than or equal to the threshold value when the ratio parameter is greater than or equal to the ratio threshold.
10 . The method according to claim 9 , wherein:
the ratio parameter is determined by dividing the block width by the block height when the block width is greater than the block height, and the ratio parameter is determined by dividing the block height by the block width when the block height is greater than or equal to the block width.
11 . The method according to claim 9 , wherein the ratio parameter is equal to an absolute value of a difference value generated by subtracting a base-2 logarithm of the block height from a base-2 logarithm of the block width.
12 . The method according to claim 9 , further comprising:
determining that the comparison between the block width and the block height indicates that the ratio value is less than the threshold value when the ratio parameter is less than the ratio threshold; and generating the predicted block by predicting the block unit based on a second prediction mode selected from a plurality of candidate modes including the geometric partitioning mode when the comparison between the block width and the block height indicates that the ratio value is less than the threshold value.
13 . The method according to claim 8 , further comprising:
comparing the block width with a first magnified value generated by multiplying the block height by the threshold value; comparing the block height with a second magnified value generated by multiplying the block width by the threshold value; determining that the comparison between the block width and the block height 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; and determining that the comparison between the block width and the block height 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.
14 . The method according to claim 13 , further comprising:
determining that the comparison between the block width and the block height 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; and predicting the block unit to generate the predicted block by using a second prediction mode selected from a plurality of candidate modes including the geometric partitioning mode when the comparison between the block width and the block height represents that the ratio value is less than the threshold value.
15 . An electronic device for decoding a bitstream, the electronic device comprising:
at least one processor; and a storage device coupled to the at least one processor and storing a program which, when executed by the at least one processor, causes the electronic device to: receive an image frame of the bitstream; determine a block unit having a block width and a block height from the received image frame; determine a comparison between the block width and the block height; generate a predicted block by predicting the block unit based on a first prediction mode different from a geometric partitioning mode when the comparison between the block width and the block height indicates that a ratio value between the block width and the block height is greater than or equal to a threshold value, wherein 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 enabled and applied on the block unit; and reconstruct the block unit based on the predicted block.
16 . The electronic device according to claim 15 , wherein the program, when executed by the at least one processor, further causes the electronic device to:
determine a ratio parameter generated based on the block width and the block height; compare the ratio parameter with a ratio threshold; and determine that the comparison between the block width and the block height indicates that the ratio value is greater than or equal to the threshold value when the ratio parameter is greater than or equal to the ratio threshold.
17 . The electronic device according to claim 16 , wherein:
the ratio parameter is determined by dividing the block width by the block height when the block width is greater than the block height, and the ratio parameter is determined by dividing the block height by the block width when the block height is greater than or equal to the block width.
18 . The electronic device according to claim 16 , wherein the ratio parameter is equal to an absolute value of a difference value generated by subtracting a base-2 logarithm of the block height from a base-2 logarithm of the block width.
19 . The electronic device according to claim 16 , wherein the program, when executed by the at least one processor, further causes the electronic device to:
determine that the comparison between the block width and the block height indicates that the ratio value is less than the threshold value when the ratio parameter is less than the ratio threshold; and generate the predicted block by predicting the block unit based on a second prediction mode selected from a plurality of candidate modes including the geometric partitioning mode when the comparison between the block width and the block height represents that the ratio value is less than the threshold value.
20 . The electronic device according to claim 15 , wherein the program, when executed by the at least one processor, further causes the electronic device to:
compare the block width with a first magnified value generated by multiplying the block height by the threshold value; compare the block height with a second magnified value generated by multiplying the block width by the threshold value; determine that the comparison between the block width and the block height 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; determine that the comparison between the block width and the block height 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; determine that the comparison between the block width and the block height 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; and generate the predicted block by predicting the block unit based on a second prediction mode selected from a plurality of candidate modes including the geometric partitioning mode when the comparison between the block width and the block height indicates that the ratio value is less than the threshold value.Join the waitlist — get patent alerts
Track US2022166978A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.