pixel encoding finished