第5讲 cameraserver manifest详解(上) - Android Camera Native Framework

本讲是Android Camera Native Framework专题的第5讲,我们介绍cameraserver manifest详解(上),包括如下内容:

  1. Android Vintf Manifest语法简介

  1. Cameraserver manifest详解

  • manifest.type

  • manifest.hal.format

  • manifest.hal.name

  • manifest.hal.transport

  • manifest.hal.version

  • manifest.hal.interface

  • manifest.hal.fqname

  • HAL Interface Descriptor

更多资源:

资源

描述

在线课程

极客笔记在线课程

知识星球

星球名称:深入浅出Android Camera 星球ID: 17296815

Wechat

极客笔记圈

Android Vintf Manifest语法简介

Android Vintf Manifest是用于描述Vendor(HAL) Interface对象的清单文件

Vintf Manifest文件语法详解

manifest.type

manifest.type

  • Manifest类型,分为deviceframework两种类型

  • 定义manifest类型,在做兼容性矩阵验证时会用到

兼容性矩阵

  • FCM(Framework Compatibility Matrix)包含system, system_ext, product三个分区对device manifest的要求

  • 比如:hardware/interfaces/compatibility_matrices/

  • /system/etc/vintf/compatibility_matrix.device.xml

  • DCM(Device Compatibility Matrix)包含vendor分区对framework manifest的要求

  • 比如: device/generic/goldfish/compatibility_matrix.xml

  • /vendor/etc/vintf/compatibility_matrix.xml

manifest.hal.format

manifest.hal.format 用于指定是什么类型的HAL,跟实现的接口有关,可设置的值有:

  • hidl:HIDL HAL,这是默认值。

  • aidl:AIDL HAL。

  • native: Native HALs,目前没看到有使用。

示例:

manifest.hal.name

manifest.hal.name 用于设置HAL的包名,多个 HAL 可以使用相同的名称。

示例:

  • Cameraserver的HIDL接口

  • <name>android.frameworks.cameraservice.service</name>

  • Camera HAL的HIDL和AIDL接口使用相同的Name

  • HIDL:/device/generic/goldfish/manifest.camera.xml

  • <name>android.hardware.camera.provider</name>

  • <name>android.hardware.camera.provider</name>

manifest.hal.transport

manifest.hal.transport 用于设置vintf接口的通信方式

  • 只有HIDL HAL才需要,可设置为如下三种值(目前几乎全是hwbinder ):

  • hwbinder:绑定模式(跑独立进程)

  • passthrough:透传模式(跑调用者进程)

  • inet:Inet 套接字

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

deepinout_camera

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值