The question is: How can i tell two files apart? One coded with JPEG, another with JPEG2000.
I need format-specific file read/write functions, i can't find file encoding without reading it. JPEG works fine right now, but JPEG func fails to open JPEG2000. So i need to determine whether my file is JPG or JPEG2000.