# include/gutenprint/bit-ops.h File Reference

## Functions

void | stp_fold (const unsigned char *line, int single_length, unsigned char *outbuf)
void | stp_fold_3bit (const unsigned char *line, int single_length, unsigned char *outbuf)
void | stp_fold_3bit_323 (const unsigned char *line, int single_length, unsigned char *outbuf)
void | stp_fold_4bit (const unsigned char *line, int single_length, unsigned char *outbuf)
void | stp_split_2 (int height, int bits, const unsigned char *in, unsigned char *outhi, unsigned char *outlo)
void | stp_split_4 (int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3)
void | stp_unpack_2 (int height, int bits, const unsigned char *in, unsigned char *outlo, unsigned char *outhi)
void | stp_unpack_4 (int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3)
void | stp_unpack_8 (int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3, unsigned char *out4, unsigned char *out5, unsigned char *out6, unsigned char *out7)

void

stp_unpack_16 (int height, int bits, const unsigned char *in, unsigned char *out0, unsigned char *out1, unsigned char *out2, unsigned char *out3, unsigned char *out4, unsigned char *out5, unsigned char *out6, unsigned char *out7, unsigned char *out8, unsigned char *out9, unsigned char *out10, unsigned char *out11, unsigned char *out12, unsigned char *out13, unsigned char *out14, unsigned char *out15)

## Detailed Description

Bit operations.

## Function Documentation

void stp_fold | ( | const unsigned char * | line,
|  | int | single_length,
|  | unsigned char * | outbuf |
| ) |  |  |

void stp_fold_3bit | ( | const unsigned char * | line,
|  | int | single_length,
|  | unsigned char * | outbuf |
| ) |  |  |

void stp_fold_3bit_323 | ( | const unsigned char * | line,
|  | int | single_length,
|  | unsigned char * | outbuf |
| ) |  |  |

void stp_fold_4bit | ( | const unsigned char * | line,
|  | int | single_length,
|  | unsigned char * | outbuf |
| ) |  |  |

void stp_split_2 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | outhi,
|  | unsigned char * | outlo |
| ) |  |  |

void stp_split_4 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | out0,
|  | unsigned char * | out1,
|  | unsigned char * | out2,
|  | unsigned char * | out3 |
| ) |  |  |

void stp_unpack_16 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | out0,
|  | unsigned char * | out1,
|  | unsigned char * | out2,
|  | unsigned char * | out3,
|  | unsigned char * | out4,
|  | unsigned char * | out5,
|  | unsigned char * | out6,
|  | unsigned char * | out7,
|  | unsigned char * | out8,
|  | unsigned char * | out9,
|  | unsigned char * | out10,
|  | unsigned char * | out11,
|  | unsigned char * | out12,
|  | unsigned char * | out13,
|  | unsigned char * | out14,
|  | unsigned char * | out15 |
| ) |  |  |

void stp_unpack_2 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | outlo,
|  | unsigned char * | outhi |
| ) |  |  |

void stp_unpack_4 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | out0,
|  | unsigned char * | out1,
|  | unsigned char * | out2,
|  | unsigned char * | out3 |
| ) |  |  |

void stp_unpack_8 | ( | int | height,
|  | int | bits,
|  | const unsigned char * | in,
|  | unsigned char * | out0,
|  | unsigned char * | out1,
|  | unsigned char * | out2,
|  | unsigned char * | out3,
|  | unsigned char * | out4,
|  | unsigned char * | out5,
|  | unsigned char * | out6,
|  | unsigned char * | out7 |
| ) |  |  |