Lines Matching refs:sortbuf
6367 uint16_t *sortbuf, value;
6395 sortbuf = malloc( lines * ms->lut_entry_size );
6396 DBG(100, "prepare_shading_data: sortbuf= %p, malloc'd %d Bytes\n",
6397 (void *) sortbuf, lines * ms->lut_entry_size);
6398 if ( sortbuf == NULL )
6431 *(sortbuf + line ) =
6436 qsort(sortbuf, lines, sizeof(uint16_t),
6438 value = *(sortbuf + ( lines - 1 ) / 2 );
6472 *(sortbuf + line ) =
6477 qsort(sortbuf, lines, sizeof(uint16_t),
6479 value = *(sortbuf + ( lines - 1 ) / 2 );
6537 DBG(100, "prepare_shading_data: free sortbuf at %p\n", (void *) sortbuf);
6538 free(sortbuf);
6539 sortbuf = NULL;
6677 uint16_t *sortbuf, value;
6682 sortbuf = malloc( md->shading_length * sizeof(float) );
6683 DBG(100, "calc_cx_shading: sortbuf= %p, malloc'd %lu Bytes\n",
6684 (void *) sortbuf, (u_long) (md->shading_length * sizeof(float)));
6685 if ( sortbuf == NULL )
6774 *( sortbuf + line ) = accu;
6777 qsort(sortbuf, md->shading_length, sizeof(float),
6779 value = *( sortbuf + ( md->shading_length - 1 ) / 2 );