refactor helper functions out of libjpeg wrapper



git-svn-id: http://skia.googlecode.com/svn/trunk@476 2bbb7eff-a529-9590-31e7-b0007b416f81
3 files changed