video: omx get first frame toggoled flag [1/2]
authorshuanglong.wang <shuanglong.wang@amlogic.com>
Thu, 10 Jan 2019 13:12:12 +0000 (21:12 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 16 Jan 2019 02:09:53 +0000 (18:09 -0800)
PD#SWPL-4048

Problem:
omx can not detect first frame have toggled

Solution:
omx get first frame toggoled flag

Verify:
verify by p212

Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
drivers/amlogic/media/video_sink/video.c
include/linux/amlogic/media/utils/amstream.h

index b0d19ea..28bf8cf 100644 (file)
@@ -7856,6 +7856,9 @@ static long amvideo_ioctl(struct file *file, unsigned int cmd, ulong arg)
                        put_user(video_onoff_state, (u32 __user *)argp);
                        break;
                }
+       case AMSTREAM_IOC_GET_FIRST_FRAME_TOGGLED:
+               put_user(first_frame_toggled, (u32 __user *)argp);
+               break;
 
        case AMSTREAM_IOC_SET_VIDEOPEEK:
                videopeek = true;
index d4e9976..5b44f40 100644 (file)
 #define AMSTREAM_IOC_GET_OMX_VERSION _IOW((_A_M), 0xb1, int)
 #define AMSTREAM_IOC_GET_OMX_INFO    _IOR((_A_M), 0xb2, unsigned int)
 #define AMSTREAM_IOC_SET_HDR_INFO    _IOW((_A_M), 0xb3, int)
+#define AMSTREAM_IOC_GET_FIRST_FRAME_TOGGLED _IOR(_A_M, 0xbe, unsigned int)
 #define AMSTREAM_IOC_SET_VIDEOPEEK   _IOW(_A_M, 0xbf, unsigned int)
 
 #define AMSTREAM_IOC_GET_TRICK_VPTS _IOR((_A_M), 0xf0, int)