[trunk] rename opj_setup_encoder_v2 to opj_setup_encoder
This commit is contained in:
parent
459db3d64b
commit
6767ea2456
|
@ -1821,7 +1821,7 @@ int main(int argc, char **argv) {
|
|||
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");
|
||||
|
|
|
@ -673,9 +673,9 @@ opj_stream_t* OPJ_CALLCONV opj_stream_create_file_stream ( FILE * p_file,
|
|||
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;
|
||||
|
|
|
@ -1400,9 +1400,9 @@ OPJ_API void OPJ_CALLCONV opj_set_default_encoder_parameters(opj_cparameters_t *
|
|||
* @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);
|
||||
|
||||
/**
|
||||
*/
|
||||
|
|
|
@ -271,7 +271,7 @@ int main (int argc, char *argv[])
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue