parameters.cp_tdx = 512;
parameters.cp_tdy = 512;
}
- opj_setup_encoder_v2(l_codec, ¶meters, image);
+ opj_setup_encoder(l_codec, ¶meters, image);
/* Open the output file*/
fout = fopen(parameters.outfile, "wb");
return l_stream;
}
-opj_bool OPJ_CALLCONV opj_setup_encoder_v2( opj_codec_t *p_codec,
- opj_cparameters_t *parameters,
- opj_image_t *p_image)
+opj_bool OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec,
+ opj_cparameters_t *parameters,
+ opj_image_t *p_image)
{
if (p_codec && parameters && p_image) {
opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec;
* @param parameters Compression parameters
* @param image Input filled image
*/
-OPJ_API opj_bool OPJ_CALLCONV opj_setup_encoder_v2( opj_codec_t *p_codec,
- opj_cparameters_t *parameters,
- opj_image_t *image);
+OPJ_API opj_bool OPJ_CALLCONV opj_setup_encoder(opj_codec_t *p_codec,
+ opj_cparameters_t *parameters,
+ opj_image_t *image);
/**
*/
l_image->y1 = image_height;
l_image->color_space = CLRSPC_SRGB;
- if (! opj_setup_encoder_v2(l_codec,&l_param,l_image)) {
+ if (! opj_setup_encoder(l_codec,&l_param,l_image)) {
fprintf(stderr, "ERROR -> test_tile_encoder: failed to setup the codec!\n");
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);