“Debian Desktop 系统使用”的版本间的差异

来自ARM Wiki
跳转至: 导航搜索
(创建空白页面)
 
第1行: 第1行:
 +
==基础信息==
 +
*用户密码
 +
<syntaxhighlight lang="bash">
 +
user: linaro
 +
passwd: linaro
 +
</syntaxhighlight>
 +
==使用示例==
 +
===视频硬件编解码===
 +
*使用Qt的multimedia播放视频
 +
<syntaxhighlight lang="bash">
 +
$ sudo test_dec-qt.sh arm64
 +
</syntaxhighlight>
 +
[[文件:Screenshot_from_2020-07-22_14-42-03.png|frameless|650px]]<br />
 +
<br />
 +
*使用gstreamer播放视频
 +
<syntaxhighlight lang="bash">
 +
$ sudo test_dec-gst.sh
 +
</syntaxhighlight>
 +
[[文件:Screenshot_from_2020-07-22_14-45-33.png|frameless|650px]]<br />
 +
<br />
 +
*播放4K视频
 +
<syntaxhighlight lang="bash">
 +
$ gst-launch-1.0 playbin uri=file:///home/linaro/4k.mp4
 +
</syntaxhighlight>
 +
[[文件:Screenshot_from_2020-07-22_14-51-55.png|frameless|650px]]<br />
 +
<br />
 +
*列出一些gstreamer命令
 +
<syntaxhighlight lang="bash">
 +
$ gst-launch-1.0 playbin uri=file:///usr/local/test.mp4
 +
$ gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! xvimagesink
 +
$ gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! rkximagesink
 +
$ gst-launch-1.0 filesrc location=/usr/local/test.mp4 ! queue ! qtdemux  name=dmux dmux.video_0 ! queue ! h264parse ! mppvideodec ! rkximagesink dmux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink
 +
$ gst-inspect-1.0 rkximagesink
 +
  # 查看插件信息
 +
$ gst-discoverer-1.0 /usr/local/test.mp4
 +
  # 查看视频信息
 +
</syntaxhighlight>
 +
===OpenGL-ES===
 +
*执行测试脚本
 +
<syntaxhighlight lang="bash">
 +
$ sudo test_glmark2_normal.sh
 +
</syntaxhighlight>
 +
[[文件:Screenshot_from_2020-07-22_09-07-38.png|frameless|650px]]<br />
 +
<br />
 +
[[文件:Screenshot_from_2020-07-22_09-12-58.png|frameless|650px]]<br />
 +
<br />
 +
===WebGL===
 +
*打开chromium浏览器,在地址栏输入 <code>chrome://gpu</code> 查看硬件加速相关信息
 +
[[文件:Screenshot_from_2020-07-22_10-31-26.png|frameless|650px]]<br />
 +
<br />
 +
*打开chromium浏览器,在地址栏输入 <code>https://ltsa.sheridancollege.ca/apps/vettech/test_webgl.html</code> 测试WebGL
 +
[[文件:Screenshot_from_2020-07-22_10-50-29.png|frameless|650px]]<br />
 +
<br />
 +
===OpenCL===
 +
*安装并运行<code>clinfo</code>,查看OpenCL相关信息
 +
<syntaxhighlight lang="bash">
 +
$ sudo apt-get install -f -y clinfo
 +
$ clinfo
 +
Number of platforms                              1
 +
  Platform Name                                  ARM Platform
 +
  Platform Vendor                                ARM
 +
  Platform Version                                OpenCL 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
 +
  Platform Profile                                FULL_PROFILE
 +
  Platform Extensions                            cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addy
 +
  Platform Extensions function suffix            ARM
  
 +
  Platform Name                                  ARM Platform
 +
Number of devices                                1
 +
  Device Name                                    Mali-T860
 +
  Device Vendor                                  ARM
 +
  Device Vendor ID                                0x8602000
 +
  Device Version                                  OpenCL 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
 +
  Driver Version                                  1.2
 +
  Device OpenCL C Version                        OpenCL C 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
 +
  Device Type                                    GPU
 +
  Device Profile                                  FULL_PROFILE
 +
  Max compute units                              4
 +
  Max clock frequency                            800MHz
 +
  Device Partition                                (core)
 +
    Max number of sub-devices                    0
 +
    Supported partition types                    None
 +
  Max work item dimensions                        3
 +
  Max work item sizes                            256x256x256
 +
  Max work group size                            256
 +
...
 +
</syntaxhighlight>

2020年7月22日 (三) 17:32的版本

基础信息

  • 用户密码
user: linaro
passwd: linaro

使用示例

视频硬件编解码

  • 使用Qt的multimedia播放视频
$ sudo test_dec-qt.sh arm64

Screenshot from 2020-07-22 14-42-03.png

  • 使用gstreamer播放视频
$ sudo test_dec-gst.sh

Screenshot from 2020-07-22 14-45-33.png

  • 播放4K视频
$ gst-launch-1.0 playbin uri=file:///home/linaro/4k.mp4

Screenshot from 2020-07-22 14-51-55.png

  • 列出一些gstreamer命令
$ gst-launch-1.0 playbin uri=file:///usr/local/test.mp4
$ gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! xvimagesink
$ gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! rkximagesink
$ gst-launch-1.0 filesrc location=/usr/local/test.mp4 ! queue ! qtdemux  name=dmux dmux.video_0 ! queue ! h264parse ! mppvideodec ! rkximagesink dmux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink
$ gst-inspect-1.0 rkximagesink
  # 查看插件信息
$ gst-discoverer-1.0 /usr/local/test.mp4
  # 查看视频信息

OpenGL-ES

  • 执行测试脚本
$ sudo test_glmark2_normal.sh

Screenshot from 2020-07-22 09-07-38.png

Screenshot from 2020-07-22 09-12-58.png

WebGL

  • 打开chromium浏览器,在地址栏输入 chrome://gpu 查看硬件加速相关信息

Screenshot from 2020-07-22 10-31-26.png

Screenshot from 2020-07-22 10-50-29.png

OpenCL

  • 安装并运行clinfo,查看OpenCL相关信息
$ sudo apt-get install -f -y clinfo
$ clinfo
Number of platforms                               1
  Platform Name                                   ARM Platform
  Platform Vendor                                 ARM
  Platform Version                                OpenCL 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addy
  Platform Extensions function suffix             ARM

  Platform Name                                   ARM Platform
Number of devices                                 1
  Device Name                                     Mali-T860
  Device Vendor                                   ARM
  Device Vendor ID                                0x8602000
  Device Version                                  OpenCL 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
  Driver Version                                  1.2
  Device OpenCL C Version                         OpenCL C 1.2 v1.r14p0-01rel0-git(a79caef).8ddfd7584149d9238dced4e406610de7
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Max compute units                               4
  Max clock frequency                             800MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
...