author | shihong.zheng <shihong.zheng@amlogic.com> | 2019-08-04 06:54:05 (GMT) |
---|---|---|
committer | Tao Zeng <tao.zeng@amlogic.com> | 2019-08-10 09:27:00 (GMT) |
commit | 64086b4569586f78da8e9a1b4356ceec65346055 (patch) | |
tree | 1f0f16b4b276bf4b7a3a12bd1479fa01b64dffee | |
parent | e88f1834f6d88e13787fd1c7078fc07eb9572a6a (diff) | |
download | common-64086b4569586f78da8e9a1b4356ceec65346055.zip common-64086b4569586f78da8e9a1b4356ceec65346055.tar.gz common-64086b4569586f78da8e9a1b4356ceec65346055.tar.bz2 |
amstream: add dec crc interface in amstream. [1/3]
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>
-rw-r--r-- | include/linux/amlogic/media/utils/amstream.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/amlogic/media/utils/amstream.h b/include/linux/amlogic/media/utils/amstream.h index faf1328..4e17d2f 100644 --- a/include/linux/amlogic/media/utils/amstream.h +++ b/include/linux/amlogic/media/utils/amstream.h @@ -225,6 +225,9 @@ #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 |