free(l_data);
}
else {
- bSuccess = bSuccess && opj_encode_v2(l_codec, l_stream);
+ bSuccess = bSuccess && opj_encode(l_codec, l_stream);
if (!bSuccess) {
- fprintf(stderr, "failed to encode image: opj_encode_v2\n");
+ fprintf(stderr, "failed to encode image: opj_encode\n");
}
}
bSuccess = bSuccess && opj_end_compress(l_codec, l_stream);
return OPJ_FALSE;
}
-opj_bool OPJ_CALLCONV opj_encode_v2(opj_codec_t *p_info, opj_stream_t *p_stream)
+opj_bool OPJ_CALLCONV opj_encode(opj_codec_t *p_info, opj_stream_t *p_stream)
{
if (p_info && p_stream) {
opj_codec_private_t * l_codec = (opj_codec_private_t *) p_info;
*
* @return Returns true if successful, returns false otherwise
*/
-OPJ_API opj_bool OPJ_CALLCONV opj_encode_v2(opj_codec_t *p_codec,
- opj_stream_t *p_stream);
+OPJ_API opj_bool OPJ_CALLCONV opj_encode(opj_codec_t *p_codec,
+ opj_stream_t *p_stream);
/**