sim/video: rename dq_buf to dqbuf

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2022-12-20 12:21:52 +08:00 committed by Xiang Xiao
parent 8e6185f4ad
commit a897fe3005
3 changed files with 7 additions and 7 deletions

View File

@ -115,8 +115,8 @@ struct host_video_dev_s *host_video_init(const char *host_video_dev_path)
return vdev; return vdev;
} }
int host_video_dq_buf(struct host_video_dev_s *vdev, uint8_t *addr, int host_video_dqbuf(struct host_video_dev_s *vdev, uint8_t *addr,
uint32_t size) uint32_t size)
{ {
struct v4l2_buffer buf; struct v4l2_buffer buf;

View File

@ -43,8 +43,8 @@ struct host_video_dev_s *host_video_init(const char *host_video_dev_path);
int host_video_uninit(struct host_video_dev_s *vdev); int host_video_uninit(struct host_video_dev_s *vdev);
int host_video_start_capture(struct host_video_dev_s *vdev); int host_video_start_capture(struct host_video_dev_s *vdev);
int host_video_stop_capture(struct host_video_dev_s *vdev); int host_video_stop_capture(struct host_video_dev_s *vdev);
int host_video_dq_buf(struct host_video_dev_s *vdev, uint8_t *addr, int host_video_dqbuf(struct host_video_dev_s *vdev, uint8_t *addr,
uint32_t size); uint32_t size);
int host_video_set_fmt(struct host_video_dev_s *vdev, int host_video_set_fmt(struct host_video_dev_s *vdev,
uint16_t width, uint16_t height, uint32_t fmt, uint16_t width, uint16_t height, uint32_t fmt,
uint32_t denom, uint32_t numer); uint32_t denom, uint32_t numer);

View File

@ -307,9 +307,9 @@ void sim_video_loop(void)
if (g_sim_video_priv.next_buf) if (g_sim_video_priv.next_buf)
{ {
ret = host_video_dq_buf(g_sim_video_priv.vdev, ret = host_video_dqbuf(g_sim_video_priv.vdev,
g_sim_video_priv.next_buf, g_sim_video_priv.next_buf,
g_sim_video_priv.buf_size); g_sim_video_priv.buf_size);
if (ret > 0) if (ret > 0)
{ {
g_sim_video_priv.capture_cb(0, ret); g_sim_video_priv.capture_cb(0, ret);