employer cover photo
employer logo

Pergunta de entrevista da empresa Oculus VR

How would you send an encoded message in an image. First encode it, then write code to decode it.

Resposta da entrevista

Sigiloso

18 de jan. de 2016

I would always start with the simplest and fairly obvious answer; I would put the message to least significant bit layer of the image. The receiving end would only read the least significant bit layer of the image accordingly to decode the message. The least significant bit is invisible to the human eye. Test yourself by painting a rectangle with two reds next to each other of values (255,0,0) and (254,0,0). See if you can tell the difference.