Lines Matching defs:packet

305     /* The general approach for all densities and packet sizes
307 * - use packing_density to decode the full packet into separate values
317 /* Get next packet data & store in buffer */
325 /* Get next packet data & store in buffer */
331 uint8_t *packet = (uint8_t *)alloca(buffer->packet_size_bytes * sizeof(uint8_t));
336 /* Get next packet data */
337 for (k = 0; k < buffer->packet_size_bytes; k++) packet[k] = *p_packet++;
338 /* Unpack packing_density samples from packet. Of course,
339 * buffer->depth * packing_density <= # bits in packet.
343 val = (packet[0] & mask) >> (8-buffer->depth);
344 /* Now shift packet bytes depth bits left */
347 packet[m] <<= buffer->depth;
350 packet[m] |= (packet[m+1] >> (8-buffer->depth));
394 /* The general approach for all densities and packet sizes
396 * - use packing_density to decode the full packet into separate values
406 /* Get next packet data & store in buffer */
416 /* Get next packet data & store in buffer */
424 uint8_t *packet = (uint8_t *)alloca(buffer->packet_size_bytes * sizeof(uint8_t));
430 /* Get next packet data */
433 packet[k] = *p_packet++;
434 /* DBG(DBG_info,"buffer_put_full_color_line(): packet[%d] = %02x\n",k,packet[k]); */
436 /* Unpack packing_density samples from packet. Of course,
437 * buffer->depth * packing_density <= # bits in packet.
441 val = (packet[0] & mask) >> (8-buffer->depth);
443 /* Now shift packet bytes depth bits left */
446 packet[m] <<= buffer->depth;
447 /* DBG(DBG_info,"buffer_put_full_color_line(): shift packet[%d] = %02x\n",m,packet[m]); */
450 packet[m] |= (packet[m+1] >> (8-buffer->depth));
451 /* DBG(DBG_info,"buffer_put_full_color_line(): shift packet[%d] = %02x\n",m,packet[m]); */