forked from marfrit/libva-v4l2-request-fourier
Rename request_buffer helper to query_buffer
Since the V4L2 ioctl is called QUERYBUF, it makes more sense to call the associated function with the same name. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ VAStatus RequestCreateContext(VADriverContextP context, VAConfigID config_id,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = v4l2_request_buffer(driver_data->video_fd,
|
rc = v4l2_query_buffer(driver_data->video_fd,
|
||||||
V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, i,
|
V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, i,
|
||||||
&length, &offset, 1);
|
&length, &offset, 1);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
|||||||
+1
-1
@@ -103,7 +103,7 @@ VAStatus RequestCreateSurfaces2(VADriverContextP context, unsigned int format,
|
|||||||
if (surface_object == NULL)
|
if (surface_object == NULL)
|
||||||
return VA_STATUS_ERROR_ALLOCATION_FAILED;
|
return VA_STATUS_ERROR_ALLOCATION_FAILED;
|
||||||
|
|
||||||
rc = v4l2_request_buffer(driver_data->video_fd,
|
rc = v4l2_query_buffer(driver_data->video_fd,
|
||||||
V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, i,
|
V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, i,
|
||||||
surface_object->destination_map_lengths,
|
surface_object->destination_map_lengths,
|
||||||
surface_object->destination_map_offsets,
|
surface_object->destination_map_offsets,
|
||||||
|
|||||||
+1
-1
@@ -153,7 +153,7 @@ int v4l2_create_buffers(int video_fd, unsigned int type,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int v4l2_request_buffer(int video_fd, unsigned int type, unsigned int index,
|
int v4l2_query_buffer(int video_fd, unsigned int type, unsigned int index,
|
||||||
unsigned int *lengths, unsigned int *offsets,
|
unsigned int *lengths, unsigned int *offsets,
|
||||||
unsigned int buffers_count)
|
unsigned int buffers_count)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ int v4l2_get_format(int video_fd, unsigned int type, unsigned int *width,
|
|||||||
unsigned int *sizes, unsigned int *planes_count);
|
unsigned int *sizes, unsigned int *planes_count);
|
||||||
int v4l2_create_buffers(int video_fd, unsigned int type,
|
int v4l2_create_buffers(int video_fd, unsigned int type,
|
||||||
unsigned int buffers_count);
|
unsigned int buffers_count);
|
||||||
int v4l2_request_buffer(int video_fd, unsigned int type, unsigned int index,
|
int v4l2_query_buffer(int video_fd, unsigned int type, unsigned int index,
|
||||||
unsigned int *lengths, unsigned int *offsets,
|
unsigned int *lengths, unsigned int *offsets,
|
||||||
unsigned int buffers_count);
|
unsigned int buffers_count);
|
||||||
int v4l2_queue_buffer(int video_fd, int request_fd, unsigned int type,
|
int v4l2_queue_buffer(int video_fd, int request_fd, unsigned int type,
|
||||||
|
|||||||
Reference in New Issue
Block a user