Searched refs:vbuf (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-2.7.6/drivers/video/ |
D | video_common.c | 24 struct video_buffer *vbuf = NULL; in video_buffer_alloc() local 31 vbuf = &video_buf[i]; in video_buffer_alloc() 37 if (vbuf == NULL) { in video_buffer_alloc() 47 vbuf->buffer = block->data; in video_buffer_alloc() 48 vbuf->size = size; in video_buffer_alloc() 49 vbuf->bytesused = 0; in video_buffer_alloc() 51 return vbuf; in video_buffer_alloc() 54 void video_buffer_release(struct video_buffer *vbuf) in video_buffer_release() argument 61 if (video_block[i].data == vbuf->buffer) { in video_buffer_release() 67 vbuf->buffer = NULL; in video_buffer_release()
|
D | video_sw_generator.c | 77 struct video_buffer *vbuf) in __fill_buffer_colorbar() argument 86 uint16_t *pixel = (uint16_t *)&vbuf->buffer[i]; in __fill_buffer_colorbar() 93 vbuf->timestamp = k_uptime_get_32(); in __fill_buffer_colorbar() 94 vbuf->bytesused = i; in __fill_buffer_colorbar() 101 struct video_buffer *vbuf; in __buffer_work() local 107 vbuf = k_fifo_get(&data->fifo_in, K_NO_WAIT); in __buffer_work() 108 if (vbuf == NULL) { in __buffer_work() 114 __fill_buffer_colorbar(data, vbuf); in __buffer_work() 118 k_fifo_put(&data->fifo_out, vbuf); in __buffer_work() 129 struct video_buffer *vbuf) in video_sw_generator_enqueue() argument [all …]
|
D | video_mcux_csi.c | 57 struct video_buffer *vbuf, *vbuf_first = NULL; in __frame_done_cb() local 74 while ((vbuf = k_fifo_get(&data->fifo_in, K_NO_WAIT))) { in __frame_done_cb() 75 if ((uint32_t)vbuf->buffer == buffer_addr) { in __frame_done_cb() 83 k_fifo_put(&data->fifo_in, vbuf); in __frame_done_cb() 87 vbuf_first = vbuf; in __frame_done_cb() 88 } else if (vbuf_first == vbuf) { in __frame_done_cb() 89 vbuf = NULL; in __frame_done_cb() 94 if (vbuf == NULL) { in __frame_done_cb() 99 vbuf->timestamp = k_uptime_get_32(); in __frame_done_cb() 102 DCACHE_InvalidateByRange(buffer_addr, vbuf->bytesused); in __frame_done_cb() [all …]
|
/Zephyr-Core-2.7.6/samples/subsys/video/tcpserversink/src/ |
D | main.c | 46 struct video_buffer *buffers[2], *vbuf; in main() local 133 ret = video_dequeue(video, VIDEO_EP_OUT, &vbuf, in main() 143 ret = sendall(client, vbuf->buffer, vbuf->bytesused); in main() 150 (void)video_enqueue(video, VIDEO_EP_OUT, vbuf); in main() 162 &vbuf, K_NO_WAIT); in main()
|
/Zephyr-Core-2.7.6/samples/subsys/video/capture/src/ |
D | main.c | 24 struct video_buffer *buffers[2], *vbuf; in main() local 113 err = video_dequeue(video, VIDEO_EP_OUT, &vbuf, K_FOREVER); in main() 120 frame++, vbuf->bytesused, vbuf->timestamp); in main() 122 err = video_enqueue(video, VIDEO_EP_OUT, vbuf); in main()
|