-
Notifications
You must be signed in to change notification settings - Fork 24
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
Transmission of the actual image size #61
base: celadon/u/mr0/master
Are you sure you want to change the base?
Transmission of the actual image size #61
Conversation
Improper Commit Message |
02e45cb
to
1bd9cba
Compare
Formats such as MJPEG, the data size does not necessarily match thei frame size. This patch enhances the capability to transmit the actual size. Tracked-On: OAM-126506 Signed-off-by: Chenli Wei <[email protected]>
@@ -157,6 +157,7 @@ static void virtio_camera_control_ack(struct virtqueue *vq) | |||
vbuf->sequence = req->resp.u.buffer.sequence; | |||
vbuf->vb2_buf.timestamp = req->resp.u.buffer.timestamp; | |||
vbuf->planes[0].bytesused = req->resp.u.format.size.sizeimage; | |||
req->vb->planes[0].bytesused = req->resp.u.format.size.sizeimage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think line159 is enough to provide the bytesused for userspace.
Do you verify the android image released in this week or last week. It should work.
buffer info in this struct can be seen from userspace.
struct vb2_v4l2_buffer {
struct vb2_buffer vb2_buf;
__u32 flags;
__u32 field;
struct v4l2_timecode timecode;
__u32 sequence;
__s32 request_fd;
bool is_held;
struct vb2_plane planes[VB2_MAX_PLANES];
__u32 reserved;
ANDROID_KABI_RESERVE(1);
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have sync with Chenli, he will double confirm whether the update is needed.
So, update the PR into draft firstly.
Formats such as MJPEG, the data size does not necessarily match thei frame size.
This patch enhances the capability to transmit the actual size.
Tracked-On: OAM-126506