FIG. 6 is an exemplary diagram for explaining setting a luminance value and a gradient for pixels at positions outside a reference block within a mask in a padding manner;
FIG. 7 is an exemplary diagram of the shape of a mask centered on a subblock in subblock-based BIO;
FIG. 8 is an exemplary diagram for explaining applying a mask on a pixel-by-pixel basis in the subblock-based BIO;
FIG. 9 is an exemplary diagram of the shape of another mask centered on a subblock in the subblock-based BIO;
FIG. 10 is a block diagram illustrating a configuration of a device configured to perform motion compensation by selectively applying a BIO process according to an embodiment of the present disclosure;
FIG. 11 is an exemplary diagram illustrating a procedure of performing motion compensation by selectively applying the BIO process based on texture complexity of a current block according to an embodiment of the present disclosure;
FIG. 12 is another exemplary diagram illustrating a procedure of performing motion compensation by selectively applying the BIO process based on texture complexity of a current block according to an embodiment of the present disclosure;
FIG. 13 is yet another exemplary diagram illustrating a procedure of performing motion compensation by selectively applying the BIO process based on texture complexity of a current block according to an embodiment of the present disclosure;