Searched refs:queue_w (Results 1 – 1 of 1) sorted by relevance
36 static int queue_w = 0; variable45 void bitstream_queue_record_write(void) { queue_prev_w = queue_w; } in bitstream_queue_record_write()47 void bitstream_queue_reset_write(void) { queue_w = queue_prev_w; } in bitstream_queue_reset_write()49 int bitstream_queue_get_write(void) { return queue_w; } in bitstream_queue_get_write()55 if (queue_w == queue_r) { in bitstream_queue_pop()56 printf("buffer underflow queue_w %d queue_r %d\n", queue_w, queue_r); in bitstream_queue_pop()68 result_queue[queue_w] = result; in bitstream_queue_push()69 nsymbs_queue[queue_w] = nsymbs; in bitstream_queue_push()70 memcpy(cdf_queue[queue_w], cdf, nsymbs * sizeof(*cdf)); in bitstream_queue_push()71 queue_w = (queue_w + 1) % QUEUE_MAX_SIZE; in bitstream_queue_push()[all …]