Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching refs:ppm_buffer

3505                 l_cp->ppm_buffer = (OPJ_BYTE *) opj_malloc(l_cp->ppm_len);
3506 if (l_cp->ppm_buffer == 00) {
3510 memset(l_cp->ppm_buffer,0,l_cp->ppm_len);
3512 l_cp->ppm_data = l_cp->ppm_buffer;
3524 OPJ_BYTE *new_ppm_buffer = (OPJ_BYTE *) opj_realloc(l_cp->ppm_buffer, l_cp->ppm_len);
3526 opj_free(l_cp->ppm_buffer);
3527 l_cp->ppm_buffer = NULL;
3533 l_cp->ppm_buffer = new_ppm_buffer;
3534 memset(l_cp->ppm_buffer+l_cp->ppm_data_size,0,l_N_ppm);
3535 l_cp->ppm_data = l_cp->ppm_buffer;
3546 memcpy(l_cp->ppm_buffer + l_cp->ppm_data_size , p_header_data , l_remaining_data);
3552 memcpy(l_cp->ppm_buffer + l_cp->ppm_data_size , p_header_data , p_header_size);
3598 l_cp->ppm_buffer = NULL;
3618 l_cp->ppm_buffer = NULL;
3628 l_cp->ppm_buffer = l_cp->ppm_data;
3636 /*l_cp->ppm_data = l_cp->ppm_buffer;*/
3662 l_cp->ppm_buffer = NULL;
3667 assert(l_cp->ppm_data == l_cp->ppm_buffer && "We need ppm_data and ppm_buffer to be the same when reallocating");
3672 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3678 l_cp->ppm_buffer = l_cp->ppm_data;
3702 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3723 assert(l_cp->ppm_data == l_cp->ppm_buffer && "We need ppm_data and ppm_buffer to be the same when reallocating");
3728 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3737 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3743 l_cp->ppm_buffer = l_cp->ppm_data;
3755 assert(l_cp->ppm_data == l_cp->ppm_buffer && "We need ppm_data and ppm_buffer to be the same when reallocating");
3761 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3770 l_cp->ppm_buffer = NULL; /* TODO: no need for a new local variable: ppm_buffer and ppm_data are enough */
3776 l_cp->ppm_buffer = l_cp->ppm_data;
3800 OPJ_BYTE *new_ppm_buffer = (OPJ_BYTE *) opj_realloc(l_cp->ppm_buffer, l_cp->ppm_len);
3802 opj_free(l_cp->ppm_buffer);
3803 l_cp->ppm_buffer = NULL;
3808 l_cp->ppm_buffer = new_ppm_buffer;
3809 memset(l_cp->ppm_buffer+l_cp->ppm_data_size,0,l_N_ppm);
3811 l_cp->ppm_data = l_cp->ppm_buffer;
3822 memcpy(l_cp->ppm_buffer + l_cp->ppm_data_size , p_header_data , l_remaining_data);
3828 memcpy(l_cp->ppm_buffer + l_cp->ppm_data_size , p_header_data , p_header_size);
7671 opj_free(p_cp->ppm_buffer);
7672 p_cp->ppm_buffer = 00;
7673 p_cp->ppm_data = NULL; /* ppm_data belongs to the allocated buffer pointed by ppm_buffer */