yinshengkai
85f727f232
tools: replace INCDIR to Makefile variable
...
In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables
In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-03 19:59:55 +08:00
Xiang Xiao
a98949d0f6
Fix video/video.c:1458:52: error: implicit conversion from enumeration type 'enum v4l2_buf_type' to different enumeration type 'imgsensor_stream_type_t' (aka 'enum imgsensor_stream_type_e') [-Werror,-Wenum-conversion]
...
ret = g_video_sensor_ops->validate_frame_setting(type, nr_fmt, sf, &si);
~~~~~~~~~~~~~~~~~~ ^~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-31 13:10:09 +01:00
Xiang Xiao
09da04d7d2
Fix video/video.c:1458:52: error: implicit conversion from enumeration type 'enum v4l2_buf_type' to different enumeration type 'imgsensor_stream_type_t' (aka 'enum imgsensor_stream_type_e') [-Werror,-Wenum-conversion]
...
ret = g_video_sensor_ops->validate_frame_setting(type, nr_fmt, sf, &si);
~~~~~~~~~~~~~~~~~~ ^~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 16:03:35 +01:00
anjiahao
d7b4e91dda
Call nxsem_destroy or nxmutex_destry in the error path
...
1.Don't check the return value of nxsem_init or nxmutex_init
2.Fix some style issue
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 13:56:52 +01:00
SPRESENSE
6eb0ef618d
drivers/video/isx019: Use clock function instead of gettimeofday
...
Change to use clock_systime_timespec() to avoid using libc API
from the driver layer.
2022-10-26 03:57:26 +08:00
SPRESENSE
8a0ce3f000
drivers/video/isx019: Fix incorrect JPEG DQT table
2022-10-26 03:57:26 +08:00
SPRESENSE
5e4e8f6809
drivers/video/isx019: Fix white balance control and capability
2022-10-26 03:57:26 +08:00
SPRESENSE
d57324473e
drivers/video/isx019: Increase waiting time for HW initialization
2022-10-26 03:57:26 +08:00
SPRESENSE
254139bcec
drivers/video/isx012: Add missing FAR qualifier
2022-10-26 03:57:26 +08:00
SPRESENSE
e48f8be8c5
drivers/video/isx012: Support clip feature
2022-10-26 03:57:26 +08:00
SPRESENSE
277c8e368b
drivers/video: Update API to dump register for debug
2022-10-26 03:57:26 +08:00
SPRESENSE
1332bdb9a7
drivers/video: Add get frame interval API
2022-10-26 03:57:26 +08:00
anjiahao
5724c6b2e4
sem:remove sem default protocl
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
Xiang Xiao
6b31918b42
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 08:51:45 +02:00
Xiang Xiao
dca5a3483f
drivers: Destroy mutex and sem in the error path
...
also correct the order to ensure the memory free is last step
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
Xiang Xiao
40ef5bc6db
libc: Move queue.h from include to include/nuttx
...
to avoid the conflict with libuv's queue.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-26 08:04:58 +02:00
Huang Qi
e4e3208180
Replace all strncpy with strlcpy for safety
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-25 13:38:36 +08:00
Huang Qi
70c0672598
vncserver: Support keyboard driver
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-12 10:05:15 -03:00
Huang Qi
e23bcb0e81
vncserver: Correct rfb_keyevent_s definition
...
Refer to https://datatracker.ietf.org/doc/html/rfc6143 ,
size of key is 4 byte.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-11 14:11:43 +08:00
Huang Qi
4945c49c61
vncserver: Support pointer driver
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-08 13:28:34 +08:00
Nathan Hartman
849f760b77
Fix various typos
2022-07-08 02:15:54 +08:00
Alin Jerpelea
72f399e052
drivers: video: add isx019 camera sensor
...
The driver is provided by Spresense SDK
ISX019 has the DOL-HDR feature, which combines images with different exposure so that
both bright and dark data of high-contrast subject can be viewed at the same time.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-05-31 19:52:33 +08:00
SPRESENSE
247ad41bb2
drivers/video/isx012: Fix getting the iso sensitivity
...
Fix bug to get the value of iso sensitivity.
2022-05-30 20:38:47 +03:00
SPRESENSE
acde5fed49
drivers/video/isx012: Fix getting the value of auto exposure
...
Fix bug to get the current setting value at AE auto mode.
2022-05-30 20:38:47 +03:00
SPRESENSE
1613ded060
drivers/video/isx012: Add exclusive controls for I2C access
...
Add exclusive control to prevent from I2C write(for sending requst) and
I2C read(for receiving response).
2022-05-30 20:38:47 +03:00
SPRESENSE
bea6d3a7ef
drivers/video: Fix bug that is_available() is false
...
is_available() may be false because chip id register does not
have unique value.
So, judge availability not by chip id but by i2c accessibility.
2022-05-30 20:38:47 +03:00
SPRESENSE
b296494fb8
drivers/video: Avoid additional overflow cases
...
Add clip size validation to avoid additional overflow.
2022-05-30 20:38:47 +03:00
SPRESENSE
1212d3b7d8
drivers/video: Fix multiplication overflow
...
Add cast to uint32_t type to avoid multiplication overflow.
2022-05-30 20:38:47 +03:00
SPRESENSE
c0ea6c5b49
drivers/video: Fix thumbnail size bug
...
Fix copy size to set thumbnail component, when thumbnail format is used
without clipping.
2022-05-30 20:38:47 +03:00
SPRESENSE
9c57850466
drivers/video: Support clip
...
Support clip by ioctl(VIDIOC_S_SELECTION) and ioctl(VIDIOC_G_SELECTION).
2022-05-30 20:38:47 +03:00
SPRESENSE
b45489753a
drivers/video: Enable to select connected image sensor driver at runtime
...
Enable to select connected image sensor driver at runtime by adding is_available()
to image sensor I/F.
2022-05-30 20:38:47 +03:00
SPRESENSE
a25ac08774
boards: cxd56xx: Change pin initialization timing for camera
...
Change pin initialization timing for camera from board power on to camera device
power on for the following purposes.
- avoid unnecessary power consumption
- Make the corresponding pins available for other uses when camera is not in use
2022-05-30 20:38:47 +03:00
SPRESENSE
229c7d30b6
drivers/video: Support ioctl(VIDIOC_QUERYCAP)
...
Support ioctl(VIDIOC_QUERYCAP) to get driver's name.
2022-05-30 20:38:47 +03:00
Petro Karashchenko
09b3fb25ab
drivers: remove unimplemented open/close/ioctl interfaces
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-15 16:56:25 +08:00
Petro Karashchenko
d08fbca679
nuttx: unify FAR attribute usage across the code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-04 21:32:58 +08:00
Petro Karashchenko
98ba65c422
c89: get rid of designated initializers in common code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 13:39:27 +08:00
Petro Karashchenko
68902d8732
pid_t: unify usage of special task IDs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-22 21:22:32 +08:00
Huang Qi
1699f530a5
vncserver: Allow fb operation while no connection
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-23 23:18:30 +08:00
Xiang Xiao
1d1bdd85a3
Remove the double blank line from source files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 20:10:14 +01:00
Huang Qi
ccc708a142
vncserver: Fix dead lock on re-connect
...
`vnc_remove_queue` would waiting for new frame update request forever
even if the connection is lost, the updater thread wouldn't exit.
But the server thread will join updater thread before accept new client
connection, then we can't re-conncet to vnc server.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-16 22:57:21 +08:00
Petro Karashchenko
9551de7115
net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-18 10:59:47 +01:00
Petro Karashchenko
8d3bf05fd2
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
Xiang Xiao
40b1f0bee8
libc: Add include/nuttx/input/x11_keysym.h
...
to enable more key group inside x11_keysym.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-11 15:01:13 +08:00
Petro Karashchenko
a743fed63d
file_operations: get back C89 compatible initializer
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-11 02:14:00 +08:00
Xiang Xiao
4e595a3fde
Fix video/vnc/vnc_negotiate.c:396:3: error: ‘ret’ undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
Xiang Xiao
3e85d81686
grahpics: Move VNC server to drivers/video
...
and remove the empty VNC client
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
Petro Karashchenko
51a2db6ffc
Kconfig: improve uniformity
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-14 07:32:48 -06:00
liushuai25
6c374fc06c
feat: driver: support double buffer for display
...
add pan display for fb driver.
reference links:
https://github.com/torvalds/linux/blob/master/drivers/video/fbdev/core/fbmem.c
https://github.com/torvalds/linux/blob/master/drivers/video/fbdev/goldfishfb.c
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
Update include/nuttx/video/fb.h
Co-authored-by: Gustavo Henrique Nihei <38959758+gustavonihei@users.noreply.github.com>
Update include/nuttx/video/fb.h
Co-authored-by: Gustavo Henrique Nihei <38959758+gustavonihei@users.noreply.github.com>
2021-09-30 09:07:48 -03:00
Alin Jerpelea
48f92e6f1d
author: Bill Gatliff : update licenses to Apache
...
Gregory Nutt has submitted the SGA
Bill Gatliff has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-16 21:56:08 -05:00