Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/jp2.c
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | static OPJ_CODEC_FORMAT format_from_header(const unsigned char mem[JP2_FILEHEADER_SIZE]) | ||||
| } | } | ||||
| else { | else { | ||||
| return OPJ_CODEC_UNKNOWN; | return OPJ_CODEC_UNKNOWN; | ||||
| } | } | ||||
| } | } | ||||
| int imb_is_a_jp2(const unsigned char *buf) | int imb_is_a_jp2(const unsigned char *buf) | ||||
| { | { | ||||
| return check_jp2(buf); | return (check_jp2(buf) || check_j2k(buf)); | ||||
| } | } | ||||
| /** | /** | ||||
| * sample error callback expecting a FILE* client object | * sample error callback expecting a FILE* client object | ||||
| */ | */ | ||||
| static void error_callback(const char *msg, void *client_data) | static void error_callback(const char *msg, void *client_data) | ||||
| { | { | ||||
| FILE *stream = (FILE *)client_data; | FILE *stream = (FILE *)client_data; | ||||
| ▲ Show 20 Lines • Show All 1,195 Lines • Show Last 20 Lines | |||||