mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
amlvideo: set omx output buffer size to compWidth*compHeight
PD#150218: amlvideo: set omx output buffer size to compWidth*compHeight Change-Id: I69ff2e5defb8344cd4aec05582f4696faa0abe7f Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
This commit is contained in:
@@ -538,8 +538,14 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p)
|
||||
p->timestamp.tv_sec = pts_us64 >> 32;
|
||||
p->timestamp.tv_usec = pts_us64 & 0xFFFFFFFF;
|
||||
dev->last_pts_us64 = pts_us64;
|
||||
p->timecode.type = dev->vf->width;
|
||||
p->timecode.flags = dev->vf->height;
|
||||
|
||||
if ((dev->vf->type & VIDTYPE_COMPRESS) != 0) {
|
||||
p->timecode.type = dev->vf->compWidth;
|
||||
p->timecode.flags = dev->vf->compHeight;
|
||||
} else {
|
||||
p->timecode.type = dev->vf->width;
|
||||
p->timecode.flags = dev->vf->height;
|
||||
}
|
||||
|
||||
vf_notify_receiver(
|
||||
dev->vf_provider_name,
|
||||
|
||||
Reference in New Issue
Block a user