[MODIFY] calc the framebuffer size according to pixel format when set and (width, height) when get.