757 lines
94 KiB
HTML
757 lines
94 KiB
HTML
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="27.0">
|
||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="AICFB 显示驱动接口分可为标准功能和扩展功能。 标准功能: 将物理显存映射到用户空间 获取显示屏的分辨率和获取 Framebuffer 的像素格式 支持单缓冲 Framebuffer 和双缓冲 Framebuffer 可配置 扩展功能: 获取图层个数 获取图层能力 获取图层配置数据 更新图层配置数据 支持同时更新多图层配置数据 支持图层 scaler 设置 支持 alpha blending ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.relation" content="../../../topics/sdk/display/display-design_intro.html"/><meta name="DC.relation" content="../../../topics/sdk/display/display_data_structure.html"/><meta name="DC.relation" content="../../../topics/sdk/display/display_demo.html"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-01-15"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="display_interface_design"/><meta name="DC.language" content="zh-CN"/><title>接口设计</title><!-- Generated with build number 2024112209. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content="display_interface_design-d4445e5078"/><meta name="wh-source-relpath" content="topics/sdk/display/display_interface.dita"/><meta name="wh-out-relpath" content="topics/sdk/display/display_interface.html"/>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2024112209"/>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2024112209"/>
|
||
|
||
<script src="../../../webhelp/app/options/properties.js?buildId=20250123154945"></script>
|
||
<script src="../../../webhelp/app/localization/strings.js?buildId=2024112209"></script>
|
||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250123154945"></script>
|
||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2024112209"></script>
|
||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2024112209"></script>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2024112209"/></head>
|
||
|
||
<body id="display_interface_design" class="wh_topic_page frmBody">
|
||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||
跳转到主要内容
|
||
</a>
|
||
|
||
|
||
|
||
|
||
<header class="navbar navbar-default wh_header">
|
||
<div class="container-fluid">
|
||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||
<div class="wh_logo_and_publication_title_container">
|
||
<div class="wh_logo_and_publication_title">
|
||
|
||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt=" Linux SDK 使用指南 SDK 指南文件 "/></a>
|
||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"> <span class="ph mainbooktitle">Linux SDK 使用指南</span> <span class="ph booktitlealt">SDK 指南文件</span> </span></a></div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
|
||
|
||
|
||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||
|
||
|
||
|
||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<div class="container-fluid" id="wh_topic_container">
|
||
<div class="row">
|
||
|
||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||
|
||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "><ol class="d-print-none"><li><span class="home"><a href="../../../index.html"><span>主页</span></a></span></li><li><div class="topicref" data-id="id"><div class="title"><a href="../../../topics/sdk/chapter-advanced-app.html">高级应用</a><div class="wh-tooltip"><p class="shortdesc">系统、存储、多媒体、接口、安全等模块的详细配置和设计说明。</p></div></div></div></li><li><div class="topicref" data-id="concept_mcc_32s_nbc"><div class="title"><a href="../../../topics/chapter-title/chapter-multi-media-sdk.html">多媒体</a><div class="wh-tooltip"><p class="shortdesc">GE、VE、Display、DVP、MPP、MPP 播放器等多媒体模块的介绍和使用说明。</p></div></div></div></li><li><div class="topicref" data-id="id"><div class="title"><a href="../../../topics/sdk/display/display_user_guide.html">Display 使用指南</a></div></div></li><li><div class="topicref" data-id="display_design_intro"><div class="title"><a href="../../../topics/sdk/display/display-design_intro.html">设计说明</a></div></div></li><li class="active"><div class="topicref" data-id="display_interface_design"><div class="title"><a href="../../../topics/sdk/display/display_interface.html">接口设计</a></div></div></li></ol></div>
|
||
|
||
|
||
|
||
<div class="wh_right_tools">
|
||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||
<div class=" wh_navigation_links "><span id="topic_navigation_links" class="navheader">
|
||
|
||
<span class="navprev"><a class="- topic/link link" href="../../../topics/sdk/display/display_data_structure.html" title="数据结构设计" aria-label="上一主题: 数据结构设计" rel="prev"></a></span>
|
||
<span class="navnext"><a class="- topic/link link" href="../../../topics/sdk/display/display_demo.html" title="Demo" aria-label="下一主题: Demo" rel="next"></a></span> </span></div>
|
||
|
||
|
||
|
||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||
|
||
<button type="button" id="wh_toc_button" class="custom-toggler navbar-toggler collapsed wh_toggle_button navbar-light" aria-expanded="false" aria-label="Toggle publishing table of content" aria-controls="wh_publication_toc">
|
||
<span class="navbar-toggler-icon"></span>
|
||
</button>
|
||
</div>
|
||
|
||
</nav>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="wh_content_area">
|
||
<div class="row">
|
||
|
||
<nav id="wh_publication_toc" class="col-lg-3 col-md-3 col-sm-12 d-md-block d-none d-print-none" aria-label="Table of Contents Container">
|
||
<div id="wh_publication_toc_content">
|
||
|
||
<div class=" wh_publication_toc " data-tooltip-position="right"><span class="expand-button-action-labels"><span id="button-expand-action" role="button" aria-label="Expand"></span><span id="button-collapse-action" role="button" aria-label="Collapse"></span><span id="button-pending-action" role="button" aria-label="Pending"></span></span><ul role="tree" aria-label="Table of Contents"><li role="treeitem"><div data-tocid="revinfo_linux-d4445e1079" class="topicref" data-id="revinfo_linux" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/revinfo/revinfo_linux.html" id="revinfo_linux-d4445e1079-link">修订记录</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1096" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1096-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/env/sdk-compile.html" id="id-d4445e1096-link">SDK 编译</a><div class="wh-tooltip"><p class="shortdesc">介绍不同编译环境下 SDK 的详细编译流程。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="tocId-d4445e1240" class="topicref" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action tocId-d4445e1240-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/lb_usage_commands.html" id="tocId-d4445e1240-link">使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_rcx_czh_pzb-d4445e1360" class="topicref" data-id="concept_rcx_czh_pzb" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_rcx_czh_pzb-d4445e1360-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-app.html" id="concept_rcx_czh_pzb-d4445e1360-link">应用场景</a><div class="wh-tooltip"><p class="shortdesc">描述了 SDK 在不同应用场景中的配置和使用,包括系统更新、OTA、安全方案等。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1678" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1678-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/peripheral/peripheral-intro.html" id="id-d4445e1678-link">外设移植</a><div class="wh-tooltip"><p class="shortdesc"><span class="ph">触摸屏、显示器、WIFI 模块、按键</span>等外设的介绍和使用说明。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1964" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1964-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/bringup/chapter-bringup.html" id="id-d4445e1964-link">BringUp</a><div class="wh-tooltip"><p class="shortdesc">在硬件上电后快速初始化系统,为操作系统的启动准备好必要的硬件环境。</p></div></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="id-d4445e2153" class="topicref" data-id="id" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action id-d4445e2153-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-advanced-app.html" id="id-d4445e2153-link">高级应用</a><div class="wh-tooltip"><p class="shortdesc">系统、存储、多媒体、接口、安全等模块的详细配置和设计说明。</p></div></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem" aria-expanded="false"><div data-tocid="uBoot-d4445e2170" class="topicref" data-id="uBoot" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action uBoot-d4445e2170-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/boot/uboot-module.html" id="uBoot-d4445e2170-link">U-Boot</a><div class="wh-tooltip"><p class="shortdesc">启动支持的基本功能以及运行时的基本硬件环境。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_mtx_tk3_pzb-d4445e3028" class="topicref" data-id="concept_mtx_tk3_pzb" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_mtx_tk3_pzb-d4445e3028-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/linux/chapter_linux.html" id="concept_mtx_tk3_pzb-d4445e3028-link">Linux</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="chapter-system-d4445e3198" class="topicref" data-id="chapter-system" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action chapter-system-d4445e3198-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/chapter-title/chapter-system.html" id="chapter-system-d4445e3198-link">系统</a><div class="wh-tooltip"><p class="shortdesc"></p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="chapter-memory-d4445e4054" class="topicref" data-id="chapter-memory" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action chapter-memory-d4445e4054-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/chapter-title/chapter-memory-sdk.html" id="chapter-memory-d4445e4054-link">存储</a><div class="wh-tooltip"><p class="shortdesc">SDMC、SPI NAND、SPI NOR 等存储模块的介绍和使用说明。</p></div></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="concept_mcc_32s_nbc-d4445e4438" class="topicref" data-id="concept_mcc_32s_nbc" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action concept_mcc_32s_nbc-d4445e4438-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/chapter-title/chapter-multi-media-sdk.html" id="concept_mcc_32s_nbc-d4445e4438-link">多媒体</a><div class="wh-tooltip"><p class="shortdesc">GE、VE、Display、DVP、MPP、MPP 播放器等多媒体模块的介绍和使用说明。</p></div></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem" aria-expanded="false"><div data-tocid="ge-d4445e4455" class="topicref" data-id="ge" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action ge-d4445e4455-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/ge/ge_user_guide.html" id="ge-d4445e4455-link">GE 使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="ve-d4445e4637" class="topicref" data-id="ve" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action ve-d4445e4637-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/ve/ve-user-guide.html" id="ve-d4445e4637-link">VE 使用指南</a></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="id-d4445e4777" class="topicref" data-id="id" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action id-d4445e4777-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_user_guide.html" id="id-d4445e4777-link">Display 使用指南</a></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem" aria-expanded="false"><div data-tocid="display_configuration-d4445e4791" class="topicref" data-id="display_configuration" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action display_configuration-d4445e4791-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_config.html" id="display_configuration-d4445e4791-link">Display 配置</a><div class="wh-tooltip"><p class="shortdesc">显示模块的参数配置,包括 menuconfig 配置 和 dts 配置。</p></div></div></div></li><li role="treeitem"><div data-tocid="display_debug_guide-d4445e4965" class="topicref" data-id="display_debug_guide" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_debug.html" id="display_debug_guide-d4445e4965-link">调试指南</a></div></div></li><li role="treeitem"><div data-tocid="display_test_guide-d4445e4979" class="topicref" data-id="display_test_guide" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_test_guide.html" id="display_test_guide-d4445e4979-link">测试指南</a></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="display_design_intro-d4445e4993" class="topicref" data-id="display_design_intro" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action display_design_intro-d4445e4993-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display-design_intro.html" id="display_design_intro-d4445e4993-link">设计说明</a></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem"><div data-tocid="display_component_architecture-d4445e5007" class="topicref" data-id="display_component_architecture" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_sourcecode_and_arch.html" id="display_component_architecture-d4445e5007-link">源码和框架说明</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="topicset-d4445e5021" class="topicref" data-id="topicset" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action topicset-d4445e5021-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_init_process.html" id="topicset-d4445e5021-link">关键流程设计</a></div></div></li><li role="treeitem"><div data-tocid="display_data_structure-d4445e5064" class="topicref" data-id="display_data_structure" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_data_structure.html" id="display_data_structure-d4445e5064-link">数据结构设计</a></div></div></li><li role="treeitem" class="active"><div data-tocid="display_interface_design-d4445e5078" class="topicref" data-id="display_interface_design" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_interface.html" id="display_interface_design-d4445e5078-link">接口设计</a></div></div></li><li role="treeitem"><div data-tocid="display_demo-d4445e5092" class="topicref" data-id="display_demo" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_demo.html" id="display_demo-d4445e5092-link">Demo</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="display_screen_configuration-d4445e5106" class="topicref" data-id="display_screen_configuration" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action display_screen_configuration-d4445e5106-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_panel_port.html" id="display_screen_configuration-d4445e5106-link">屏适配指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_xpy_32b_ybc-d4445e5134" class="topicref" data-id="concept_xpy_32b_ybc" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_xpy_32b_ybc-d4445e5134-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_fb_rotation.html" id="concept_xpy_32b_ybc-d4445e5134-link">屏幕旋转</a></div></div></li><li role="treeitem"><div data-tocid="display_change_color-d4445e5162" class="topicref" data-id="display_change_color" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_color_property.html" id="display_change_color-d4445e5162-link">色彩调整</a></div></div></li><li role="treeitem"><div data-tocid="display_boot_logo-d4445e5176" class="topicref" data-id="display_boot_logo" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_boot_logo.html" id="display_boot_logo-d4445e5176-link">Boot Logo</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="display_common_issues-d4445e5190" class="topicref" data-id="display_common_issues" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action display_common_issues-d4445e5190-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/display/display_faqs.html" id="display_common_issues-d4445e5190-link">常见问题</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_h4d_fwt_tzb-d4445e5218" class="topicref" data-id="concept_h4d_fwt_tzb" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_h4d_fwt_tzb-d4445e5218-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/dvp/dvp_user_guide.html" id="concept_h4d_fwt_tzb-d4445e5218-link">DVP 使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="mpp-d4445e5358" class="topicref" data-id="mpp" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action mpp-d4445e5358-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/mpp/mpp_user_guide.html" id="mpp-d4445e5358-link">MPP 使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="mpp_0-d4445e5498" class="topicref" data-id="mpp_0" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action mpp_0-d4445e5498-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/mpp/mpp_player_user_guide.html" id="mpp_0-d4445e5498-link">MPP 播放器使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="gstreamer-d4445e5582" class="topicref" data-id="gstreamer" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action gstreamer-d4445e5582-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/gstreamer/gstreamer-user-guide.html" id="gstreamer-d4445e5582-link">Gstreamer 使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="i2s-d4445e5680" class="topicref" data-id="i2s" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action i2s-d4445e5680-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/i2s/i2s_user_guide.html" id="i2s-d4445e5680-link">I2S 使用指南</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="audio_codec_user_guide-d4445e5806" class="topicref" data-id="audio_codec_user_guide" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action audio_codec_user_guide-d4445e5806-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/audio_codec/audio-codec-user-guide.html" id="audio_codec_user_guide-d4445e5806-link">Audio Codec 使用指南</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_nww_hzh_pzb-d4445e5947" class="topicref" data-id="concept_nww_hzh_pzb" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_nww_hzh_pzb-d4445e5947-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/chapter-title/chapter-interface-sdk.html" id="concept_nww_hzh_pzb-d4445e5947-link">接口</a><div class="wh-tooltip"><p class="shortdesc">CAN、CIR、GPAI、GPIO、I2C、PSADC、PWM 等接口模块的介绍和使用说明。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="chapter-safety-d4445e7944" class="topicref" data-id="chapter-safety" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action chapter-safety-d4445e7944-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/chapter-title/chapter-safety-sdk.html" id="chapter-safety-d4445e7944-link">安全</a><div class="wh-tooltip"><p class="shortdesc">SPI ENC、CE、eFuse 等安全模块的介绍和使用说明。</p></div></div></div></li></ul></li></ul></div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
|
||
<div class="col-lg-7 col-md-9 col-sm-12" id="wh_topic_body">
|
||
<button id="wh_close_publication_toc_button" class="close-toc-button d-none" aria-label="Toggle publishing table of content" aria-controls="wh_publication_toc" aria-expanded="true">
|
||
<span class="close-toc-icon-container">
|
||
<span class="close-toc-icon"></span>
|
||
</span>
|
||
</button>
|
||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||
<span class="close-toc-icon-container">
|
||
<span class="close-toc-icon"></span>
|
||
</span>
|
||
</button>
|
||
|
||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1">
|
||
<span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" title="Edit this document" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/display/display_interface.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">接口设计</h1>
|
||
|
||
<div class="date inPage">15 Jan 2024</div><div style="color: gray;">
|
||
Read time: 5 minute(s)
|
||
</div>
|
||
<div class="- topic/body concept/conbody body conbody">
|
||
<div class="- topic/p p" data-ofbid="d171571e33__20250123155218">AICFB 显示驱动接口分可为标准功能和扩展功能。<ul class="- topic/ul ul" id="display_interface_design__ul_f31_jbg_d1c" data-ofbid="display_interface_design__ul_f31_jbg_d1c">
|
||
<li class="- topic/li li" data-ofbid="d171571e37__20250123155218">
|
||
<div class="- topic/p p" data-ofbid="d171571e39__20250123155218">标准功能:<ul class="- topic/ul ul" id="display_interface_design__ol_g31_jbg_d1c" data-ofbid="display_interface_design__ol_g31_jbg_d1c">
|
||
<li class="- topic/li li" data-ofbid="d171571e43__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e45__20250123155218">将物理显存映射到用户空间</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e49__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e51__20250123155218">获取显示屏的分辨率和获取 Framebuffer 的像素格式</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e55__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e57__20250123155218">支持单缓冲 Framebuffer 和双缓冲 Framebuffer 可配置</p>
|
||
</li>
|
||
</ul></div>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e63__20250123155218">
|
||
<div class="- topic/p p" data-ofbid="d171571e65__20250123155218">扩展功能:<ul class="- topic/ul ul" id="display_interface_design__ol_i31_jbg_d1c" data-ofbid="display_interface_design__ol_i31_jbg_d1c">
|
||
<li class="- topic/li li" data-ofbid="d171571e69__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e71__20250123155218">获取图层个数</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e75__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e77__20250123155218">获取图层能力</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e81__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e83__20250123155218">获取图层配置数据</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e87__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e89__20250123155218">更新图层配置数据</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e93__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e95__20250123155218">支持同时更新多图层配置数据</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e100__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e102__20250123155218">支持图层 scaler 设置</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e106__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e108__20250123155218">支持 alpha blending 设置</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e112__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e114__20250123155218">支持 color key</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e118__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e120__20250123155218">获取显示屏大小</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e124__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e126__20250123155218">绑定 DMA-BUF</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e130__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e132__20250123155218">解绑 DMA-BUF</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d171571e137__20250123155218">
|
||
<p class="- topic/p p" data-ofbid="d171571e139__20250123155218">将 /dev/fb0 导出为 dmabuf fd</p>
|
||
</li>
|
||
</ul></div>
|
||
</li>
|
||
</ul></div>
|
||
<section class="- topic/section section" id="display_interface_design__section_mkv_pbg_d1c" data-ofbid="display_interface_design__section_mkv_pbg_d1c"><h2 class="- topic/title title sectiontitle">Framebuffer 标准接口</h2>
|
||
|
||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="display_interface_design__codeblock_ecc_5bg_d1c" data-ofbid="display_interface_design__codeblock_ecc_5bg_d1c"><code><strong class="hl-keyword">int</strong> <span class="- topic/ph ph">ioctl</span>(<strong class="hl-keyword">int</strong> fd, <strong class="hl-keyword">unsigned</strong> <strong class="hl-keyword">long</strong> cmd, CMD_DATA_TYPE *cmddata);</code></pre>
|
||
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_j4m_mbg_d1c" data-ofbid="display_interface_design__table_j4m_mbg_d1c" data-cols="3"><caption></caption><colgroup><col style="width:16.891891891891888%"/><col style="width:64.3581081081081%"/><col style="width:18.75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_j4m_mbg_d1c__entry__1">参数</th>
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_j4m_mbg_d1c__entry__2">描述</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_j4m_mbg_d1c__entry__3">输入/输出</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__1">Fd</td>
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__2">打开 FB 设备后设备描述符</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__3">输入</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__1">cmd</td>
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e203__20250123155218">主要的 cmd 命令如下:</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e206__20250123155218"><span class="+ topic/keyword sw-d/cmdname keyword cmdname">FBIOGET_VSCREENINFO</span>:获取屏幕可变信息</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e211__20250123155218"><span class="+ topic/keyword sw-d/cmdname keyword cmdname">FBIOPUT_VSCREENINFO</span>:设置屏幕可变信息</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e216__20250123155218"><span class="+ topic/keyword sw-d/cmdname keyword cmdname">FBIOGET_FSCREENINFO</span>:获取屏幕固定信息</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e221__20250123155218"><span class="+ topic/keyword sw-d/cmdname keyword cmdname">FBIOPAN_DISPLAY</span>:设置 PAN 显示</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e227__20250123155218"><span class="+ topic/keyword sw-d/cmdname keyword cmdname">FBIO_WAITFORVSYNC</span>: 等待 vsync 信号</p>
|
||
</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_j4m_mbg_d1c__entry__3">输入</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_j4m_mbg_d1c__entry__1">cmddata</td>
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_j4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e244__20250123155218">各 cmd 对应的数据类型分别是:</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e247__20250123155218">屏幕可变信息:struct fb_var_screeninfo *类型</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e250__20250123155218">屏幕固定信息:struct fb_fix_screeninfo *类型</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e253__20250123155218">PAN 显示:struct fb_var_screeninfo *类型</p>
|
||
</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_j4m_mbg_d1c__entry__3">输入/输出</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
|
||
</section>
|
||
<section class="- topic/section section" id="display_interface_design__section_b4t_nbg_d1c" data-ofbid="display_interface_design__section_b4t_nbg_d1c"><h2 class="- topic/title title sectiontitle">扩展接口</h2>
|
||
|
||
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_k4m_mbg_d1c" data-ofbid="display_interface_design__table_k4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 1</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_WAIT_FOR_VSYNC</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_k4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_k4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, unsigned
|
||
int *pvalue);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__2">等待 Vsync 信号</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e314__20250123155218">CMD: AICFB_WAIT_FOR_VSYNC</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e317__20250123155218">pvalue: 该值无意义,固定为 NULL</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_k4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e329__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e332__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_k4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_k4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_l4m_mbg_d1c" data-ofbid="display_interface_design__table_l4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 2</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_LAYER_NUM</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_l4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_l4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_layer_num *pvalue);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__2">获取显示图层的个数, 包括 UI 图层个数和 Video 图层</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e393__20250123155218">CMD: AICFB_GET_LAYER_NUM</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e396__20250123155218">player_num: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_dvy_ccg_d1c">struct
|
||
aicfb_layer_num</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_l4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e412__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e415__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_l4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_l4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_m4m_mbg_d1c" data-ofbid="display_interface_design__table_m4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 3</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_LAYER_CAPABILITY</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_m4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_m4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_layer_capability *player_cap);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__2">获取当前图层的能力</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e476__20250123155218">CMD: AICFB_GET_LAYER_CAPABILITY</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e479__20250123155218">player_cap: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_jcy_tdg_d1c">struct aicfb_layer_capability</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_m4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e495__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e498__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_m4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_m4m_mbg_d1c__entry__2">调用接口前要先填写结构体中的 layer_id</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_n4m_mbg_d1c" data-ofbid="display_interface_design__table_n4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 4</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_LAYER_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_n4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_n4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_layer_data *player_conf);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__2">获取图层配置信息</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e559__20250123155218">CMD: <span class="+ topic/keyword sw-d/cmdname keyword cmdname">AICFB_GET_LAYER_CONFIG</span></p>
|
||
<p class="- topic/p p" data-ofbid="d171571e564__20250123155218">player_conf: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_struct_aicfb_layer_data">struct aicfb_layer_data</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_n4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e580__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e583__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_n4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_n4m_mbg_d1c__entry__2">调用接口前要先填写结构体中的 id,如果是多矩形窗口要同时填写 rect_win_id</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_o4m_mbg_d1c" data-ofbid="display_interface_design__table_o4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 5</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_UPDATE_LAYER_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_o4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_o4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_layer_data *player_conf)</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__2">更新图层配置信息</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e645__20250123155218">CMD: AICFB_UPDATE_LAYER_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e648__20250123155218">player_ocnf:参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_struct_aicfb_layer_data">struct aicfb_layer_data</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_o4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e664__20250123155218">0: 成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e667__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_o4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_o4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e679__20250123155218">如果是仅更新图层的部分 data 信息,</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e682__20250123155218">可以先调用接口 CONFIG,获取当前图层信息,</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e685__20250123155218">然后再修改要更新的图像信息,最后再调用此接口更新图层信息</p>
|
||
</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_p4m_mbg_d1c" data-ofbid="display_interface_design__table_p4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 6</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_UPDATE_LAYER_CONFIG_LISTS</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_p4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_p4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_config_lists *player_lists);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__2">更新图层配置数据列表</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e737__20250123155218">CMD: AICFB_UPDATE_LAYER_CONFIG_LISTS aicfb_config_lists</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e740__20250123155218">player_lists: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_edn_pdg_d1c">struct aicfb_config_lists</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_p4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e756__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e759__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_p4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_p4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e771__20250123155218">通过此接口可以同时更新多个图层或者多个窗口的配置信息</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e774__20250123155218">通过此接口调用的好处是相关图层配置的更新可以同时生效</p>
|
||
</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_q4m_mbg_d1c" data-ofbid="display_interface_design__table_q4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 7</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_ALPHA_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_q4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_q4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_alpha_config *alpha);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__2">获取当前图层的 Alpha 配置</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e826__20250123155218">CMD: AICFB_GET_ALPHA_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e829__20250123155218">alpha: 参结考构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_iks_ldg_d1c">struct aicfb_alpha_config </a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_q4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e845__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e848__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_q4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_q4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_r4m_mbg_d1c" data-ofbid="display_interface_design__table_r4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 8</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_UPDATE_ALPHA_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_r4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_r4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_alpha_config *alpha);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__2">更新当前图层的 Alpha 配置</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e909__20250123155218">CMD: AICFB_UPDATE_ALPHA_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e912__20250123155218">alpha: 参结考构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_iks_ldg_d1c">struct aicfb_alpha_config </a>定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_r4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e928__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e931__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_r4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_r4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_s4m_mbg_d1c" data-ofbid="display_interface_design__table_s4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 9</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_CK_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_s4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_s4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_ck_config *player_ck);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__2">获取当前图层的 CK 配置</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e992__20250123155218">CMD: AICFB_GET_CK_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e995__20250123155218">player_ck: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_bnc_jdg_d1c">struct aicfb_ck_config </a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_s4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1011__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1014__20250123155218">-1:当前图层不支持 color key</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_s4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_s4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_t4m_mbg_d1c" data-ofbid="display_interface_design__table_t4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 10</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_UPDATE_CK_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_t4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_t4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aicfb_ck_config *player_ck);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__2">更新当前图层的 CK 配置</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1075__20250123155218">CMD: AICFB_SET_CK_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1078__20250123155218">player_ck: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_bnc_jdg_d1c">struct aicfb_ck_config </a>定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_t4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1094__20250123155218">0: 成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1097__20250123155218">-1:当前图层不支持 color key</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_t4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_t4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_u4m_mbg_d1c" data-ofbid="display_interface_design__table_u4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 11</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_SCREEN_SIZE</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_u4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_u4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct
|
||
aic_size *pscreen_size);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__2">更新当前图层的 CK 配置</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1159__20250123155218">CMD: AICFB_GET_SCREEN_SIZE</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1162__20250123155218">pscreen_size: 结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_q42_gdg_d1c">struct aic_size</a> 定义了屏幕的宽,高信息</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_u4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1178__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1181__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_u4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_u4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_v4m_mbg_d1c" data-ofbid="display_interface_design__table_v4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 12</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_FB_LAYER_CONFIG</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_v4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_v4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct aicfb_layer_data
|
||
*player_conf);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__2">获取标准 framebuffer 占用的图层信息</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1242__20250123155218">CMD: AICFB_GET_FB_LAYER_CONFIG</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1245__20250123155218">player_conf: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_struct_aicfb_layer_data">struct aicfb_layer_data</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_v4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1261__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1264__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_v4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_v4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_w4m_mbg_d1c" data-ofbid="display_interface_design__table_w4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 13</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_GET_DMABUF</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_w4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_w4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct aicfb_dmabuf_fd
|
||
*fds);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__2">通知 fb 驱动绑定 DMA-BUF</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1325__20250123155218">CMD: AICFB_GET_DMABUF</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1328__20250123155218">fds: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_oyp_ycg_d1c">struct aicfb_dmabuf_fd</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__1">返回值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_w4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1344__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1347__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_w4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_w4m_mbg_d1c__entry__2">APP 在将 dmabuf 送给 DE 显示之前必须进行绑定,否则无法显示 buf 中的内容</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_x4m_mbg_d1c" data-ofbid="display_interface_design__table_x4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 14</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_PUT_DMABUF</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_x4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_x4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct aicfb_dmabuf_fd
|
||
*fds);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__2">通知 fb 驱动解绑 DMA-BUF</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1408__20250123155218">CMD: AICFB_PUT_DMABUF</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1411__20250123155218">fds: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_oyp_ycg_d1c">struct aicfb_dmabuf_fd</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__1">返回 值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_x4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1427__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1430__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_x4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_x4m_mbg_d1c__entry__2">无</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<div class="table-container"><table class="- topic/table table frame-all" id="display_interface_design__table_y4m_mbg_d1c" data-ofbid="display_interface_design__table_y4m_mbg_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 15</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">AICFB_TO_DMABUF_FD</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row">
|
||
<th class="- topic/entry entry colsep-1 rowsep-1" id="display_interface_design__table_y4m_mbg_d1c__entry__1">接口定义</th>
|
||
<th class="- topic/entry entry colsep-0 rowsep-1" id="display_interface_design__table_y4m_mbg_d1c__entry__2">int <span class="- topic/ph ph">ioctl</span>(int fd, unsigned long cmd, struct aicfb_dmabuf_fd
|
||
*fds);</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__1">功能说明</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__2">将 /dev/fb0 导出为一个 dmabuf fd</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__1">参数定义</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1491__20250123155218">CMD: AICFB_TO_DMABUF_FD</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1494__20250123155218">fds: 参考结构体 <a xml:lang="zh-CN" lang="zh-CN" class="- topic/xref xref" href="display_data_structure.html#display_data_structure__li_oyp_ycg_d1c">struct aicfb_dmabuf_fd</a> 定义</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__1">返回 值</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="display_interface_design__table_y4m_mbg_d1c__entry__2">
|
||
<p class="- topic/p p" data-ofbid="d171571e1510__20250123155218">0:成功</p>
|
||
<p class="- topic/p p" data-ofbid="d171571e1513__20250123155218">-1:失败</p>
|
||
</td>
|
||
</tr>
|
||
<tr class="- topic/row">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="display_interface_design__table_y4m_mbg_d1c__entry__1">注意事项</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="display_interface_design__table_y4m_mbg_d1c__entry__2">导出的 dmabuf fd 不支持 mmap 操作,无法得到一个有效的虚拟地址</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
|
||
</section>
|
||
</div>
|
||
</article></main></div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||
<div id="wh_topic_toc_content">
|
||
|
||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#display_interface_design__section_mkv_pbg_d1c" data-tocid="display_interface_design__section_mkv_pbg_d1c">Framebuffer 标准接口</a></div></li><li class="section-item"><div class="section-title"><a href="#display_interface_design__section_b4t_nbg_d1c" data-tocid="display_interface_design__section_b4t_nbg_d1c">扩展接口</a></div></li></ul></div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
<footer class="navbar navbar-default wh_footer">
|
||
<div class=" footer-container mx-auto ">
|
||
<title>footer def</title>
|
||
<style><!--
|
||
|
||
.p1 {
|
||
font-family: FangZhengShuSong, Times, serif;
|
||
}
|
||
.p2 {
|
||
font-family: Arial, Helvetica, sans-serif;
|
||
}
|
||
.p3 {
|
||
font-family: "Lucida Console", "Courier New", monospace;
|
||
}
|
||
|
||
--></style>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="webhelp.fragment.footer">
|
||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||
</div><div>
|
||
<div class="generation_time">
|
||
Update Time: 2025-01-23
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<button id="go2top" class="d-print-none" title="返回顶部">
|
||
<span class="oxy-icon oxy-icon-up"></span>
|
||
</button>
|
||
|
||
<div id="modal_img_large" class="modal">
|
||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||
<div id="modal_img_container"></div>
|
||
<div id="caption"></div>
|
||
</div>
|
||
|
||
|
||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||
|
||
|
||
</body>
|
||
</html> |