GLOBAL(long)
jdiv_round_up(long a, long b) /* Compute a/b rounded up to next integer, ie, ceil(a/b) */ /* Assumes a >= 0, b > 0 */
{ return (a + b - 1L) / b;
}
GLOBAL(long)
jround_up(long a, long b) /* Compute a rounded up to next multiple of b, ie, ceil(a/b)*b */ /* Assumes a >= 0, b > 0 */
{
a += b - 1L; return a - (a % b);
}
GLOBAL(void)
_jcopy_sample_rows(_JSAMPARRAY input_array, int source_row,
_JSAMPARRAY output_array, int dest_row, int num_rows,
JDIMENSION num_cols) /* Copy some rows of samples from one place to another. *num_rowsrowsarecopiedfrominput_array[source_row++] *tooutput_array[dest_row++];theseareasmayoverlapforduplication. *Thesourceanddestinationarraysmustbeatleastaswideasnum_cols.
*/
{ register _JSAMPROW inptr, outptr; register size_t count = (size_t)(num_cols * sizeof(_JSAMPLE)); registerint row;
GLOBAL(void)
jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row,
JDIMENSION num_blocks) /* Copy a row of coefficient blocks from one place to another. */
{
memcpy(output_row, input_row, num_blocks * (DCTSIZE2 * sizeof(JCOEF)));
}
GLOBAL(void)
jzero_far(void *target, size_t bytestozero) /* Zero out a chunk of memory. */ /* This might be sample-array data, block-array data, or alloc_large data. */
{
memset(target, 0, bytestozero);
}
#endif/* BITS_IN_JSAMPLE == 8 */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.