amstream: add dec crc interface in amstream. [1/3]
authorshihong.zheng <shihong.zheng@amlogic.com>
Sun, 4 Aug 2019 06:54:05 +0000 (14:54 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Sat, 10 Aug 2019 09:27:00 +0000 (02:27 -0700)
PD#OPS-679

Problem:
add decoder slt test code.

Solution:
add crc check interlace in amstream.

Verify:
x301

Change-Id: Ie7c82140bc4e1fa4c470d0e133a12afee14d9ca8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
include/linux/amlogic/media/utils/amstream.h

index faf1328..4e17d2f 100644 (file)
 #define AMSTREAM_IOC_GET_AVINFO _IOR((_A_M), 0xc7, struct av_param_info_t)
 #define AMSTREAM_IOC_GET_QOSINFO _IOR((_A_M), 0xc8, struct av_param_qosinfo_t)
 
+#define AMSTREAM_IOC_SET_CRC _IOW((_A_M), 0xc9, struct usr_crc_info_t)
+#define AMSTREAM_IOC_GET_CRC_CMP_RESULT _IOWR((_A_M), 0xca, int)
+
 
 #define TRICKMODE_NONE       0x00
 #define TRICKMODE_I          0x01
@@ -518,7 +521,12 @@ struct userdata_param_t {
        struct userdata_meta_info_t meta_info; /*output*/
 };
 
-
+struct usr_crc_info_t {
+       u32 id;
+       u32 pic_num;
+       u32 y_crc;
+       u32 uv_crc;
+};
 
 /*******************************************************************
 * 0x100~~0x1FF : set cmd