The decode() method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
decode()
MDN Reference