Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nxcamera: Solve compilation errors caused by type mismatch #1948

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/nxcamera/nxcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
static int show_image(FAR struct nxcamera_s *pcam, FAR v4l2_buffer_t *buf)
{
#ifdef CONFIG_LIBYUV
return convert_frame(pcam->bufs[buf->index],

Check failure on line 72 in system/nxcamera/nxcamera.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
pcam->buf_sizes[buf->index],
pcam->display_pinfo.fbmem,
pcam->display_pinfo.stride,
Expand All @@ -82,11 +82,11 @@
0,
pcam->fmt.fmt.pix.pixelformat);
#else
uint32_t *pbuf = pcam->bufs[buf->index];
FAR uint32_t *pbuf = (FAR uint32_t *)pcam->bufs[buf->index];
vinfo("show image from %p: %" PRIx32 " %" PRIx32, pbuf, pbuf[0], pbuf[1]);
return 0;
#endif
}

Check failure on line 89 in system/nxcamera/nxcamera.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

/****************************************************************************
* Name: nxcamera_opendevice
Expand All @@ -112,7 +112,7 @@
errcode = errno;
DEBUGASSERT(errcode > 0);

verr("ERROR: Failed to open pcam->capturedev %d\n", -errcode);

Check failure on line 115 in system/nxcamera/nxcamera.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
return -errcode;
}

Expand All @@ -135,7 +135,7 @@

if (errcode == OK)
{
pcam->display_pinfo.fbmem = mmap(NULL,

Check failure on line 138 in system/nxcamera/nxcamera.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
pcam->display_pinfo.fblen,
PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_FILE,
Expand Down
Loading