Skip to content

Commit 8cd9e9a

Browse files
JianyuWang0623simbit18
authored andcommitted
examples/camera: fix spelling errors
Fix typos found by codespell: - camera_bkgd.c: defaul -> default - camera_main.c: memorys -> memories (2 occurrences) - camera_main.c: freame -> frame - camera_main.c: valiable -> variable Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
1 parent 1005607 commit 8cd9e9a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/camera/camera_bkgd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ int nximage_initialize(void)
249249
}
250250

251251
/* Start a separate thread to listen for server events.
252-
* For simplicity, use defaul thread attribute.
252+
* For simplicity, use default thread attribute.
253253
*/
254254

255255
ret = pthread_create(&thread, NULL, nximage_listener, NULL);

examples/camera/camera_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ int main(int argc, FAR char *argv[])
534534
* Set FULLHD size in ISX012 case, QUADVGA size in ISX019 case or other
535535
* image sensors,
536536
* Number of frame buffers is defined as STILL_BUFNUM(1).
537-
* And all allocated memorys are VIDIOC_QBUFed.
537+
* And all allocated memories are VIDIOC_QBUFed.
538538
*/
539539

540540
if (capture_num != 0 && capture_type == V4L2_BUF_TYPE_STILL_CAPTURE)
@@ -580,9 +580,9 @@ int main(int argc, FAR char *argv[])
580580
* order from the captured frame buffer and a new camera image is
581581
* recaptured.
582582
*
583-
* Allocate freame buffers for QVGA RGB565 size (320x240x2=150KB).
583+
* Allocate frame buffers for QVGA RGB565 size (320x240x2=150KB).
584584
* Number of frame buffers is defined as VIDEO_BUFNUM(3).
585-
* And all allocated memorys are VIDIOC_QBUFed.
585+
* And all allocated memories are VIDIOC_QBUFed.
586586
*/
587587

588588
ret = camera_prepare(v_fd, V4L2_BUF_TYPE_VIDEO_CAPTURE,
@@ -603,7 +603,7 @@ int main(int argc, FAR char *argv[])
603603
*
604604
* APP_STATE_UNDER_CAPTURE:
605605
* This state will start taking picture and store the image into files.
606-
* Number of taking pictures is set capture_num valiable.
606+
* Number of taking pictures is set capture_num variable.
607607
* It can be changed by command line argument.
608608
* After finishing taking pictures, the state will be changed to
609609
* APP_STATE_AFTER_CAPTURE.

0 commit comments

Comments
 (0)