mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-22 15:40:06 +00:00
Fix pointer
This commit is contained in:
parent
ee832e4e37
commit
3499aa2b21
@ -110,7 +110,7 @@ static unsigned tx_busy = 0;
|
|||||||
static unsigned interval_ms = 1000 / FRAME_RATE;
|
static unsigned interval_ms = 1000 / FRAME_RATE;
|
||||||
|
|
||||||
/* YUY2 frame buffer */
|
/* YUY2 frame buffer */
|
||||||
#if 1
|
#ifdef CFG_EXAMPLE_VIDEO_READONLY
|
||||||
#include "images.h"
|
#include "images.h"
|
||||||
static struct {
|
static struct {
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
@ -181,7 +181,7 @@ void video_task(void)
|
|||||||
already_sent = 1;
|
already_sent = 1;
|
||||||
start_ms = board_millis();
|
start_ms = board_millis();
|
||||||
#ifdef CFG_EXAMPLE_VIDEO_READONLY
|
#ifdef CFG_EXAMPLE_VIDEO_READONLY
|
||||||
tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t)&frames[frame_num % 8].buffer, frames[frame_num % 8].size);
|
tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t)frames[frame_num % 8].buffer, frames[frame_num % 8].size);
|
||||||
#else
|
#else
|
||||||
fill_color_bar(frame_buffer, frame_num);
|
fill_color_bar(frame_buffer, frame_num);
|
||||||
tud_video_n_frame_xfer(0, 0, (void*)frame_buffer, FRAME_WIDTH * FRAME_HEIGHT * 16/8);
|
tud_video_n_frame_xfer(0, 0, (void*)frame_buffer, FRAME_WIDTH * FRAME_HEIGHT * 16/8);
|
||||||
@ -194,7 +194,7 @@ void video_task(void)
|
|||||||
start_ms += interval_ms;
|
start_ms += interval_ms;
|
||||||
|
|
||||||
#ifdef CFG_EXAMPLE_VIDEO_READONLY
|
#ifdef CFG_EXAMPLE_VIDEO_READONLY
|
||||||
tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t)&frames[frame_num % 8].buffer, frames[frame_num % 8].size);
|
tud_video_n_frame_xfer(0, 0, (void*)(uintptr_t)frames[frame_num % 8].buffer, frames[frame_num % 8].size);
|
||||||
#else
|
#else
|
||||||
fill_color_bar(frame_buffer, frame_num);
|
fill_color_bar(frame_buffer, frame_num);
|
||||||
tud_video_n_frame_xfer(0, 0, (void*)frame_buffer, FRAME_WIDTH * FRAME_HEIGHT * 16/8);
|
tud_video_n_frame_xfer(0, 0, (void*)frame_buffer, FRAME_WIDTH * FRAME_HEIGHT * 16/8);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user