Amlogic Linux系列(四) 视频解码分析2

本文详细讲述了作者如何将Khadas Ubuntu系统移植到Amlogic S912开发板,并针对硬解码驱动进行验证和调试,揭示了VDEC实例管理和帧率变化的踪迹。

打算学习一下Amlogic Linux系统,目前已知的amlogic Linux系统包括

1.官方的buildroot(没有技术资料,只支持A311D/S905D3)

2.khadas ubuntu (开源,只对vim系列开发板技术支持):

KVM1-S905X

KVM2-S912

KVM3-A311D

手上有一块amlogic S912的盒子一直没用,buildroot是没法用了,准备将KVM2的ubuntu系统移植到这块板子上,并移植后相关驱动,并做后续的功能测试

这块板子的基本配置:

S912+LPDDR3+32G带RTC数码管
一、概述

上一章测试了khadas 自带的mpv播放器直接播视频是没有走硬解的,播放视频卡顿。为此研究和对比khadas 的代码,发现khadas是加入了amlogic硬解的,但是应该是上层没法调用。

为了确认这一点,使用了相关测试程序,来验证硬解码驱动。经确认是可以的。

相关打印:

[  350.125624] DI: unreg f
[  350.127619] pts hit 0, pts missed 0, i hit 0, missed 0
[  350.127638] total frame 0, avi_flag 0, rate 3840
[  350.127887] vdec_release instance ffffff800ea2b000, total 1
[  350.128910] the clk_hevc_mux    clock off, ref cnt: -7
[  350.128959] the clk_vdec_mux    clock off, ref cnt: 0
[  350.128979] the vdec            clock off, ref cnt: 0
[  350.128998] the parser_top      clock off, ref cnt: 0
[  350.129015] the demux           clock off, ref cnt: 0
[  350.129407] fb: osd[0] enable: 1 (ttyx)
[  356.096944] fb: osd[0] enable: 0 (ttyx)
[  356.107191] video_global_output_store(1)
[  356.117039] the demux           clock on, ref cnt: 1
[  356.117065] the parser_top      clock on, ref cnt: 1
[  356.117083] the vdec            clock on, ref cnt: 1
[  356.117123] the clk_vdec_mux    clock on, ref cnt: 1
[  356.117149] vdec mux clock is 500000000 Hz
[  356.117265] vdec_create instance ffffff800ea64000, total 1
[  356.117414] no drmmode
[  356.117473] The fw has been loaded.
[  356.121055] Video stbuf alloced at 00000000a3000000, secure = 0, size = 10485760
[  356.121118] vdec_init, dev_name:amvdec_vc1, vdec_type=VDEC_TYPE_SINGLE
[  356.121133] vdec_init set vfm decoder ffffff800ea64000
[  356.126917] vvc1_init, format 11
[  356.126949] decoder_bmmu_box_alloc_box, tvp_flags = 0
[  356.126964] WVC1 dec format
[  356.126984] [LOCAL], the fw (vc1) will be loaded.
[  356.129716] vdec_request_irq ffffff80026340c0, vvc1-irq
[  356.130883] di_receiver_event_
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值