当前位置: 首页 > news >正文

Android 14 AAOS audio

文章目录

      • 乘客音频投放到主音频区
      • 动态路由配置
      • controlhal实现的具体流程
      • control hal AudioGain的callback
      • AudioModuleChange变化的通知

乘客音频投放到主音频区

  • 场景:
    是将乘客区的Media 属性的数据通过主屏区的设备进行播放。具体而言 在副屏user11播放的音乐是输出到主屏user10的设备上,当前只针对usage是media的情况。

  • 测试用例:
    有相关的测试用例
    packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/AudioUserAssignmentFragment.java

  • 测试流程:
    首先主屏中选择ask user 11 To Accept,选择确认后。 在user 11 中播放音乐, 这个是时候这个音乐是从10种输出。

  • 修改
    默认支持这种的使用方式。 但是建议media的context 独立使用一个bus address。否则跟media context处于同一个bus address的context都会被路由到主音频区的Media设备中。

  • 基本原理:
    依赖于audioPolicy的setUserIDDeviceAffinity来实现的。这个接口是更新 之前注册audioPolicyMix的情况。是判断注册的policy中
    mAudioPolicy.setUserIdDeviceAffinity(userId, devices);

动态路由配置

  • 场景:
    在同一个区域中 同一个context可以有两个可以播放的device。可以在播放过程中进行切换。
  • 测试用例packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/AudioTestFragment.java
    中的switchToZoneConfigSelected。
    只有在副屏中才有这样的测试,能够进行zoneConfig的切换。
    在选项中选择了另外一个配置之后,进行音乐播放。这个是对应播放数据的地址变成新的配置。
Button zoneConfigSwitchButton =        view.findViewById(R.id.switch_zone_configuration_key_event_button);zoneConfigSwitchButton.setOnClickListener((v) -> switchToZoneConfigSelected());
  • 需要添加的配置:
    car_audio_configuration: 添加两个zoneconfig。这两个zoneConfig的地址不一样, 只能添加到非primary zone的区域。
    比如地址为bus101_audio_zone_1 和bus100_audio_zone_1
    audio_policy_configuration: 添加同样的device,mixport等等。

  • 实现的原理:
    有提供给外部切换的接口。当调用该接口的时候,传递的是要切换的zoneconfig。
    这个zoneconfig 中包含的是要切换的zone的信息 包括address 等等。
    切换就是建立起userid 和 address的关系, 通过audiopolicy的setUserIdDeviceAffinity来实现。
    这个时候在audiopolicyManager 中存储的是userid 和 新的address 的mix。
    播放的时候会获取关系就获取的是新的address。

### AudioControl hal需要实现的功能

  1. registerFocusListener: carAudioService 注册回调到control AudioControl hal 向CarAudioService 请求焦点。
  2. onAudioFocusChange:CarAudioServie通知control 服务层焦点的变化,在control中请求焦点也会在这里告知。
  3. requestAudioFocus: hal层向CarAudioService 请求焦点
  4. abandonAudioFocus:hal层放弃某个焦点的请求。

上述 API 可分别用于从 HAL 请求和放弃音频焦点。作为响应,车载音频服务会考虑音频焦点请求,并将结果异步转发给 IAudioControl#onAudioFocusChange 方法。

  • 增益变化的通知

将hal层(可能外部接入设备的音量变化的信息)音量信息通知给服务层,服务层获取这个信息 进行ui的改变等等操作。
这个事实上是提供了一个外部的设备(比如dsp 放大器)等等音频设备和android CarAudioService交互的路径。

interface IAudioControl {/***   Registers callback to be used by HAL for reporting unexpected gain(s)*    changed and the reason(s) why.**   @param callback The {@link IAudioGainCallback}.*/oneway void registerGainCallback(in IAudioGainCallback callback);
}
interface IAudioGainCallback {/***   Used to indicate that one or more audio device port gains have changed,*   i.e. initiated by HAL, not by CarAudioService.*   This is the counter part of the*   {@link onDevicesToDuckChange}, {@link onDevicesToMuteChange} and,*   {@link setAudioDeviceGainsChanged} APIs.**   @param reasons List of reasons that triggered the given gains changed.*   @param gains List of gains affected by the change.*/void onAudioDeviceGainsChanged(in Reasons[] reasons,in AudioGainConfigInfo[] gains);
}
  • carVolumeGroupInfo

CarVolumeGroup 更改的事件类型

CarVolumeGroupEvent。每个事件都包含三种关键类型的信息:
CarVolumeGroupInfo列表
EventTypes (位图)
ExtraInfos列表

controlhal实现的具体流程

carAudioService init的时候会注册上层服务的回调到audioControlHal中。

public void init() {setupHalAudioFocusListenerLocked();setupHalAudioGainCallbackLocked();setupHalAudioModuleChangeCallbackLocked();
}
  • 首先是AudioFocus的注册

实现在HalAudioFocus中,是将HalAudioFocus的实现注册到AudioControl当中。在默认的AudioControl.cpp的
实现中。通过这个Listener 向CarAudioSerice请求焦点。

    public void registerFocusListener() {mAudioControlWrapper.registerFocusListener(this);}ndk::ScopedAStatus AudioControl::registerFocusListener(const shared_ptr<IFocusListener>& in_listener) {if (in_listener) {std::atomic_store(&mFocusListener, in_listener);} else {LOG(ERROR) << "Unexpected nullptr for listener resulting in no-op.";}}binder_status_t AudioControl::cmdRequestFocus(int fd, const char** args, uint32_t numArgs) {AudioFocusChange focusGain = AudioFocusChange(focusGainValue);if (mFocusListener == nullptr) {dprintf(fd, "Unable to request focus - no focus listener registered\n");return STATUS_BAD_VALUE;}mFocusListener->requestAudioFocus(usage, zoneId, focusGain);dprintf(fd, "Requested focus for usage %s, zoneId %d, and focusGain %d\n", usage.c_str(),zoneId, focusGain);return STATUS_OK;
}

回调到carAudioService中 makeAudioFocusRequestLocked进行焦点的请求。
其调用audioManager的requestAudioFocus请求焦点(这个实际也是回调到CarAudioService进行处理)
同时调用onAuioFocusChange通知到audioControl中。

    public void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain) {synchronized (mLock) {AudioAttributesWrapper audioAttributesWrapper =CarAudioContext.getAudioAttributeWrapperFromUsage(usage);HalAudioFocusRequest currentRequest =mHalFocusRequestsByZoneAndUsage.get(zoneId).get(audioAttributesWrapper);if (currentRequest != null) {if (Slogf.isLoggable(TAG, Log.DEBUG)) {Slogf.d(TAG, "A request already exists for zoneId " + zoneId + " and usage "+ usage);}mAudioControlWrapper.onAudioFocusChange(usage, zoneId, currentRequest.mFocusStatus);} else {makeAudioFocusRequestLocked(audioAttributesWrapper, zoneId, focusGain);}}}private void makeAudioFocusRequestLocked(AudioAttributesWrapper audioAttributesWrapper,int zoneId, int focusGain) {AudioFocusRequest audioFocusRequest =generateFocusRequestLocked(audioAttributesWrapper, zoneId, focusGain);int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest);int resultingFocusGain = focusGain;if (requestResult == AUDIOFOCUS_REQUEST_GRANTED) {HalAudioFocusRequest halAudioFocusRequest =new HalAudioFocusRequest(audioFocusRequest, focusGain);mHalFocusRequestsByZoneAndUsage.get(zoneId).put(audioAttributesWrapper, halAudioFocusRequest);} else if (requestResult == AUDIOFOCUS_REQUEST_FAILED) {resultingFocusGain = AUDIOFOCUS_LOSS;} else if (requestResult == AUDIOFOCUS_REQUEST_DELAYED) {Slogf.w(TAG, "Delayed result for request with audio attributes "+ audioAttributesWrapper + ", zoneId " + zoneId+ ", and focusGain " + focusGain);resultingFocusGain = AUDIOFOCUS_LOSS;}mAudioControlWrapper.onAudioFocusChange(audioAttributesWrapper.getAudioAttributes().getSystemUsage(),zoneId, resultingFocusGain);}

总结: CarAudioService 和 control hal之间的交互,CarAudioService注册
HalFocusListener到control。 control 通过listener提供的requestAudioFocus传递usage、zoneID和focus请求的类型
请求焦点,carAudioService响应焦点请求 之后通过onAudioFocusChange通知control hal焦点请求的情况。

control hal AudioGain的callback

有关的实现在CarAudioGainMonitor中, 跟audioFocus的流程是一样的,都是先注册callback到control。 然后control利用这个callback 将
增益变化的信息传递出来。传递的信息包括两个部分:

  1. Reason 增益变化的原因
  2. AudioGainConfigInfo 包含zoneID、device address、index。
    其中reason的定义见如下。

消息回调到CarAudioGainMonitor中 首先调用如下的函数将hal的reason转换为CarVolumeGroupEvent。
carAudioZone.onAudioGainChanged(reasons, gainsByZones.valueAt(i))
最后是调用的CarVolumeGroup的onAudioGainChanged来实现的。
这个过程会根据当前系统的状态结合gain index信息来 转换最后的EVENT_TYPE。

转换后的event通过下面的回调 回调到carAudioService的onVolumeGroupEvent中、
mCarVolumeInfoWrapper.onVolumeGroupEvent(events);
这里面会回调onGroupVolumeChanged给所有调用registerCarVolumeCallback注册callback的应用
比如VolumeSettingsPreferenceController,收到回调后会调整音量和mute的状态。

    private void setupHalAudioGainCallbackLocked() {AudioControlWrapper audioControlWrapper = getAudioControlWrapperLocked();if (!audioControlWrapper.supportsFeature(AUDIOCONTROL_FEATURE_AUDIO_GAIN_CALLBACK)) {Slogf.e(CarLog.TAG_AUDIO, "HalAudioGainCallback is not supported on this device");return;}mCarAudioGainMonitor = new CarAudioGainMonitor(mAudioControlWrapper,new CarVolumeInfoWrapper(this), mCarAudioZones);mCarAudioGainMonitor.registerAudioGainListener(mHalAudioGainCallback);}public void registerAudioGainListener(HalAudioGainCallback callback) {Objects.requireNonNull(callback, "Hal Audio Gain callback can not be null");mAudioControlWrapper.registerAudioGainCallback(callback);}ndk::ScopedAStatus AudioControl::registerGainCallback(const std::shared_ptr<IAudioGainCallback>& in_callback) {LOG(DEBUG) << ": " << __func__;if (in_callback) {std::atomic_store(&mAudioGainCallback, in_callback);} else {LOG(ERROR) << "Unexpected nullptr for audio gain callback resulting in no-op.";}return ndk::ScopedAStatus::ok();
}binder_status_t AudioControl::cmdOnAudioDeviceGainsChanged(int fd, const char** args,uint32_t numArgs) std::vector<AudioGainConfigInfo> agcis{};for (uint32_t i = 3; i < numArgs; i += 2) {std::string deviceAddress = std::string(args[i]);int32_t index;if (!safelyParseInt(std::string(args[i + 1]), &index)) {dprintf(fd, "Non-integer index provided with request: %s\n",std::string(args[i + 1]).c_str());return STATUS_BAD_VALUE;}AudioGainConfigInfo agci{zoneId, deviceAddress, index};agcis.push_back(agci);}mAudioGainCallback->onAudioDeviceGainsChanged(reasons, agcis);dprintf(fd, "Fired audio gain callback for reasons=%s and gains=%s\n",toEnumString(reasons).c_str(), toString(agcis).c_str());return STATUS_OK;
}
public @interface Reasons {
public static final int FORCED_MASTER_MUTE = 1;
public static final int REMOTE_MUTE = 2;
public static final int TCU_MUTE = 4;
public static final int ADAS_DUCKING = 8;
public static final int NAV_DUCKING = 16;
public static final int PROJECTION_DUCKING = 32;
public static final int THERMAL_LIMITATION = 64;
public static final int SUSPEND_EXIT_VOL_LIMITATION = 128;
public static final int EXTERNAL_AMP_VOL_FEEDBACK = 256;
public static final int OTHER = -2147483648;
}
parcelable AudioGainConfigInfo {/*** The identifier for the audio zone the audio device port associated to this gain belongs to.**/int zoneId;/*** The Audio Output Device Port Address.** This is the address that can be retrieved at JAVA layer using the introspection* {@link android.media.AudioManager#listAudioDevicePorts} API then* {@link audio.media.AudioDeviceInfo#getAddress} API.** At HAL layer, it corresponds to audio_port_v7.audio_port_device_ext.address.** Devices that does not have an address will indicate an empty string "".*/String devicePortAddress;/*** UI Index of the corresponding AudioGain in AudioPort.gains.*/int volumeIndex;
}

总结:CarAudioService通过注册HalAudioGainCallback到control、然后control 在有Gain变化的时候。通过调调用listener的onAudioDeviceGainsChanged
将Gain变化的信息传递出来。CarAudioService将event转换为group的event。在传递给应用等等。

AudioModuleChange变化的通知

处理在CarAudioModuleChangeMonitor,通过将HalAudioModuleChangeCallback注册到control中。之后在control中创建一个或多个AudioPort。将这个Port通过callback的onAudioPortsChanged回调回carAudioService。最后通过
CarVolume的onVolumeGroupEvent通知到各个应用。

    void setModuleChangeCallback(HalAudioModuleChangeCallback callback) {Objects.requireNonNull(callback, "Hal audio module change callback can not be null");mAudioControlWrapper.setModuleChangeCallback(callback);}ndk::ScopedAStatus AudioControl::setModuleChangeCallback(const std::shared_ptr<IModuleChangeCallback>& in_callback) {std::atomic_store(&mModuleChangeCallback, in_callback);return ndk::ScopedAStatus::ok();
}binder_status_t AudioControl::cmdOnAudioPortsChanged(int fd, const char** args, uint32_t numArgs) {if (!checkCallerHasWritePermissions(fd)) {return STATUS_PERMISSION_DENIED;} mModuleChangeCallback->onAudioPortsChanged(ports);
}

相关文章:

Android 14 AAOS audio

文章目录 乘客音频投放到主音频区动态路由配置controlhal实现的具体流程control hal AudioGain的callbackAudioModuleChange变化的通知 乘客音频投放到主音频区 场景&#xff1a; 是将乘客区的Media 属性的数据通过主屏区的设备进行播放。具体而言 在副屏user11播放的音乐是输出…...

文心一言 VS 讯飞星火 VS chatgpt (207)-- 算法导论15.4 4题

四、说明如何只使用表 c 中 2*min(m&#xff0c;n) 个表项及O(1)的额外空间来计算LCS的长度。然后说明如何只用 min(m&#xff0c;n) 个表项及O(1)的额外空间完成相同的工作。要写代码的时候&#xff0c;请用go语言。 文心一言&#xff1a; 在只使用 2 * min(m, n) 个表项和 …...

【论文笔记】Attention Is All You Need

【论文笔记】Attention Is All You Need 文章目录 【论文笔记】Attention Is All You NeedAbstract1 Introduction2 Background补充知识&#xff1a;软注意力 soft attention 和硬注意力 hard attention&#xff1f;补充知识&#xff1a;加法注意力机制和点乘注意力机制Extende…...

(亲测可用)Adobe Photoshop 2024下载与安装

背景介绍&#xff1a;Adobe Photoshop 2024 是全球最受欢迎的图像编辑软件之一&#xff0c;2024年的版本带来了一系列令人印象深刻的功能&#xff1a; AI增强的自动选择和蒙版工具&#xff1a;现在&#xff0c;用户可以更轻松地选择和处理复杂的图像元素。更多的3D渲染功能&…...

uniapp聊天记录本地存储(详细易懂)

目录 目录 1、通过websocket拿取数据 2、获取聊天数据 3、聊天信息存储 、更新 4、读取聊天记录 5、发送信息&#xff0c;信息获取 6、最终效果 1.聊天信息的存储格式 2、样式效果 写聊天项目&#xff0c;使用到了本地存储。需要把聊天信息保存在本地&#xff0c;实时获…...

Vue.js中的$nextTick

其实目前在我现有的开发经历中&#xff0c;我还没有实际运用过$nextTick&#xff0c;今天在看书时&#xff0c;学习到了这个东西&#xff0c;所以做个笔记记录一下。 一、$nextTick是什么&#xff1f; $nextTick 是 Vue提供的一个方法&#xff0c;用于在 DOM 更新之后执行回调…...

python+mysql咖啡店推荐系统django+vue

(1).研究的基本内容 系统的角色分为&#xff1a; 1.管理员 2.会员 3.非会员 角色不同&#xff0c;权限也不相同 技术栈 后端&#xff1a;python 前端&#xff1a;vue.jselementui 框架&#xff1a;django/flask Python版本&#xff1a;python3.7 数据库&#xff1a;mysql5.7…...

综合实验nginx+nfs+kpa

综合实验 实验目的&#xff1a; 静态资源和动态资源分别存放在远端存储NFS上&#xff0c;NFS上数据实现实时备份&#xff0c;用户通过负载访问后端的web服务。实现ngixn负载高可用&#xff0c;当keepalived master宕机&#xff0c;vip能自动跳转到备用节点 实验环境&#xff…...

springboot197基于springboot的毕业设计系统的开发

简介 【毕设源码推荐 javaweb 项目】基于springbootvue 的毕业设计系统的开发 适用于计算机类毕业设计&#xff0c;课程设计参考与学习用途。仅供学习参考&#xff0c; 不得用于商业或者非法用途&#xff0c;否则&#xff0c;一切后果请用户自负。 看运行截图看 第五章 第四章 …...

group by报错

# 报错&#xff1a;[42000][1055] Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column base.biz_org_rep.ID which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_modeonly_full_grou…...

3、云原生安全之falco的部署

文章目录 1、helm安装2、拉去镜像失败与解决3、安装faclo4、安装nfs服务器,配置k8s的持久卷4.1、创建nfs服务器,4.2、部署master节点(nsf服务的客户端)4.3、pv与pvc4.4、假设pv和pvc的配置文件出错了5、安装falcosidekick可视化(建议跳过,直接使用6)6、安装faclo与falco…...

Docker架构概述

Docker是基于Go语言实现的开源容器项目&#xff0c;能够把开发的应用程序自动部署到容器的开源的应用容器引擎。Docker的构想是要实现"Build, Ship and Run Any App, Anywhere"&#xff0c;即通过对应用的封装(Packaging)、分发(Distribution)、部署(Deployment)、运…...

安装 node 错误的配置环境变量之后使用 npm 报错

安装 node 错误的配置环境变量之后使用 npm 报错 node:internal/modules/cjs/loader:1147 throw err; ^ Error: Cannot find module ‘F:\ACodeTools\Node\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js’ at Module._resolveFilename (node:internal/modules/cjs/loa…...

Matlab 最小二乘插值(曲线拟合)

文章目录 一、简介二、实现代码三、实现效果参考资料一、简介 在多项式插值时,当数据点个数较多时,插值会导致多项式曲线阶数过高,带来不稳定因素。因此我们可以通过固定幂基函数的最高次数 m(m < n),来对我们要拟合的曲线进行降阶。之前的函数形式就可以变为: 二、实现…...

AWTK-MVVM 配置文件模型

配置文件模型 AWTK-MVVM 内置了一些配置文件模型&#xff0c;用于读写各种配置文件&#xff0c;比如&#xff0c;JSON/XML/INI/CSV/UBJSON 等。 文件名中可以引用下面的变量。 ${app_dir} 应用程序目录${user_dir} 用户目录${temp_dir} 临时目录 json(url${app_dir}/demos/de…...

【活动】金三银四,前端工程师如何把握求职黄金期

随着春意盎然的气息弥漫大地&#xff0c;程序员群体中也迎来了一年一度的“金三银四”求职热潮。这个时间段对于广大前端工程师而言&#xff0c;不仅象征着生机勃发的新起点&#xff0c;更是他们职业生涯中至关重要的转折点。众多知名公司在这一时期大规模开启招聘通道&#xf…...

萌新学习RSA第二天(离线分解整数N)

1.yafu的使用&#xff08;离线环境分解N&#xff09;、 下载 打开 及使用 下载地址&#xff1a;https://sourceforge.net/projects/yafu/ 在下载好的并解压好的文件夹上鼠标右键打开终端 然后输入.\yafu-x64.exe并回车运行 .\yafu-x64.exe 来到这个页面就OK了 然后输入 fa…...

STM32学习和实践笔记(1): 装好了的keil μVision 5

2019年3月在淘宝上买了这块STM32的开发板&#xff0c;学了一段时间后就丢下了&#xff0c;今天重新捡起来&#xff0c;决定好好学习、天天向上。 对照教程&#xff0c;今天先把keil5装上了。 装的过程有以下几点值得记录下&#xff1a; 1&#xff09;用注册机时&#xff0c;…...

企业计算机服务器中了360勒索病毒如何解密,360后缀勒索病毒处理流程

对于众多的企业来说&#xff0c;企业的数据是企业发展的核心&#xff0c;越来越多的企业开始注重企业的数据安全问题&#xff0c;但随着网络技术的不断发展与应用&#xff0c;网络黑客的攻击加密手段也在不断升级。近期&#xff0c;云天数据恢复中心接到多家企业的求助&#xf…...

【图像拼接/视频拼接】论文精读:Efficient Video Stitching Based on Fast Structure Deformation

第一次来请先看这篇文章:【图像拼接(Image Stitching)】关于【图像拼接论文精读】专栏的相关说明,包含专栏使用说明、创新思路分享等(不定期更新) 图像拼接系列相关论文精读 Seam Carving for Content-Aware Image ResizingAs-Rigid-As-Possible Shape ManipulationAdap…...

XML Group端口详解

在XML数据映射过程中&#xff0c;经常需要对数据进行分组聚合操作。例如&#xff0c;当处理包含多个物料明细的XML文件时&#xff0c;可能需要将相同物料号的明细归为一组&#xff0c;或对相同物料号的数量进行求和计算。传统实现方式通常需要编写脚本代码&#xff0c;增加了开…...

生成xcframework

打包 XCFramework 的方法 XCFramework 是苹果推出的一种多平台二进制分发格式&#xff0c;可以包含多个架构和平台的代码。打包 XCFramework 通常用于分发库或框架。 使用 Xcode 命令行工具打包 通过 xcodebuild 命令可以打包 XCFramework。确保项目已经配置好需要支持的平台…...

conda相比python好处

Conda 作为 Python 的环境和包管理工具&#xff0c;相比原生 Python 生态&#xff08;如 pip 虚拟环境&#xff09;有许多独特优势&#xff0c;尤其在多项目管理、依赖处理和跨平台兼容性等方面表现更优。以下是 Conda 的核心好处&#xff1a; 一、一站式环境管理&#xff1a…...

linux之kylin系统nginx的安装

一、nginx的作用 1.可做高性能的web服务器 直接处理静态资源&#xff08;HTML/CSS/图片等&#xff09;&#xff0c;响应速度远超传统服务器类似apache支持高并发连接 2.反向代理服务器 隐藏后端服务器IP地址&#xff0c;提高安全性 3.负载均衡服务器 支持多种策略分发流量…...

相机Camera日志实例分析之二:相机Camx【专业模式开启直方图拍照】单帧流程日志详解

【关注我&#xff0c;后续持续新增专题博文&#xff0c;谢谢&#xff01;&#xff01;&#xff01;】 上一篇我们讲了&#xff1a; 这一篇我们开始讲&#xff1a; 目录 一、场景操作步骤 二、日志基础关键字分级如下 三、场景日志如下&#xff1a; 一、场景操作步骤 操作步…...

循环冗余码校验CRC码 算法步骤+详细实例计算

通信过程&#xff1a;&#xff08;白话解释&#xff09; 我们将原始待发送的消息称为 M M M&#xff0c;依据发送接收消息双方约定的生成多项式 G ( x ) G(x) G(x)&#xff08;意思就是 G &#xff08; x ) G&#xff08;x) G&#xff08;x) 是已知的&#xff09;&#xff0…...

Golang dig框架与GraphQL的完美结合

将 Go 的 Dig 依赖注入框架与 GraphQL 结合使用&#xff0c;可以显著提升应用程序的可维护性、可测试性以及灵活性。 Dig 是一个强大的依赖注入容器&#xff0c;能够帮助开发者更好地管理复杂的依赖关系&#xff0c;而 GraphQL 则是一种用于 API 的查询语言&#xff0c;能够提…...

什么是EULA和DPA

文章目录 EULA&#xff08;End User License Agreement&#xff09;DPA&#xff08;Data Protection Agreement&#xff09;一、定义与背景二、核心内容三、法律效力与责任四、实际应用与意义 EULA&#xff08;End User License Agreement&#xff09; 定义&#xff1a; EULA即…...

k8s业务程序联调工具-KtConnect

概述 原理 工具作用是建立了一个从本地到集群的单向VPN&#xff0c;根据VPN原理&#xff0c;打通两个内网必然需要借助一个公共中继节点&#xff0c;ktconnect工具巧妙的利用k8s原生的portforward能力&#xff0c;简化了建立连接的过程&#xff0c;apiserver间接起到了中继节…...

OPenCV CUDA模块图像处理-----对图像执行 均值漂移滤波(Mean Shift Filtering)函数meanShiftFiltering()

操作系统&#xff1a;ubuntu22.04 OpenCV版本&#xff1a;OpenCV4.9 IDE:Visual Studio Code 编程语言&#xff1a;C11 算法描述 在 GPU 上对图像执行 均值漂移滤波&#xff08;Mean Shift Filtering&#xff09;&#xff0c;用于图像分割或平滑处理。 该函数将输入图像中的…...