이미지 디코딩에 대한 내용은 다음 링크를 참고하시기 바랍니다.
http://ccdev.tistory.com/2
http://helloworld.naver.com/helloworld/539525