#include <string.h>
#include "openjpeg.h"
-#include "j2k.h"
-#include "jp2.h"
+#include "../libopenjpeg/j2k.h"
+#include "../libopenjpeg/jp2.h"
#include "mj2.h"
/* -------------------------------------------------------------------------- */
mj2_dparameters_t parameters;
if (argc != 3) {
- printf("Bad syntax: Usage: MJ2_extractor mj2filename output_location\n");
- printf("Example: MJ2_extractor foreman.mj2 output/foreman\n");
+ printf("Usage: %s mj2filename output_location\n",argv[0]);
+ printf("Example: %s foreman.mj2 output/foreman\n",argv[0]);
return 1;
}
/* setup the decoder decoding parameters using user parameters */
movie = (opj_mj2_t*) dinfo->mj2_handle;
- mj2_setup_decoder(dinfo->mj2_handle, ¶meters);
+ mj2_setup_decoder((opj_mj2_t*)dinfo->mj2_handle, ¶meters);
if (mj2_read_struct(file, movie)) // Creating the movie structure
return 1;